jonsuns7
asked on
SQL Server 2005, Load Excel File, UniqueIdentifier
Hi Everyone,
I am trying to load about 30,000 rows of data into a table in SQL Server that contains a UniqueIdentifier column. (Which is the primary key). The data is contained in an Excel file.
I am using the import tool from Toad to try to load the data, but it keeps getting rejected because of this particular column. (I heard that people using the import tool for SQL Server encounter the same problem).
Does anyone know a workaround for this? The Excel file has about 29 columns of data with this one column being the problem.
Thanks so much.
I am trying to load about 30,000 rows of data into a table in SQL Server that contains a UniqueIdentifier column. (Which is the primary key). The data is contained in an Excel file.
I am using the import tool from Toad to try to load the data, but it keeps getting rejected because of this particular column. (I heard that people using the import tool for SQL Server encounter the same problem).
Does anyone know a workaround for this? The Excel file has about 29 columns of data with this one column being the problem.
Thanks so much.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This great to exclude from source to insert. and create new id runtime. but it has references then it will create problem. let do as per the situation.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>I actually used the NEWID() as the default value for the uniqueidentifier column
seems awfully similar to my suggestion...
>Remove the id column from inclusion in Excel, add NEWID() in its place
seems awfully similar to my suggestion...
>Remove the id column from inclusion in Excel, add NEWID() in its place