How I can build a dynamic temp table based upon the dynamic coulmn info from the other table? Please see my attached file as an example. Thanks!
J827use a hughe varchar variable and fill it with a create table statement. To determine which columnnames, try information_schema.tables. Then execute it using exec.|||You need this
http://www.sqlteam.com/item.asp?ItemID=2955|||Brett,
Thanks for the Link and it works for my case.
J827|||Hey, thank Rob Volk...he's the author...
I'm just the messenger...
Lots of good articles over there...
Good Luck
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment