Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Create Table using another table column value

$
0
0

Hi,

I have table XYZ which holds destination column name, i want to generate CREATE TABLE query w.r.t to XYZ value.

For Example: need to generate create table statement.

Table XYZ

SlnoColumnName
1Empno
2Ename
3Sal

intention behind this is if my destination table layout changes , it should handle dynamically.


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>