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
SQL SERVER 2005 - How to designate which file a table is stored in?
Binding Data to Grid
Check ik file exist
Convert from mysql to sqlserver
support sql server 2005 on a mac pro notebook?
Windows 7 Explorer Not showing all image icons/thumbnails
Was Noach's wife idolizer woman?
TSQL Query - retrieving data for use with virtual listview
LINQ problem, get data from var
exchange 2007/Route mail to ISP if account is not local.