Viewing 15 posts - 2,866 through 2,880 (of 13,853 total)
This is interesting ... I usually head from table variables to temp tables. Are you finding improvements across the board (ie, for all temp tables), or just in certain scenarios?
March 5, 2020 at 12:48 pm
That's some bad code there Mike. I've seen some similar, but add a couple UNION statements and all with in an SSRS report. Talk about slow code.
I've also...
March 4, 2020 at 9:40 pm
The date which appears in your subject will depend entirely on the date on which the job is run. In words: "Give me the date for Sunday of the preceding...
March 4, 2020 at 9:23 pm
I wasn't sure if running this package weekly if that function would update automatically every week
GETDATE() updates every time you call it.
March 4, 2020 at 9:05 pm
Actually for the week of February 23rd
again I really appreciate the help
Oops, I meant Feb.
Change your DECLARE @Sub line as follows:
DECLARE @Sub NVARCHAR(255)
...
March 4, 2020 at 9:04 pm
So ... if the job ran today, would you like the subject to be
'Transfer Report for the week of 23 March to 29 March'
?
March 4, 2020 at 8:52 pm
Thanks Phil I appreciate it how would I get it to say for the week of 23 to 29th?
Please define the logic for determining the numbers to use.
March 4, 2020 at 8:41 pm
My apologies. This is better:
DECLARE @FilePath NVARCHAR(MAX) = N'C:\inetpub\ftpuser\WESA\ftpwashingtondc\DCWeeklyEmail\';
DECLARE @Filenames NVARCHAR(MAX);
DECLARE @EmailAddress VARCHAR(MAX);
SET @EmailAddress = '?';
SET @Filenames = @FilePath + N'dc_weekly' + N'.csv';
DECLARE @Sub NVARCHAR(255) = CONCAT('Example...
March 4, 2020 at 8:25 pm
Modify the line
@Subject = 'Transfer Report',
to
@Subject = CONCAT('Transfer Report for the week of ', CONVERT(CHAR(10), GETDATE(), 101)),
and see whether that is getting you close to what you need.
March 4, 2020 at 8:14 pm
When I send e-mails from SSIS, I usually use an ExecuteSQL task which runs sp_send_dbmail (link).
If you configure this, you have all the control you should ever need.
If you...
March 4, 2020 at 8:05 pm
OK, I think maybe you don't understand what I am driving at, so I'll spell it out.
If you stop the IS service, all of your 'security reasons' become irrelevant and...
March 4, 2020 at 7:32 pm
... just need to know which and what grants purpose etc.
Why do you need to know? What is it that you are trying to achieve? Are you doing a...
March 4, 2020 at 7:22 pm
Having read all of these posts, I'm mighty glad I've never had to deal with these types of file!
March 4, 2020 at 6:42 pm
As I think you have been asked in another thread, what is it about the IS service which you think you need?
It can be turned off, yet will not prevent...
March 4, 2020 at 6:41 pm
Viewing 15 posts - 2,866 through 2,880 (of 13,853 total)