Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

openquery "select into"

Status
Not open for further replies.

oakpark5

Programmer
Sep 2, 2004
81
US
OK, here we go again with these darn linked servers...
I'm trying to copy data from foxpro table into a sql table using linked servers. I keep on getting error 7321: an error occurred while preparing a query for execution against OLE DB provider MSDASQL. This is the code i used. I cant find my way around this error and I cant find a solution...thanks in advance.

select * from OPENQUERY(K_AR,'select arcust01.* INTO CUSTOMERS IN kretekrdb.mdb from arcust01')

Software Engineer
Team Lead
damn bill gates, he has everything
 
How about this?

SELECT *
INTO Customers
FROM OPENQUERY(K_AR,'SELECT arcust01.* IN kretekrdb.mdb FROM arcust01')

--John [rainbow]
-----------------------------------
Behold! As a wild ass in the desert
go forth I to do my work.
--Gurnie Hallock (Dune)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top