Viewing 15 posts - 46 through 60 (of 99 total)
If I am not misreading the original request, I think you are trying to get multiple pseudo-identity columns in a single table.
This is a somewhat squirrely approach but it'd probably...
March 1, 2010 at 1:39 pm
And for (future) reference-- looking at the execution plan should show they are identical.
February 24, 2010 at 3:16 pm
jcrawf02 (2/19/2010)
mstjean (2/19/2010)
SuspicionBreedsConfidence****An ironic phrase appearing in the background in one of the greatest movies ever made, but in the context of a SQL DBA's life, a truism.
I love that...
February 19, 2010 at 1:49 pm
SuspicionBreedsConfidence**
**An ironic phrase appearing in the background in one of the greatest movies ever made, but in the context of a SQL DBA's life, a truism.
February 19, 2010 at 12:56 pm
{hijack with apologies}
sing4you (2/17/2010)
mstjean (2/17/2010)
Nine apathetic, sympathetic, diabetic old men on roller skates with a marked propensity toward procrastination and sloth
Isn't this from "'Twas the night of the King's ....
February 17, 2010 at 1:48 pm
Nine apathetic, sympathetic, diabetic old men on roller skates with a marked propensity toward procrastination and sloth
February 17, 2010 at 12:10 pm
Is it safe to assume you will be relocating to Mount Olympus soon? Judging from your avatar it appears you're already appropriately attired.
February 12, 2010 at 11:10 am
Doh was yesterday's.
Today is "so-close-to-the-weekend-I-can-taste-it"
Whoops. Sorry, forgot to include the code I used to derive my d'oh. When I re-ran it, it still comes up d'oh.
CASE
WHEN...
February 11, 2010 at 1:35 pm
Glad you like it.
By the way, my identity is not "SSC-Enthusiastic", just as yours is not "Forum Newbie".
Generally you should try to avoid using cursors in tsql-- with few...
February 10, 2010 at 3:56 pm
You don't need a cursor; run this from the db you want to collect information on.
SELECT
sdp2.[name] as DBUser, sdp2.type_desc as DBUserType,
sdp1.[name] as DBUserRole, sdp1.type_desc as DBUserRoleType
FROM sys.database_role_members drm
LEFT JOIN sys.database_principals...
February 10, 2010 at 1:31 pm
...when I needed to refresh all views, I was used to create the script with all DROP and CREATE for all views,...
If/when you do this-- be sure you grab the...
February 8, 2010 at 3:57 pm
This would NOT catch updates to a non-indexed table and it only has info since the last SQL restart, but if THOSE conditions were not game-stoppers, would this be a...
February 1, 2010 at 7:07 pm
Viewing 15 posts - 46 through 60 (of 99 total)