I have the following bulk insert command on my asp.net page:
Dim sqlQueryText As String = _
"BULK INSERT dialerresults " + _
"FROM '" & SavePath & "' " + _
"WITH ( FIELDTERMINATOR = ',' , ROWTERMINATOR = '\n' )"
and the following dataset that's being uploaded to a database:
,512 408 1323,steve miller,doctor stevens,2010070 9 1:30, 20100709 1:30,,
You can see that there are two datetime fields. What I need to do is to convert the first datetime field to just date and the second one to just time. I'm using SQL 2000 and just need to know the proper syntax to do this to add it to my asp.net page.
My database field names are as follows:
ID (primary key )
Phone
PatientName
DrName
ApptDate
ApptTime
CurrentDate (timestamp)
Result (null)
Thank you,
Doug
Dim sqlQueryText As String = _
"BULK INSERT dialerresults " + _
"FROM '" & SavePath & "' " + _
"WITH ( FIELDTERMINATOR = ',' , ROWTERMINATOR = '\n' )"
and the following dataset that's being uploaded to a database:
,512 408 1323,steve miller,doctor stevens,2010070 9 1:30, 20100709 1:30,,
You can see that there are two datetime fields. What I need to do is to convert the first datetime field to just date and the second one to just time. I'm using SQL 2000 and just need to know the proper syntax to do this to add it to my asp.net page.
My database field names are as follows:
ID (primary key )
Phone
PatientName
DrName
ApptDate
ApptTime
CurrentDate (timestamp)
Result (null)
Thank you,
Doug
Comment