May 20, 2008 at 8:54 am
Hi,
This my first time using the link server to read the files directly from within SQL2005, so issues the following link:-
EXEC sp_addlinkedserver
@server = N'MYVFPSERVER', -- Your linked server name here
@srvproduct=N'Visual FoxPro 9', -- can be anything
@provider=N'VFPOLEDB',
@datasrc=N'"C:\PROGRAM FILES\MICROSOFT VISUAL FOXPRO 9\Samples\data\testdata.dbc"'
After that i can open query and do the import issues, but how can check if the table exists before issues the query.
Best regards
May 20, 2008 at 9:18 am
check in [yourdb].sys.tables to see if that table exist.
May 20, 2008 at 9:18 am
Two system procs:
sp_catalogs and
sp_tables_ex
will give you remote catalogs and tables.
DAB
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply