|
-
Mar 24th, 2011, 12:05 AM
#1
Thread Starter
Lively Member
Select Into Query Help
Dear Friends,
Good Morning.
Once again i am coming with a new request.......
I want to insert the local db tables values into my hosters Database.
And i want to insert the 8 table values into remote 8 tables in a single shot with a where clause.
In this manner, i am going to use the following code.....If its wrong, please correct it..
Select * into servername.database.dbo.table1 from tabel1 where id='TG123'
Select * into servername.database.dbo.table2 from tabel2 where id='TG123'
Select * into servername.database.dbo.table3 from tabel3 where id='TG123'
Select * into servername.database.dbo.table4 from tabel4 where id='TG123'
Select * into servername.database.dbo.table5 from tabel5 where id='TG123'
Select * into servername.database.dbo.table6 from tabel6 where id='TG123'
Select * into servername.database.dbo.table7 from tabel7 where id='TG123'
Select * into servername.database.dbo.table8 from tabel8 where id='TG123'
Thanks in advance.
Yours
GUNA
-
Mar 24th, 2011, 01:09 AM
#2
Re: Select Into Query Help
Check syntax of INSERT INTO...SELECT... statement
-
Mar 24th, 2011, 02:00 AM
#3
Thread Starter
Lively Member
Re: Select Into Query Help
My Friend,
Can you help in syntax for my goal?
Thanks in advance.
- Guna
-
Mar 25th, 2011, 08:29 AM
#4
Re: Select Into Query Help
The syntax to insert into a table usually starts with
INSERT INTO <tablename> <fields> SELECT <fields> from <tablename>
Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
save a blobFileStreamDataTable To Text Filemy blog
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|