G
Guest
Hello,
Can someone please set me on the way on how to replace certain tables in a
(new) SQL EXPRESS database file by tables of the same name in another
(target) SQL EXPRESS database file?
I would like to do this through code in VB.NET 2005. I presume I have to
use ADO.NET 2.0 code.
Is it correct I first have to delete the original table in the target
database by a DROP statement and the copy the new table into the target
database? Or do I use a DELETE statement and the fill the empty database by
the new data?
Do I need a second connection to the database with the new tables?
I am a newbie in this matter, so any help would greatly be appreciated.
Also lins to usefull example code is welcome.
I searched already for info on the internet, but mostly the information I
found is not very usefull for my purpose.
Many thanks and greetings from Brugge (Bruges - Belgium),
Michel
Can someone please set me on the way on how to replace certain tables in a
(new) SQL EXPRESS database file by tables of the same name in another
(target) SQL EXPRESS database file?
I would like to do this through code in VB.NET 2005. I presume I have to
use ADO.NET 2.0 code.
Is it correct I first have to delete the original table in the target
database by a DROP statement and the copy the new table into the target
database? Or do I use a DELETE statement and the fill the empty database by
the new data?
Do I need a second connection to the database with the new tables?
I am a newbie in this matter, so any help would greatly be appreciated.
Also lins to usefull example code is welcome.
I searched already for info on the internet, but mostly the information I
found is not very usefull for my purpose.
Many thanks and greetings from Brugge (Bruges - Belgium),
Michel