Warm wishes
I have to create table dynimically using a query on second table and that query will return me folloing.
1. Table name.
2. Primary key.
3. columns Name And their data types.
So if any one had implemented such code I would definately appriciate their participation.
Thanks in advance
This can be easily implement using Dynamic SQL exec() or sp_executesql
Why don't you give it a try first and if you encounter any problem, just post it here.|||
Query INFORMATION_SCHEMA.[COLUMNS]. That will give you all you need.
No comments:
Post a Comment