Viewing 13 posts - 1 through 13 (of 13 total)
With the changes above it does work just fine without the loop.
The whole code is below, with the xp_sendmail part as well if anyone else is looking to send results...
May 24, 2007 at 6:31 pm
Yep, that's it. The WHERE SLPRSNID =@MinRep is used for looping. The section above the whole thing changes @MinRep so that the loop selects the next record.
I'll give...
May 24, 2007 at 7:15 am
Sorry for the confusion. @Message does change, basically it grows, adding the results from the previous record, until there are no records left in @Stage table (from @MinRep to...
May 23, 2007 at 10:45 pm
It works fine with the SELECT @Message = ISNULL(@Message + ',', '') + @Concat replacement, but I can't get it working with Sergiy's solution.
It's probably just the way that I...
May 23, 2007 at 10:07 pm
Wow, thanks for the fast response!
Stepped out for an hour and I've come back to not only the solution but an improvement on the design.
For future reference, I understand the...
May 23, 2007 at 9:49 pm
Regestering the 2 dlls fixes the problem. No need to re-apply the service pack.
Thanks Nicholas!
October 7, 2004 at 7:34 pm
Thanks,
Learn something new everyday.
Regards,
Mark
September 26, 2004 at 5:13 pm
Scott,
Not that it is an issue here, as the query runs in the blink of an eye, but wouldn't a subquery run more slowly as it has to complete both...
September 23, 2004 at 5:46 pm
I thought there might be a way to reference expression columns. MS-Access can do it, and there's usualy a way to do it in sql if access can.
AGS I like...
September 22, 2004 at 12:01 am
Select
(a.qty1*price1) as total1,
(a.qty2*price2) as total2,
(total1 + total2) as Gtotal
from a
Obviously I could do '((a.qty1*price1) + (a.qty2*price2)) as Gtotal' would work, but there must be a simpler way to do it.
Thanks,
Mark
September 21, 2004 at 11:44 pm
Phil,
Thanks for the reply.
I'm not completely skilled with VBScript, but I think I could figure it out.
I'd still like, if possible, to create a DTS package because of the logging...
September 8, 2004 at 8:28 pm
Did a little further diggin on this site and http://www.sqldts.com and came up with a solution:
'**********************************************************************
' Visual Basic ActiveX Script
'************************************************************************
Function Main()
Dim Doc
Dim LoopCheck
Set LoopCheck = DTSGlobalVariables.Parent.Steps("DTSStep_DTSActiveScriptTask_1")
Doc = DTSGlobalVariables("Document").Value
If Doc <> ""...
August 8, 2004 at 6:09 pm
Bruce, I'm not sure I understand your reply.
I have access to the package designer, it's how I created the package.
The package will be running on a schedule, I just want...
August 5, 2004 at 7:19 pm
Viewing 13 posts - 1 through 13 (of 13 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy