Hi
I use SQLServer2000 and MS Access2000
I have the below SQL query which will not work as a Access PassThrough
Query, I have tried replacing the @COB with a date string but the query
hangs forever.
Can anyone direct me the right way?
Thanks
Kay
DECLARE @cob smalldatetime
SELECT @cob = '20060616'
SELECT field1,
field2,
field3,
@cob as report_date
FROM table1
WHERE business_date = @cob
AND field1 in (
SELECT field1
FROM table1
WHERE business_date = @cob
AND field9 = 'N'
AND field10 <> -1
GROUP BY field1)
GROUP BY field1,field2,f ield3
I use SQLServer2000 and MS Access2000
I have the below SQL query which will not work as a Access PassThrough
Query, I have tried replacing the @COB with a date string but the query
hangs forever.
Can anyone direct me the right way?
Thanks
Kay
DECLARE @cob smalldatetime
SELECT @cob = '20060616'
SELECT field1,
field2,
field3,
@cob as report_date
FROM table1
WHERE business_date = @cob
AND field1 in (
SELECT field1
FROM table1
WHERE business_date = @cob
AND field9 = 'N'
AND field10 <> -1
GROUP BY field1)
GROUP BY field1,field2,f ield3
Comment