Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Insert Query
Message
 
To
29/05/2010 06:42:00
Vishal Nyamagoudar
Swift Infocom India Pvt Ltd
India
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01466485
Message ID:
01466492
Views:
43
Vishal,

You can prefix a table name with the name of the database to access tables from a database. Something like this:
INSERT INTO [sgsmech].[dbo].[ryburn]
           ([Col1]
           ,[Col2]
           ,[Col3]
           ,[Col4])
 (select a.Col1, a.Col2, a.Col3, a.Col4 from mech2010.dbo.ryburn a where ...)
>i hav two separate sqlexpress 2005 database naming mech2010 and sgsmech both hav same tables and relations and all
>
>i want copy few records from mech2010 database table rybum and want insert data into the table of rybum in another
>table in other database sgsmech any one can pls tel the query to me.......
>
>Thank You in Advance
Previous
Reply
Map
View

Click here to load this message in the networking platform