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

Passing MSSQL TAble Column as VFP UDF Parameter in SQLEXEC()

Status
Not open for further replies.

ariftheruvath

Programmer
Sep 13, 2012
19
0
0
AE
I'm trying to do this
sqlexec(handle,"select vfp_UDF(MSSQL_table_column) from mssql_table")

how to do this pls..

 
You can't. Check out, if T-SQL offers something you can use via CONVERT or CAST, for example.

Bye, Olaf.
 
another simple two step solution:

sqlexec(handle,"select MSSQL_table_column from mssql_table","curVFP")
select vfp_UDF(MSSQL_table_column) From curVFP into curResult

If the problem is retrieving the sql server type field 1:1 you're back to CONVERT and CAST.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top