Click here to Skip to main content
15,908,015 members
Home / Discussions / Database
   

Database

 
General"Network " access w/ out a network Pin
...---...26-Oct-04 6:43
...---...26-Oct-04 6:43 
GeneralRe: "Network " access w/ out a network Pin
Alomgir Miah26-Oct-04 10:15
Alomgir Miah26-Oct-04 10:15 
GeneralAdding data to Ole Db database, how do i... Pin
fortyonejb26-Oct-04 5:09
fortyonejb26-Oct-04 5:09 
GeneralRe: Adding data to Ole Db database, how do i... Pin
Anonymous27-Oct-04 17:50
Anonymous27-Oct-04 17:50 
QuestionHow to call overloaded stored procedure? Pin
grinder25-Oct-04 22:28
grinder25-Oct-04 22:28 
GeneralVerbose MSDE Setup Log File Pin
Blake V. Miller25-Oct-04 19:58
Blake V. Miller25-Oct-04 19:58 
GeneralCopy tables between 2 SQL Servers Pin
tgprakash25-Oct-04 2:48
tgprakash25-Oct-04 2:48 
GeneralRe: Copy tables between 2 SQL Servers Pin
Alomgir Miah26-Oct-04 10:38
Alomgir Miah26-Oct-04 10:38 
If the tables do not exist in 'XYZ' database in machine1 the use sqldmo object(try google to sample code) to generate the create schema script and execute it on machine1. then generate dynamic insert statements from say 'Table1' in machine2 as

select
'INSERT TABLE1 (ID, Name, Description) Values(' + CAST (ID as char(50)) +
',''' + CAST (Name as char(50)) + '''' +',''' + CAST (Description as char(50)) + ''''
from Table1

Here ID, Name and Description are the fields of Table1.

This query will generate the insert statements for Table1 you need to execute on Machine1.
Generate for all the tables, execute the create schema script and then execute the generated inserts in a single transaction.

Guess this works for you.



GeneralConnection String Pin
Marwa Bahaa25-Oct-04 1:06
Marwa Bahaa25-Oct-04 1:06 
GeneralRe: Connection String Pin
Michael Potter25-Oct-04 4:57
Michael Potter25-Oct-04 4:57 
GeneralRe: Connection String Pin
BlackDice28-Oct-04 10:43
BlackDice28-Oct-04 10:43 
GeneralRe: Connection String Pin
cnet20083-Nov-04 15:41
cnet20083-Nov-04 15:41 
GeneralRe: Connection String Pin
cnet20083-Nov-04 15:41
cnet20083-Nov-04 15:41 
GeneralAddNew Problem with CLOB field Pin
weblizp24-Oct-04 19:06
weblizp24-Oct-04 19:06 
GeneralRe: AddNew Problem with CLOB field Pin
weblizp24-Oct-04 21:50
weblizp24-Oct-04 21:50 
GeneralHavving problem with a FILL command Pin
rudemusik24-Oct-04 18:01
rudemusik24-Oct-04 18:01 
Generalupdating doesn't work Pin
ezak24-Oct-04 8:51
ezak24-Oct-04 8:51 
GeneralRe: updating doesn't work Pin
Colin Angus Mackay24-Oct-04 13:10
Colin Angus Mackay24-Oct-04 13:10 
GeneraldateTime column in datagrid Pin
Miri Ofir24-Oct-04 5:53
Miri Ofir24-Oct-04 5:53 
GeneralRe: dateTime column in datagrid Pin
afronaut24-Oct-04 6:38
afronaut24-Oct-04 6:38 
GeneralRe: dateTime column in datagrid Pin
Miri Ofir25-Oct-04 1:55
Miri Ofir25-Oct-04 1:55 
GeneralGetting metadata from SQL Server Pin
Anonymous23-Oct-04 22:53
Anonymous23-Oct-04 22:53 
GeneralRe: Getting metadata from SQL Server Pin
Duncan Edwards Jones24-Oct-04 1:11
professionalDuncan Edwards Jones24-Oct-04 1:11 
GeneralRe: Getting metadata from SQL Server Pin
afronaut24-Oct-04 6:26
afronaut24-Oct-04 6:26 
GeneralRe: Getting metadata from SQL Server Pin
Duncan Edwards Jones24-Oct-04 7:39
professionalDuncan Edwards Jones24-Oct-04 7:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.