dbTalk Databases Forums  

DTS Package

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss DTS Package in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Watson78
 
Posts: n/a

Default DTS Package - 12-22-2009 , 10:59 AM






I am trying to run a sql statement as part of a DTS package. I've tried
variations of the following:

Update tblPlayers
Set tblPlayers.IsNoMail ='-1'
From tblPlayers inner join NCOABad on tblplayers.acct =NCOABad.acct
GO

Basically, I have imported an excel sheet of bad addresses into the database
in the first steps of the package, and now I want to update another table to
mark these accounts as "no mail".

Any help is greatly appreciated.

Reply With Quote
  #2  
Old   
Todd C
 
Posts: n/a

Default RE: DTS Package - 12-22-2009 , 11:53 AM






Try executing the command by itself inside SQL Server Management Studio.

What is the data type of field [IsNoMail] ? If Boolean (bit) then 0 = False
and 1 = True. (Yeah, I know, not pure boolean logic, but hey, it's Microsoft
and THEY decide).

If it's integer, try removing the single quotes:
Set tblPlayers.IsNoMail = -1

Hope this help. If so, please post a quick response because I don't think
I'm getting notification from the site when someone responds. I need someone
to respond to a post/reply for me. Thanks.

--
Todd C
MCTS SQL Server 2005


"Watson78" wrote:

Quote:
I am trying to run a sql statement as part of a DTS package. I've tried
variations of the following:

Update tblPlayers
Set tblPlayers.IsNoMail ='-1'
From tblPlayers inner join NCOABad on tblplayers.acct =NCOABad.acct
GO

Basically, I have imported an excel sheet of bad addresses into the database
in the first steps of the package, and now I want to update another table to
mark these accounts as "no mail".

Any help is greatly appreciated.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.