Mirak
Programmer
- Aug 1, 2001
- 28
Hi,
I am having major league headache with SQL Server.
I am trying to write a report which will execute a stored procedure based on certain parameters. Two of the parameters in the stored procedure are datetime data types. My main problem is passing the date value from an Access form to the stored procedure.
When I tried converting the field from datetime to varchar or nchar in the stored procedure, the procedure just ignores the parameters and returns all the records from the table.
When I try to use datetime parameters, SQL server does not like the date format and returns an error.
Just anyone know how to "talk some sense" into SQL server when it comes to datetime fields and parameters.
Any assistance will be greatly appreciated.
I am having major league headache with SQL Server.
I am trying to write a report which will execute a stored procedure based on certain parameters. Two of the parameters in the stored procedure are datetime data types. My main problem is passing the date value from an Access form to the stored procedure.
When I tried converting the field from datetime to varchar or nchar in the stored procedure, the procedure just ignores the parameters and returns all the records from the table.
When I try to use datetime parameters, SQL server does not like the date format and returns an error.
Just anyone know how to "talk some sense" into SQL server when it comes to datetime fields and parameters.
Any assistance will be greatly appreciated.