|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Yesterday @ 3:20 AM
Points: 38,
Visits: 244
|
|
Hi,
Can anyone let me know the syntax for "drop if exists" and "select * into from" using Linked Server tables.
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Today @ 1:26 AM
Points: 65,
Visits: 199
|
|
Hello I have
on the server 1.1.1.2
i think
SELECT * FROM [1.1.1.1].DATABASE.dbo.TABLE
and try
DROP TABLE table_name [1.1.1.1].DATABASE.dbo.TABLE;
IF EXISTS (SELECT COUNT(*) FROM sys.object WHERE OBJECT_ID = OBJECT_ID(N'TABLE')) DROP TABLE IF EXISTS table_name [1.1.1.1].DATABASE.dbo.TABLE; but the second query i didnt use before :)
|
|
|
|