Skip to Content
Menu
This question has been flagged
1877 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
1482
3
Nov 23
1703
1
Aug 23
3767
4
Mar 15
11736
2
Mar 15
6593