473,406 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Save DataTable To SQL Server

I have a data table with 3000 + rows in it. Is there a way to insert it in
to the SQL server database with out going through datatable row by row? Any
code samples or links would be great. Thank you all very much
Nov 20 '05 #1
3 6427
DataAdapters, write your Update Statement, do your Tablemappings and
bliggity blam... your done...

"Ruslan Shlain" <rs*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I have a data table with 3000 + rows in it. Is there a way to insert it in
to the SQL server database with out going through datatable row by row? Any code samples or links would be great. Thank you all very much

Nov 20 '05 #2
I forgot to mention that i have over 70 columns in that datatable.
"Ruslan Shlain" <rs*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I have a data table with 3000 + rows in it. Is there a way to insert it in
to the SQL server database with out going through datatable row by row? Any code samples or links would be great. Thank you all very much

Nov 20 '05 #3
* "Ruslan Shlain" <rs*****@hotmail.com> scripsit:
I have a data table with 3000 + rows in it. Is there a way to insert it in
to the SQL server database with out going through datatable row by row? Any
code samples or links would be great.


ADO.NET group:

<news://msnews.microsoft.com/microsoft.public.dotnet.framework.adonet>

Web interface:

<http://msdn.microsoft.com/newsgroups/default.asp?url=/newsgroups/loadframes.asp?icp=msdn&slcid=us&newsgroup=microso ft.public.dotnet.framework.adonet>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4

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

Similar topics

1
by: Rob | last post by:
I was looking for the easiest way to take a datagrid full of data including two template columns, and export the contents of the grid into Excel by giving an "open or save as" box. I came across...
1
by: Andy Jacobs | last post by:
Hi, I have a row in a DataTable that contains colums of identifying data and I need to save a bitmap in that row. (I'm going to write the entire DataSet to disk as XML to be used by another...
1
by: Markusek Peter | last post by:
Hi, I'm using MySQLDriverCS. I've got no problem to store BLOB into database, but I can't get it back(save to file). Problem is with DataTable(returns string:( ) My code: -- DataTable dt = new...
2
by: jaYPee | last post by:
anyone know how to save record that is encoded from a textbox back to sql server 2000? i know how to display a record from sql server to textbox but don't know how to save the changes i made. ...
4
by: windsurfing_stew | last post by:
Hi All, I was saving a DataTable out to disk using DataTable.Save(). Later loading it with DataTable.Load(). In order to get greater performance I replaced these two calls with...
1
by: John | last post by:
Hi, I have a datatable object in memory, the datasource is not from SQL server. I want to save this datatable into SQL server 2000, what is the best way to do it? The only way I know is to...
0
by: jimmyfo | last post by:
Hi, I've got some questions concerning getting the save dialogue to popup when a link is clicked on. The particular issue I'm having is that the file is returned dynamically (via a search) and I...
2
by: chike_oji | last post by:
Please can someone help me. I am writing a web application, that allows for the upload of an excel sheet into the database. I have an upload button and a save button. The upload button allows...
5
by: =?Utf-8?B?R3JlZw==?= | last post by:
I have a Datatable/Dataset that I'd like to update back to the server. How do I go about saving changes to my Datatable or Dataset back to the database?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.