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

SQLEXEC

Status
Not open for further replies.

risslsu

Programmer
Jan 13, 2004
18
0
0
US
Help Please!

What am I missing?

Do I need to open the table or create a cursor before my SQLEXEC? Am I allowed to name the cursor the same as my remote table?

SQLEXEC(chandle, 'SELECT TOP 1 * FROM testtable ;
WHERE ALLTRIM(test1) == m.xyz','testable')

Any help or extra information would be great.

Thank you,
Marissa
 
That looks more like Oracle format than it does MS SQL Server format. SQL Server doesn't use the semi-colon (;) or the double equal to sign (==). Those will most likely cause a syntax error.

If this is for Oracle, please post it in the proper forum. If it is SQL Server then you are in the correct forum.

-SQLBill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top