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

IN and Function

Status
Not open for further replies.

PaulBarbeau

Programmer
Nov 23, 2000
109
CA
I am trying to write a function where i pass in a list in of values like '1,2,3' and i want to return some information on the matching records. Normal i would build the sql string and then run it via exec(@sql) however exec does not work in a function. Anyone know how i can do this?

Paul
 
can you call a SP from the function and send it the list then have the function return those results?

dlc
 
can not call a SP from a function unless it is a extended sp.

 
just use the SQL without making it a string and running exec.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top