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 dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OpenQuery

Status
Not open for further replies.

nelco

Programmer
Apr 4, 2006
93
US
I want to insert into a temp table on My-SQL db from SQL server db. Any idea on how to do it?

I tried the following but I get a syntax error.

Code:
INSERT INTO OPENQUERY(MetaQuotes, 'SELECT cAccount FROM MetaQuotes_VelocityLive.#A') select cAccount From #A1 Where dLastLogon = '01/01/1900'
 
Have you tried something like the following?
Code:
SELECT cAccount 
INTO MetaQuotes_VelocityLive.#A1
FROM MetaQuotes_VelocityLive.#A
WHERE dLastLogon = '01/01/1900'

--------------------------------------------------
"...and did we give up when the Germans bombed Pearl Harbor? NO!"

"Don't stop him. He's roll'n."
--------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top