Viewing 15 posts - 1,711 through 1,725 (of 14,953 total)
Did you create (or already have) the user in the database before you gave them permissions? That's the usual sequence.
April 12, 2012 at 12:22 pm
Revenant (4/12/2012)
GSquared (4/12/2012)
GilaMonster (4/12/2012)
GSquared (4/12/2012)
Or do you have something more specific in mind?
Today's example:
SELECT <stuff> FROM
Table1
inner join (SELECT <more stuff> INTO #Temp FROM AnotherTable) ON <join clause>
inner join (....repeat...
April 12, 2012 at 12:18 pm
Important note: Don't start shrinking files till you've done a few more steps to prep for that. I mentioned shrinking files, and don't want you to get ahead of...
April 12, 2012 at 12:15 pm
It won't free up disk space directly. You'd have to either delete files or shrink files for that.
Log backups, in Full recovery, will usually free up space inside the...
April 12, 2012 at 12:13 pm
Log backups would be a good place to start for that.
But if the databases were in Simple recovery, and they're full anyway, that won't help. You'll need to expand...
April 12, 2012 at 12:12 pm
GilaMonster (4/12/2012)
GSquared (4/12/2012)
Or do you have something more specific in mind?
Today's example:
SELECT <stuff> FROM
Table1
inner join (SELECT <more stuff> INTO #Temp FROM AnotherTable) ON <join clause>
inner join (....repeat several more...
April 12, 2012 at 12:09 pm
Steve Jones - SSC Editor (4/12/2012)
April 12, 2012 at 12:07 pm
GilaMonster (4/12/2012)
April 12, 2012 at 12:04 pm
Lynn Pettis (4/12/2012)
GSquared (4/12/2012)
Eugene Elutin (4/12/2012)
...
It's entirely possible someone with better C#/VB.NET skill than mine can make a CLR function that's faster, but the options I found online for...
April 12, 2012 at 11:59 am
If you want to test equality conditions, you can do this:
Where @Parameter in (Col1, Col2, Col3)
That will find any column that is equal to the parameter value.
Can't do that so...
April 12, 2012 at 11:48 am
Grant Fritchey (4/12/2012)
Lynn Pettis (4/12/2012)
What would happen here on SSC if the TOP 25 posters did nothing but lurk for 24 hours?
Not much. There'd just be a few more unchallenged...
April 12, 2012 at 11:41 am
I just ran another speed test. 23,028 rows needed phone numbers cleaned. Took 734 milliseconds total, 733 ms CPU time.
April 12, 2012 at 11:14 am
Eugene Elutin (4/12/2012)
...
It's entirely possible someone with better C#/VB.NET skill than mine can make a CLR function that's faster, but the options I found online for that were all...
April 12, 2012 at 11:10 am
dwain.c (4/12/2012)
Thanks for pointing out an issue with the ampersand REPLACE I was doing. I corrected my post accordingly.
Now as to performance, I'm curious why you think the version...
April 12, 2012 at 9:30 am
If you want a more efficient version, that doesn't require as much pre-processing, any CLR, etc., try something like this:
CREATE TABLE #T (String VARCHAR(100)) ;
INSERT INTO #T -- Sample...
April 12, 2012 at 6:56 am
Viewing 15 posts - 1,711 through 1,725 (of 14,953 total)