L
Lost
Hi,
I am having trouble declaring date value in pass through sql query.
Below is what i have currently -
Declare @BegDate as datetime
Declare @EndDate as datetime
select @BegDate = '01-jan-2005'
select @EndDate = '30-sep-2005'
When i run this in Access - i get an error saying 'Returns no value'
but when i run it in Query Analyzer it returns the values i want.
Any ideas?
Thanks
I am having trouble declaring date value in pass through sql query.
Below is what i have currently -
Declare @BegDate as datetime
Declare @EndDate as datetime
select @BegDate = '01-jan-2005'
select @EndDate = '30-sep-2005'
When i run this in Access - i get an error saying 'Returns no value'
but when i run it in Query Analyzer it returns the values i want.
Any ideas?
Thanks