Microsoft
Software
Hardware
Network
Question : Convert data from Excel to import into SQL.
I am trying to import data from excel file into MS SQL 2005, but I am getting stuck here:
Source: excel file, with column format is
Date
Target: MS SQL 2005, with column format is
nvarchar(50)
So when I bulkcopy from the excel file, the data of target becomes:
Source: 07/26/2010
Target: 07/26/2010 12:00:00 AM
I only want to import the value '07/26/2010', how can I do it? I can't use convert when select data from the excel file.
Thanks!
Answer : Convert data from Excel to import into SQL.
Or may be you should try this formula....
=TEXT(A1,"mm/dd/yyyy")
Random Solutions
Creating histogram in MINITAB 15
Query to sort by length of text data
How to show/hide Child gridview based on CheckBox Click in Parent Grid No PostBack
primary ip address for a server?
Access DoCmd.runSQL running a SQLServer stored procedure
Can I turn on logging for only 1 mail account in Exchange 2003 server?
Recommended backup for a Server 2008 R2 Terminal Server
migrating sbs2003 to a new sbs2008
DHTML Menu & link to parent and Active link
Passing value from one page textbox to another page textboxes