Skip to Content
Menu
This question has been flagged
624 Views

Hi

I want to insert the records in dataset ds in to another table(another database and server). What should i do write in the select statement.
sda = New NpgsqlDataAdapter(pgCommand)
sda.Fill(ds)
pgCommand1.CommandText = "INSERT INTO public.tab2 (SELECT * FROM ds)"

Thanks


Avatar
Discard
Related Posts Replies Views Activity
1
Feb 24
390
3
Nov 23
511
1
Aug 23
2120
4
Mar 15
10573
2
Mar 15
5765