HI,
I am trying to import data from an excel spreadsheet into an existing SQL Server table. I have tried the import wizard with no luck. I then tried the BULK INSERT method as shown below:
BULK INSERT mytable FROM 'C:\mypath\test1.xls'
WITH (DATAFILETYPE = 'char')
the error I have received is:
Server: Msg 4863, Level 16, State 1, Line 1
Bulk insert data conversion error (truncation) for row 1, column 2 (Email).
My Excel file has the exact header names as the column names in my SQL table.
Here is the Design of my SQL table:
UserID int 4 (Identity Field)
Email varchar 50
FirstName varchar 50
LastName varchar 50
AddedDate datetime 8
The Header names on my Excel file are identical to SQL table, and the Datatypes match the SQL column data type.
can anyone help me!!
thanks!
Doug
I am trying to import data from an excel spreadsheet into an existing SQL Server table. I have tried the import wizard with no luck. I then tried the BULK INSERT method as shown below:
BULK INSERT mytable FROM 'C:\mypath\test1.xls'
WITH (DATAFILETYPE = 'char')
the error I have received is:
Server: Msg 4863, Level 16, State 1, Line 1
Bulk insert data conversion error (truncation) for row 1, column 2 (Email).
My Excel file has the exact header names as the column names in my SQL table.
Here is the Design of my SQL table:
UserID int 4 (Identity Field)
Email varchar 50
FirstName varchar 50
LastName varchar 50
AddedDate datetime 8
The Header names on my Excel file are identical to SQL table, and the Datatypes match the SQL column data type.
can anyone help me!!
thanks!
Doug