Viewing 15 posts - 76 through 90 (of 216 total)
jay holovacs (1/26/2012)
My lawyer who injured his back in sports when young uses a stand up computer desk (and also sits on a large pilate? ball instead of...
January 26, 2012 at 11:23 am
Thanks Jeff. Guess the key is knowing how to use the OVER clause for something else besides ROW_NUMBER().
And that's a nifty way to get a lot of test data in...
January 9, 2012 at 1:16 pm
Revenant (12/21/2011)
December 22, 2011 at 2:12 pm
Stephen E. Cook (12/21/2011)
How disappointing. What a waste of a free trip to SPACE!
Agreed, at this point it's just a cash prize. Maybe one of the stipulations for contest could...
December 21, 2011 at 7:17 am
Yeah, it's cool; I didn't know you could do this. I was getting this type of thing done by, and I'll use the C word, a cursor. π
Ken
December 20, 2011 at 1:07 pm
As others have said this is a really good discussion. I'm glad this article got reposted. A couple months ago we inherited a couple 2005 servers; one which was really...
December 16, 2011 at 3:31 pm
Oh, true about the DROP TABLE statement. I accidently uncommented out the comment when reformatting :laugh:
Ken
December 9, 2011 at 9:24 am
sp_send_dbmail needs a profile to send a message from. I added it as a param. If null then grab a profile from a system table. Also removed the duplicate DROP...
December 8, 2011 at 9:40 am
GSquared (11/28/2011)
November 28, 2011 at 2:38 pm
Thanks a lot. I think this does the trick.
CREATE ROLE rlReportWriter
CREATE USER ReportUser FROM LOGIN test
CREATE SCHEMA ReportWriter Authorization ReportUser
EXEC sp_addrolemember db_datareader, rlReportWriter
EXEC sp_addrolemember rlReportWriter, ReportUser
GRANT CREATE PROCEDURE TO rlReportWriter
GRANT...
November 28, 2011 at 2:10 pm
The single most common cause of both work overload and project failure is doing work twice. The most common cause of that is picking up some piece of work (opening...
November 28, 2011 at 11:32 am
I see it too, and I've seen it before when posting code on this site. It must be that special characters get in there instead of CRLF combinations. Try deleting...
November 28, 2011 at 11:01 am
The fourth part of the script is meant to return permission granted directly to a user, outside of a role (at least in 2005).
That's one of the beauties of this...
November 16, 2011 at 1:15 pm
Think I got it now after seeing it taught at PASS last week. The order in which a Select statement is deconstructed:
from
on/join
where
group by
having
select
distinct/order by/top
Which is why we can only refer...
October 18, 2011 at 9:25 am
"Use where [10%] > 1000 "
That's what I recall, that you can use aliased names in a Where or Group By clause. But this returns an error in SQL 2008.
Select...
October 7, 2011 at 4:30 pm
Viewing 15 posts - 76 through 90 (of 216 total)