Viewing 15 posts - 271 through 285 (of 13,429 total)
create all your variables you need in your SSIS package.
Pass them to your script task.
then in your code, read them into a variable, assign a value...
August 14, 2018 at 10:15 am
gmail has to use port 587 as well as the use_ssl flag.
here's the exact script i use. replace"sqlnotifications@gmail.com" with your gmail address instead.--#################################################################################################
-- BEGIN Mail...
August 10, 2018 at 12:58 pm
you'll need to re-save it as a lower version.
with Visual Studio, create a new Reporting services project.
add an existing item with the specific rdl in question.
right...
August 10, 2018 at 12:29 pm
here you go, here is one way:
i just used a case statement to examine the fifth character, to determine where to start the substring:/*
ActualValue ExpectLeftValue ...
August 10, 2018 at 11:57 am
Beating my own drum here, but i put together a procedure that queries the metadata to script tables and objects:
I try to maintain it as best I can, it's...
August 6, 2018 at 10:01 am
your example was not syntactically correct, i fixed it for you.
the key you want here is to group by and SUM.
some things just don't belong in the results,...
July 24, 2018 at 2:12 pm
SearchAllTables from stack overflow explicitly ignores date/datetime datatypes.
peek at the code:
AND DATA_TYPE IN ('char', 'varchar', 'nchar', 'nvarchar', 'int', 'decimal')
modify your version to use datetime data...
July 15, 2018 at 6:26 pm
in SSMS, if you drag the columns folder from the SQL object explorer to an ssms window, all columns will appear as a comma delimited list.
it's easier then to...
June 11, 2018 at 6:30 am
SQL doesn't have a rowtype equivalent.
ROWTYPE , in sql terms for me, is used in a cursor as a collection of all the @parameters that would correspond to each...
June 11, 2018 at 6:20 am
We have an Audit in place that captures Login created or Login Changed.
I have seen on patch nights, those same logins get dropped and recreated as part of the patches;
i...
May 3, 2018 at 3:20 pm
it's gotta be permissions.
here's my suggestion:
On the SQL Server, Create a credential that has your actual username and password, because we know it works when you execute it.
May 3, 2018 at 3:03 pm
can you create some Aliases in SQL configuration manager, so, for example servers named [ProdCluster01] and [ProdETSource] etc etc are all aliased to point to your local machine? or to...
May 1, 2018 at 3:12 pm
the verb was just so it mirrored the filename and process; it just seemed right;
This was republished today , as it had some relevancy for new folks.
April 27, 2018 at 12:48 pm
use a script task instead of a file system task;
the code would look something like this:
string WorkingDirectory = (string)Dts.Variables["WorkingDirectory"].Value;
string ArchiveDirectory = (string)Dts.Variables["ArchiveDirectory"].Value;
April 13, 2018 at 2:40 pm
how are you sending the data to CSV in your job step? sqlcmd? bcp? powershell? SSIS? both sqlcmd and bcp can add those delimiters , and force column widths .
March 19, 2018 at 9:52 am
Viewing 15 posts - 271 through 285 (of 13,429 total)