Viewing 15 posts - 61 through 75 (of 388 total)
This is a more elegant and more readable solution... thanks!!
August 17, 2021 at 5:44 pm
I found a similar problem on another site that I modified and got to work:
DECLARE @Count2 INT = (SELECT [CallCount]
FROM [a2wh].[dbo].[CallLogCommonCount] Count1
WHERE (2-1) = (
SELECT COUNT(DISTINCT(Count2.[timestamp]))
FROM...
August 13, 2021 at 7:36 pm
Finally got it! this works:
(SELECT Convert (varchar, (SELECT COUNT (*) FROM .[dbo].[Stage_Log] WHERE datestamp = LEFT(CONVERT(varchar, GetDate(), 120), 10))))
August 12, 2021 at 6:03 pm
The query below works fine now isolated, but it is part of an email stored procedure and I'm getting the error from SQL Agent:
08/12/2021 13:11:45,tel_SMS,Error,2,GSO-SSIS-DEV,Ytel_SMS,Send success email,,Executed as user: NT...
August 12, 2021 at 5:06 pm
Never mind the last crisis... fixed... and the Derived Column with just the expression worked perfectly... thanks!
August 12, 2021 at 3:51 pm
Something really went bad in my VS 2017 SSDT. I went into the advanced editor for the derived column and VS closed, I reopened VS 2017 SSDT and now it...
August 12, 2021 at 3:22 pm
Dumb question... I can just run the email step as a result of a successful run of the first step.
August 12, 2021 at 1:58 pm
I too think I feel more comfortable keeping email notification in SQL Server rather than SSIS as I've learned that it is very versatile. The below code actually works for...
August 12, 2021 at 1:34 pm
Thanks... How do I write to a file in C#? I'm really new to C#
August 11, 2021 at 3:26 pm
This worked!:
using System.Net;
public void Main()
{
try
...
August 5, 2021 at 5:59 pm
Just to get the program running I used, reluctantly, a File System Task... and it worked but with limitations. The code I have in the script task is failing to...
July 8, 2021 at 2:50 pm
Thanks!... I'm always forgetting "using System.IO;"
July 8, 2021 at 2:32 pm
I put in the Try/Catch code and the two dts variables, but the C# has errors: "The name File does not exist in the current context.". I have these values...
July 8, 2021 at 2:21 pm
I like your code but for right now I'm testing the below to simply delete the file. My package running from SQL Agent is reading the file and writing successfully...
July 7, 2021 at 6:55 pm
What code are you using in your 'Archive File' script task?
July 7, 2021 at 5:42 pm
Viewing 15 posts - 61 through 75 (of 388 total)