I have written an application that reads an excel spreadsheet and uploads the data to a sql server table. Upon further study, I have decided that I should make the table and column names dynamic, as I am designing this for different excel document with multiple formats. Everything up to the point of the database INSERT works great. Is it possible to create a table and dynamically create the column names? The code sample is something I have been working on just to create the table and column names, I havent gotten to the point of inserting data yet. Any suggestions, or am I going about this incorrectly?create procedure dbo.sp_EFM_CreateTable( @HeaderList varchar(500))AS SET NOCOUNT ON declare @Header varchar(50), declare @Pos1 int(3), declare @HeaderID varchar(3) SET @Header = LTRIM(RTRIM(@HeaderList))+ ',' SET @Pos1 = CHARINDEX(',', @Header, 1) CREATE TABLE ONEOK_EMF_Data ( IF REPLACE(@Header, ',', '') <> '' BEGIN WHILE @Pos1 > 0 BEGIN SET @HeaderID = LTRIM(RTRIM(LEFT(@HeaderList, @Pos1 - 1))) IF @HeaderID <> '' BEGIN @HeaderID varchar(50) END END END )GO