Viewing 15 posts - 46 through 60 (of 82 total)
BOL:
"The WITH CHECK and WITH NOCHECK clauses cannot be used for PRIMARY KEY and UNIQUE constraints."
August 10, 2005 at 8:06 am
Another useful source of info that works in triggers is
SELECT * from master.dbo.sysprocesses WHERE spid = @@spid
sysprocesses has lost of stuff: login, host, NT login, appname, (but not the nesting...
August 2, 2005 at 7:03 am
I certainly agree (as does everyone on this thread) about always having primary keys.
There are many reasons why one would not always use clustered indexes. One not mentioned so far...
July 23, 2005 at 7:08 am
This error occurs when your database has indexed views or indexes on computed columns.
http://support.microsoft.com/default.aspx?scid=kb;en-us;301292
July 20, 2005 at 6:48 am
Thanks dcpeterson,
The mechanism you describe sounds plausible.
Its something I really need to watch out for as I use READ UNCOMMITTED quite a bit for reporting.
I always thought the only way...
July 19, 2005 at 5:35 pm
Sorry I cant really answer about DMO.
In TSQL you can look at sp_helprolemember
or try a variation of
select DbRole = g.name, MemberName = u.name, MemberSID = u.sid
from sysusers u, sysusers g,...
July 19, 2005 at 7:47 am
I am interested to know if noeld's elegant solution really does avoid deadlock.:
UPDATE unprocessed_message
SET state = @StateNext,
@id = id,
win_service_name = @WinServiceName,
machine_name...
April 1, 2005 at 7:10 am
The trigger code is not in scope, hence scope_identity() will not pick it up.
Maybe @@identity will do it for you - unless you have other identity inserts in the trigger.
Its...
April 1, 2005 at 6:50 am
If several instances of GetNextUnprocessedMessage can run at once, then deadlock can occur because 2 instances can both acquire a shared lock in in the first select statement.
Then each instance...
April 1, 2005 at 6:20 am
Have you re-started SQL Agent? I found it sometimes needs to be restarted to re-establish a MAPI session if the exchange server has been re-configured.
March 9, 2005 at 4:03 am
Actually it sounds as though the SQLAgent service may be running under a different user account from SQLServer itself (since SQL server can see the profile but the agent cant).
You...
March 8, 2005 at 4:02 am
Hi Steve,
The cohortCount will always be the same in every row of the fact table with the same cohortID, so we could either pick the lastest or use min or...
November 19, 2004 at 5:26 am
I am new too Im afraid.
Have you looked at the member properties of dimensions. It is in books online:
example:
WITH
MEMBER [Measures].[Store Size] AS
'Val(Store.CurrentMember.Properties("Store Sqft"))'
SELECT
...
November 18, 2004 at 2:37 pm
A good article with some interesting observations.
I would add a point that when using a string to represent the date it is better to get in the habit of using...
October 27, 2004 at 5:46 am
Viewing 15 posts - 46 through 60 (of 82 total)