Stored Procedure to create table from two another table
I have two tables Attribute(AttributeID,EntityID,AttributeName,DataType,IsNullable,SortDirection,SrcColumnName,Description) and Entity (EntityID,EntityName,EntityTableName,EntityDesc,EntityCollectionName).
I need to create table for each entityID with columns,column datatype & column IsNullable property taken from attribute table .
Stored Procedure to create table from two another table
===

I have two tables Attribute(AttributeID,EntityID,AttributeName,DataType,IsNullable,SortDirection,SrcColumnName,Description) and Entity (EntityID,EntityName,EntityTableName,EntityDesc,EntityCollectionName).
I need to create table for each entityID with columns,column datatype & column IsNullable property taken from attribute table .