I am uploading the Excel file from Excel 2007 to SQL Server 2005 using OPENROWSET. First "row" of Excel file has 38 columns of which 9 clomuns have Projectdetails and remaning as Date in incremental of 7 days. eg:- 1st row (which would be columns after importing) is like client | projectcode |.. 12/01/2012 | 12/08/2012 | 12/15/2012 |... 16/15/2013
The dates in excel are incremented like cell1+7,cell2+7..
So after importing i am getting 9 columns are tablename properly but the dates are imported as F1 | F2 | F3 ....F38 instead of actual dates in SQL Server table.
How can I get the dates in table after importing Any suggestion would be helpful.
quote:I am uploading the Excel file from Excel 2007 to SQL Server 2005 using OPENROWSET. First "row" of Excel file has 38 columns of which 9 clomuns have Projectdetails and remaning as Date in incremental of 7 days. eg:- 1st row (which would be columns after importing) is like client | projectcode |.. 12/01/2012 | 12/08/2012 | 12/15/2012 |... 16/15/2013
The dates in excel are incremented like cell1+7,cell2+7..
So after importing i am getting 9 columns are tablename properly but the dates are imported as F1 | F2 | F3 ....F38 instead of actual dates in SQL Server table.
How can I get the dates in table after importing Any suggestion would be helpful.
Can any one having other approach As my Excel is having formulaes i cant read it using openrowset,so i converted it in CSV manually first and read the CSV. Can I do it instead of converting it in CSV ?