I have been using Access and now I am migrating to SQL Server 7.0. Using Access I can query a table like this:
"SELECT * FROM table WHERE workdate = #" & dteDate & "# "
This works fine in Access but does not in SQL server. I can't seem to get any format to work. I notice in the Query Analyzer that the workdate field includes the date and time (the time listed as something like 00:00:00:00. I am using date/time format for the field. Can anyone suggest the correct syntax for a date query of SQL server?
Thanks in advance,
Shannan
"SELECT * FROM table WHERE workdate = #" & dteDate & "# "
This works fine in Access but does not in SQL server. I can't seem to get any format to work. I notice in the Query Analyzer that the workdate field includes the date and time (the time listed as something like 00:00:00:00. I am using date/time format for the field. Can anyone suggest the correct syntax for a date query of SQL server?
Thanks in advance,
Shannan