Viewing 15 posts - 4,696 through 4,710 (of 13,465 total)
i have this saved in my snippets; it's checking a short dictionary of weak passwords, and also where the password is the users name.
you might want to expand the dictionary;
for...
September 21, 2012 at 11:09 am
saltpepo (9/21/2012)
Cool Guys u rock.Could you give some good links to learn sql basics
a lot of great guys here have put together a bunch of "stairways" series on many of...
September 21, 2012 at 6:28 am
Mark-101232 (9/21/2012)
declare @asd varchar(20)set @asd ='asdaaaadffa'
select len(@asd) - len(replace(@asd,'a',''))
oh your fast on the draw there, partner!
September 21, 2012 at 6:20 am
saltpepo (9/21/2012)
Hello,I need to count repeating alphabet only
a=6 thats it.
well, 'f' repeats as well in your example.
the easiest way for the count is simply
SELECT LEN(@asd) - LEN(REPLACE(@asd,'a',''))
September 21, 2012 at 6:20 am
so do you want a count of the max number of repeats in the string for each letter?
so a=4,s=1,d=1,f=2, or are you after just...
September 21, 2012 at 6:08 am
dwain.c (9/21/2012)
It runs in SQL 2008.
runs on 2005 also;
September 21, 2012 at 5:37 am
jean 93062 (9/20/2012)
September 20, 2012 at 1:22 pm
jean 93062 (9/20/2012)
Please tell me where the results of a print statement can be retrieved when the print statement is executed by a trigger.Thx. Jean
if you are running a...
September 20, 2012 at 1:11 pm
jasona.work (9/20/2012)
And before anyone suggests making up a pros / cons to actually buying something vs the script, I've done that. I often feel my boss is of the...
September 20, 2012 at 11:26 am
xinli923 (9/20/2012)
Error:2
the entire error message is what we need to help; the state and actual error message are critical.
error 2 is cannot connect in general;
for example:
Microsoft SQL Server Login
Connection failed:...
September 20, 2012 at 10:58 am
yep, answering my own question, found a post from an MS spokesman:
Unfortunately, OPTION (MAXRECURSION limit) is not allowed in the definition
of views or user-defined functions. This restriction may be...
September 20, 2012 at 8:47 am
agreed, that's where i thought it should go, but when i put it there i get a syntax error:
Msg 156, Level 15, State 1, Procedure XML_To_ASCII, Line 91
Incorrect syntax near...
September 20, 2012 at 8:38 am
cidr (9/19/2012)
lowell 2012-09-12
@67 posts, i didn't think this was homework for the OP, and i got all excited about making a recursive CTE work before someone else beat me...
September 19, 2012 at 3:35 pm
iit depends on your data, if any status other than OK, then it fails, for example?
With MyCTE (Product,Parts,Status)
AS
(
SELECT 'Laptop1','mouse','OK' UNION ALL
SELECT 'Laptop1','screen','OK' UNION ALL
SELECT 'Laptop1','button','OK' UNION ALL
...
September 19, 2012 at 3:30 pm
there's more than a few great threads here on SSC on the subject: i think all of the threads here have actual documents attached from various posters as well.
http://www.sqlservercentral.com/Forums/Topic590668-338-1.aspx
http://www.sqlservercentral.com/Forums/Topic857703-391-1.aspx
http://www.sqlservercentral.com/Forums/Topic560087-145-1.aspx
September 19, 2012 at 3:19 pm
Viewing 15 posts - 4,696 through 4,710 (of 13,465 total)