dbTalk Databases Forums  

Update and SQL

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


Discuss Update and SQL in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
eleftheriak@hotmail.com
 
Posts: n/a

Default Update and SQL - 02-09-2005 , 09:06 AM






Hi I have the following code and I get an error.

Propably syntax but I m new to DTS

sql = "UPDATE Weeks SET WeekStart = '"& ww &"' FROM CurrentWeek
WHERE Weeks.WkNo = CurrentWeek.Wkno + 1"


ww is a global variable

Can anyone help?

Thanks in advance

RIRI


Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Update and SQL - 02-10-2005 , 01:30 PM






And you have this code where?

Yep this will fail no matter where you are in DTS.

Have a look at

Global Variables and SQL statements in DTS
(http://www.sqldts.com/default.aspx?205)

Or (Page 8)

How to Use Lookups in DTS
(http://www.sqldts.com/default.aspx?277)



"eleftheriak (AT) hotmail (DOT) com" <eleftheriak (AT) hotmail (DOT) com> wrote

Quote:
Hi I have the following code and I get an error.

Propably syntax but I m new to DTS

sql = "UPDATE Weeks SET WeekStart = '"& ww &"' FROM CurrentWeek
WHERE Weeks.WkNo = CurrentWeek.Wkno + 1"


ww is a global variable

Can anyone help?

Thanks in advance

RIRI


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.