473,466 Members | 1,562 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

importrows from table from one connection to table in other connection (same structur

1 New Member
Why is importrows not working in my code: dsportalresas is a dataset with 1 row from a connection and i want to copy these rows to another table (same structure) in another connection, i have no error but the rows are not imported:


Dim HotelConn As New SqlConnection(HotelConnStr)
HotelConn.Open()
Dim HotelAdap As New SqlDataAdapter("select * from crs_reservations", HotelConn)
HotelAdap.Fill(dsHotelResas)

For Each dr As DataRow In dsPortalResas.Tables(0).Rows
dsHotelResas.Tables(0).ImportRow(dr)
Next

HotelConn.Close()
Sep 28 '12 #1
0 1380

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Linus Nikander | last post by:
Having recently load-tested the application we are developing I noticed that one of the most expensive (time-wise) calls was my fetch of a db-connection from the defined db-pool. At present I fetch...
1
by: Stuart | last post by:
Is there any way to attain the names of the tables in a database from using either ADO connection or ODBC or any other type of connection. The reason I wish to do this is so that I can display...
2
by: Jose Betances | last post by:
I set up SQL Server in Computer A, and running a c# application from computer B. When I attempt to create an SqlConnection object an error is raised. The message is "Unknown connection option in...
6
by: jjturon | last post by:
Can anyone help me?? I am trying to pass a Select Query variable to a table using Dlookup and return the value to same select query but to another field. Ex. SalesManID ...
0
by: SFM | last post by:
Connection to several connection string from the app.config file I am trying to find a why to get the providerMappings settings from the app.config. For my data access I am using Data access...
0
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted...
2
by: GD | last post by:
Hi, I am trying to get values from table cells and textboxes that have same component names in a table after posting to the same page. Javascript is able to get the component values while the...
10
by: pbd22 | last post by:
Hi. Like the title says - how do i do this? I was given the following example: INSERT INTO TABLE2 SELECT * FROM TABLE1 WHERE COL1 = 'A' The above statement threw the following error:
2
by: veenaaecom | last post by:
Hi, I have a table A , table B and table C. Table B is kind of a bridge to table A and table C (i.e it has common columns that bridges table A and table C) I have a colun in table A whose value is...
11
by: Mo Ewing | last post by:
I have one table called "Plants" that has a many-to-many relationship with a table called "Locations" through a third table called "PlantsToLocations". This setup works fine. I have a form where I...
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
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
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,...
0
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: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
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 ...

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.