Re: SQL stmts do not work on SQL server but work on Access
- From: "coedxiao via AccessMonster.com" <u11274@uwe>
- Date: Tue, 11 Apr 2006 16:00:24 GMT
Perfect. Worked. Thanks!!
MGFoster wrote:
The statment is not an SQL standard statement. Access lets you do non
standard SQL. To convert to standard SQL (only one table name in the
UPDATE clause):
UPDATE ##service
SET status = 'Covered'
WHERE EXISTS (SELECT * FROM ##coverage AS C
WHERE ##service.dt_filled BETWEEN C.start_dt AND C.end_dt
AND id = ##service.mem)
The following statements does not work on Microsoft SQL server. (ERROR msg:[quoted text clipped - 4 lines]
Incorrect syntax near the keyword 'LEFT'.) But they work on Access (with
WHERE (##service.dt_filled) Between ##coverage.START_DT And ##coverage.END_DT)
;
--
Message posted via http://www.accessmonster.com
.
- References:
- SQL stmts do not work on SQL server but work on Access
- From: Crystal via AccessMonster.com
- Re: SQL stmts do not work on SQL server but work on Access
- From: MGFoster
- SQL stmts do not work on SQL server but work on Access
- Prev by Date: Re: Searching for Key Words in a String of Text
- Next by Date: Re: Extracting the Last Word of a String
- Previous by thread: Re: SQL stmts do not work on SQL server but work on Access
- Next by thread: Re: Replace text in a Query
- Index(es):
Relevant Pages
|