473,473 Members | 2,021 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

From DataTable to SQL database

Several years ago, I wrote a program that parses out a flat file, stores the
values in various DataTables, then places the values from the DataTables
into an Excel spreadsheet. That has worked wonderfully for years. Now, my
boss has come to me to get this program to do one more thing. Basically,
now I also need to upload this data to a SQL server. Is there an easy and
efficient way to do this, or am I going to have to build one heck of an
elaborate INSERT command? If it helps at all, the field names in both the
SBL DB and the DataTable can be the same (I haven't made the SQL DB yet.)

Thanks
Joshua

Nov 21 '05 #1
2 4018
You may want to consider handling this form the database side e.g. use SQL
server's ability to import Excel worksheets.
--
Mike

Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com
"Joshua Campbell" <Jo*************@nospam.nospam> wrote in message
news:eB**************@TK2MSFTNGP11.phx.gbl...
Several years ago, I wrote a program that parses out a flat file, stores
the
values in various DataTables, then places the values from the DataTables
into an Excel spreadsheet. That has worked wonderfully for years. Now,
my
boss has come to me to get this program to do one more thing. Basically,
now I also need to upload this data to a SQL server. Is there an easy and
efficient way to do this, or am I going to have to build one heck of an
elaborate INSERT command? If it helps at all, the field names in both the
SBL DB and the DataTable can be the same (I haven't made the SQL DB yet.)

Thanks
Joshua

Nov 21 '05 #2
Oh well. I'll just create the INSERT statement then. Thanks.
"Mike McIntyre" <mi****@dotnetshowandtell.com> wrote in message
news:uI**************@TK2MSFTNGP12.phx.gbl...
You may want to consider handling this form the database side e.g. use SQL
server's ability to import Excel worksheets.
--
Mike

Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com
"Joshua Campbell" <Jo*************@nospam.nospam> wrote in message
news:eB**************@TK2MSFTNGP11.phx.gbl...
Several years ago, I wrote a program that parses out a flat file, stores
the
values in various DataTables, then places the values from the DataTables
into an Excel spreadsheet. That has worked wonderfully for years. Now,
my
boss has come to me to get this program to do one more thing. Basically, now I also need to upload this data to a SQL server. Is there an easy and efficient way to do this, or am I going to have to build one heck of an
elaborate INSERT command? If it helps at all, the field names in both the SBL DB and the DataTable can be the same (I haven't made the SQL DB yet.)
Thanks
Joshua


Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Shelby | last post by:
Problem: My company generates its own data export from a propietary database. These (free) tables can be read in C#.NET using a Visual FoxPro driver (vfpoledb). I can read each of the six tables...
6
by: aaj | last post by:
Hi all I use a data adapter to read numerous tables in to a dataset. The dataset holds tables which in turn holds full details of the records i.e. keys, extra colums etc.. In some cases I...
1
by: Luis Esteban Valencia | last post by:
Hello Everyone, Iam an intermediate ASP.Net programmer and iam facing a challenging task. I have a table in MS-SQL server database called 'Members'. The table has following fields... ...
2
by: Cary | last post by:
This may reveal my poor programming skills, but here goes... I'm building a pricing tool for my business. I'm nearing the end of the project, and I've been asked to be able to save quotes in some...
6
by: ransoma22 | last post by:
I developing an application that receive SMS from a connected GSM handphone, e.g Siemens M55, Nokia 6230,etc through the data cable. The application(VB.NET) will receive the SMS automatically,...
4
by: JIM.H. | last post by:
Hello, I am trying to write the data I got from a web service to my table in SQL Server I need to append the dataset wsDS to the dataset ds and do update. PVS.myWS.Loader load = new...
5
by: Nathan Sokalski | last post by:
I want to select only the first n records from a database using VB.NET. I have declared a DataTable and OleDB.OleDbDataAdapter as follows: Dim linkstable As New DataTable Dim linksadapter As New...
6
Cintury
by: Cintury | last post by:
Hi all, I've developed a mobile application for windows mobile 5.0 that has been in use for a while (1 year and a couple of months). It was developed in visual studios 2005 with a back-end sql...
13
by: =?Utf-8?B?UGV0ZXI=?= | last post by:
I want to create a new column in a datatable from two existing columns. I have no problem to create the new column using the datatable.columns.add method. The problem is the value of the new...
1
by: gomathinayagam | last post by:
hai, am only beginer in c#... i am trying to connect database with webform. using a technique that the fields of the table and the controls in a form are named same...then i try get the controls...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.