Viewing 15 posts - 2,431 through 2,445 (of 13,469 total)
i've done a CLR which sends email, but that assumes you have the ability to install CLR assembleis on your machine; .NET has the built in classes to do that,...
March 24, 2014 at 5:43 am
ok this got interesting so i did the whole thing.
enjoy!
/*
valSkills
000010010011,8,64
0101111111,2,4,8,16,32,128
101011,4,16
10101004,16,64
*/
;WITH myStrings (val)
AS (
SELECT '00001001001' UNION ALL
SELECT '10101' UNION ALL
SELECT '1010100' UNION ALL
SELECT '010111111' )
,
FormattedStrings AS (
SELECT val,
right('0000000000000000000000000000000'...
March 21, 2014 at 3:02 pm
Erin i have this saved in my snippets, that will get you 90% there;
this is enumerating the bits as to wether they are true or false.
;WITH myStrings (val)
AS (
SELECT '00001001001'...
March 21, 2014 at 2:56 pm
a lot more information as far as details would help, but
if the data is important line by line, then for me, each line should be stored as a row/column in...
March 21, 2014 at 1:02 pm
you said "Ignore the Data3 column"
if i do that, each set you posted are identical, with the exception of the id column, which seems to be incrementing?.
it seems the only...
March 21, 2014 at 10:51 am
Stubby Bunny (3/21/2014)
yes, I can see the trace, there is only one going, reading something about a defaut trace that runs on sql server, but whomever set up this server...
March 21, 2014 at 10:26 am
the trigger is always in an implicit transaction.
if your procedure is trying to update the same table the trigger is on, it will block itself, and can never complete.your proc...
March 21, 2014 at 7:56 am
thava (3/20/2014)
i need to import the data as set with out redundant
by import, do you mean insert?
typically i would join the new data against the destination table,and check...
March 20, 2014 at 11:27 am
first, make sure it hit the queue,a dn see if there is an error in the mail logs.
do you see your email in this select?
SELECT
sent_status As Reason,
err.[description],
...
March 19, 2014 at 2:39 pm
yep it's possible, but it's not built in.
using the GUI or via SMO is infinitely easier; I know, because i poured weeks of effort down the TSQL-only method, and it's...
March 19, 2014 at 11:22 am
i've got SQL Enlight for SSMS, which is a static code reviewer, and it identifies all the missing semicolons , along with other best practices for SQL.
it's not cheap...
March 19, 2014 at 5:24 am
somewhere in your package, you've got a flat file connection manager.
if you go to it's details, and go to the columns column, you can change the column delimiter from a...
March 18, 2014 at 10:53 am
i would not put too much value in the local ip address; SQL's configured to listen to multiple ip addresses(including 127.0.0.1), and you can review them in the server configuration...
March 17, 2014 at 6:52 am
single table backup is a manual process, which is what the question is testing your knowledge for.
since you cannot take the application offline, which means you cannot restore the current...
March 15, 2014 at 12:31 pm
a linked server , when joined against local data, is very slow.
what actually happens is the entire table from the linked server is copied over into local tempdb, and...
March 15, 2014 at 12:28 pm
Viewing 15 posts - 2,431 through 2,445 (of 13,469 total)