473,394 Members | 1,893 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,394 software developers and data experts.

Insert Dataset into SQL Server Table

All

I have a dataset that I have returned from a SQL Server instance and I want
to insert the records from the datatable in the dataset to a table in another
SQL Server instance.

Is there a way to insert the datatable without interating through each row.
What I am looking for is insert into sqlservertable datatable?

Thanks
Nov 21 '05 #1
2 10547
Hi,

http://www.windowsformsdatagridhelp....f-de3a5d92b14a

Ken
---------------------
"David" <Da***@discussions.microsoft.com> wrote in message
news:6A**********************************@microsof t.com...
All

I have a dataset that I have returned from a SQL Server instance and I
want
to insert the records from the datatable in the dataset to a table in
another
SQL Server instance.

Is there a way to insert the datatable without interating through each
row.
What I am looking for is insert into sqlservertable datatable?

Thanks

Nov 21 '05 #2
David,

First of all iterating takes almost no time, so I don't see what is the
problem with that, be sure that it is done often behind the scene when here
is a method.

However, maybe can you rephrase the answer, because I think that the answer
from Ken is not the answer on your question.

But what is the question, because I can give as well probably 2 different
answers which probably are not the answers on your question.

By instance do you just want to copy a table from SQLServer 1 to SQLServer2?

Do you want to add a table to your existing dataset based on an old one?

Or do you what Ken's shows want to merge a datatable from server 1 in a
datatable you got frorm server 2?

So please rephrase

Cpr
Nov 21 '05 #3

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

Similar topics

1
by: soni29 | last post by:
hi, just wanted to know if i need to insert a string with double quotes in it into a sql server table, do i need to use any delimeters, like \"? an insert like: insert into producttable...
1
by: Sal | last post by:
Hello all, I am working on a project with the following characteristics: 1. Load data from a SQL server table to an xml file 2. Read the xml file into a dataset. 3. Load data from the...
8
by: John | last post by:
Hi I have a sub method that has been passed a dataset as parameter. I need to insert this dataset into a table. What is the code that I need to do this? The dataset does not have any conflicting...
1
by: Frank Uray | last post by:
Hi all Can somebody tell me a easy way for the following: - I have a DataSet in C# (with one table) - I have SQL Server (2000 or 2005) Now I would like to store the data in the DataSet into a...
2
by: JIM.H. | last post by:
Hello, I am quite new in asp.net, here is the code I retrieve data from a web service SVP.ThisWebService.loadMethod lm = new SVP.ThisWebService.loadMethod(); System.IO.StringReader sr = new...
1
by: technocraze | last post by:
Hi guys, I am having trouble resolving this error. Below mentioned is my code and implmentation. MS Acess is my front end and sql server is my backend. What i want to achieve is to be...
4
by: =?Utf-8?B?Sm9iIExvdA==?= | last post by:
how can persist schema for a sql server table into an xml file from .net application? thanks
5
by: mse07 | last post by:
hi i need to create trigger when insert records in table for example when insert records in table then run exe program. or if any records insert in table i need alert that is record...
6
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Hi I wanted to store xml in a SQL Server Table How does one go about it???? How does the Insert look like??? If I do it from a textfile or xmldocument? How doe the Select look like if I...
7
by: TG | last post by:
hi! I am trying to create a sql server table from an excel sheet. Here is the code I have: 'This procedure the xlsx file and dumps it to a table in SQL Server
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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
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,...

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.