Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 Using Parameterized Queries in DTS

Author  Topic 

rosejr
Starting Member

12 Posts

Posted - 2008-10-29 : 15:47:15
The following query throws errors, saying "Syntax error or access violation". Are you able to use parameterized queries with IF statements like below or IF EXISTS?

IF ( SELECT COUNT(*) FROM DBO.CASE_XREF WHERE ACCT_NBR = ? ) = 0
BEGIN
RAISERROR('Invalid PROD NB Acct_nbr', 16,1)
END


If not does any one have any solutions? I trying to avoid using stored procs and keep all code in the DTS.

RickD
Slow But Sure Yak Herding Master

3608 Posts

Posted - 2008-10-30 : 06:33:00
Why avoid using Stored Procs? Are you trying to slow the processing down for some reason?

To do this in DTS, you will need to use an ActiveX script.
Go to Top of Page
   

- Advertisement -