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

Batch Update ADO.Net

Using SQL Server 2000, and VS.Net 2003

I want to load a datatable from a local server into a dataset and update it
into a linked server. The linked server will have the exact same structured
table, and it will be empty. Can I open a blank dataset from the linked
server, and fill it with the dataset from the local server? I have been
trying every which way to get this working. Is it possible? It is too slow
doing a transact sql statement that does the insert from the local to the
linked, so I am trying this method. Any thoughts?

Derek
May 20 '06 #1
2 1839
.... A more "SQL" approach

EXEC sp_addlinkedserver 'your server'
EXEC sp_addlinkedsrvlogin 'your server', 'false', 'luser', 'rmtuser',
'rmtPassword'
SELECT * INTO YOUR_TABLE FROM YOUR_SERVER.DATABASE.dbo.TABLE

or

INSERT INTO YOUR_TABLE (COLUMNS) SELECT COLUMNS FROM
YOUR_SERVER.DATABASE.dbo.TABLE
Regards,
Tasos

May 20 '06 #2
Forgot to mention that you should

EXEC sp_dropserver 'your server', 'droplogins'

after finishing.

Tasos

May 20 '06 #3

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

Similar topics

0
by: Rick | last post by:
Does anyone have any resources on how to conduct a batch update for a checkboxlist web control? ie. After the user checks/unchecks items from the checkbox list, conduct a postback (via a button...
2
by: Paul Reddin | last post by:
Hi, (V8.1 Fp2) Our application uses JDBC batch to execute mutiple insert statements and we saw a strange thing this morning. There were 4 SQL Insert statements in the batch, and we know the...
0
by: jayson_13 | last post by:
Hi, I would like to execute a batch update (mysql) with C#. How do I do that? For example, OdbcCommand cmd = New OdbcCommand(); Cmd.Connection = Conn;
6
by: Charles Neitzel | last post by:
I'm trying to write a windows application in C# (Using Microsoft Visual C# 2005 Express) that is nothing more than a simple UI with buttons on it. The buttons do various things like running...
1
by: Charles | last post by:
I'm trying to write a windows application in C# (Using Microsoft Visual C# 2005 Express) that is nothing more than a simple UI with buttons on it. The buttons do various things like running...
0
by: Steve | last post by:
ASP.net 2.0 SQL 2005 I need to insert/delete multiple records from a database. Error checking and exceptions are not a problem, the data being added/deleted are simple integer IDs. The...
1
by: cedgell | last post by:
Is it possible to create a batch file of a sql script that would allow end user to update a single field of a table? For example, a number field is populated but needs to be updated on a daily basis...
1
by: bravo | last post by:
hi using mysql 4.1 i wish to update records using batch update but for a batch of 100, records and table having only 5000 records execution time is approx 2.4 sec i want to know whether this time...
2
by: rbrowning1958 | last post by:
Hello, Doing my first ASP project so this may be simple and I'm missing something...could someone please calrify this for me? 1. I have an ASP page with a grich which allows user to add, edit...
1
by: SagarDoke | last post by:
Is it possible to use batch update on store procedure with register out parameter? If not then is there any way to get register out parameter values with batch update?
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.