Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Copying Data From PC to Laptop

Author  Topic 

josh2009
Yak Posting Veteran

81 Posts

Posted - 2009-06-12 : 09:44:23
If I were to use the ff statement -

INSERT INTO JB_Inventory (
[SS_Item_Location_ID],
[SS_Item_ID],
[SSRoomID],
[On_Hand],
[Item],
[Room_Name],
[Catalog_Number])
SELECT SS_Item_Location_ID,
SS_Item_ID,
SSRoomID,
On_Hand,
Item,
Room_Name,
Catalog_Number
FROM Apollo_Test.dbo.JB_Inventory
WHERE SSRoomID = 7

Apollo_Test being the database name and I need to copy selected records from test database to prod database from a PC workstation to a laptop, can I use the ip address and qualify the FROM clause in my insert statement?

INSERT INTO JB_Inventory (
.
.
.
FROM 172.xx.xx.xxx.Apollo_Test.dbo.JB_Inventory
WHERE SSRoomID = 7

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2009-06-12 : 12:05:08
No.
Search for linked server please.
That may be your solution.


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2009-06-14 : 11:56:55
Are they in same network? You can export/Import wizard for it.
Go to Top of Page

josh2009
Yak Posting Veteran

81 Posts

Posted - 2009-06-15 : 09:12:12
Yes they are in the same server and there will be times that they would be in the same database but at times would be between two databases within the same server.
Go to Top of Page
   

- Advertisement -