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

Create a dynamic cross-table in a function

Status
Not open for further replies.

TheBestOfMe

Programmer
Apr 7, 2002
21
CA
Hi

I want to create a cross table with dynamic column. This is quite easy in a stored procedure, but I need to make a inner join on it with another table. The only way was to put this in a function. But a function cannot exec a string or another stored procedure. I tried different syntax and I never succed. Can someone tell me if is it possible and how or simply that and cannot do this.

Thanks.
 
Why don't you publish some code? I'm not sure what you are trying to do.
 
I've done it with a dynamic table instead of a function and it works perfectly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top