Viewing 15 posts - 481 through 495 (of 1,193 total)
Sounds like maybe there's an explicit DENY in place.
When a login is sysadmin the DENY won't affect anything because security checks are bypassed.
Try running this in the database in question:
SELECT...
April 25, 2016 at 12:50 pm
Eric M Russell (4/25/2016)
davidlester.home (4/25/2016)
April 25, 2016 at 9:36 am
Ah, my condolences.
There's a really old and still active connect item about this limitation.
You can at least upvote it and hope. 🙂
I thought I remembered there being some ugly ways...
April 25, 2016 at 8:29 am
That's because the non-clustered index was created as partitioned (that is the default behavior when you create an index on a partitioned table).
With it partitioned on eventlogID, that means it...
April 25, 2016 at 7:48 am
The problem in this case is the compile time.
If you look at the plan, you'll see that optimization timed out, and the compile time and CPU are both just over...
April 25, 2016 at 7:14 am
Another way to do unpivots is with CROSS APPLY.
I generally prefer doing it that way.
Here's the equivalent query in that form:
SELECT ID,
Product,
...
April 22, 2016 at 3:56 pm
I'd check to make sure it doesn't have auto close on.
That could make sense of the sequence.
VB code runs, take a while, session closes, database auto closes.
SSMS session executes stored...
April 22, 2016 at 1:37 pm
RAND() is a function. You need those parentheses.
Also note that if you create such a column and insert multiple rows in the same statement, they will all have the same...
April 22, 2016 at 9:38 am
Yes.
Under the job step properties, in the advanced section, there's a spot for Retry Attempts and Retry Interval which do exactly that.
Cheers!
April 22, 2016 at 9:04 am
That is true, but I think the OP may be asking when many lower-level locks are escalated to a higher-level lock (partition or object), whether those lower-level locks that are...
April 22, 2016 at 8:46 am
Ah, ok, as I read it that makes more sense.
The INSERT only has an S lock.
The REBUILD has the U lock and is trying to convert it to an...
April 21, 2016 at 12:05 pm
That's why I'd like to see the full deadlock graph, if possible. Just from this information the only thing I could guess is that it's run in a transaction and...
April 21, 2016 at 10:51 am
sysschobjs is a base table that lies behind sys.objects, sys.indexes, and a bunch of other system views, so all the references to sys.objects, sys.indexes and such are why that INSERT...
April 21, 2016 at 9:48 am
wrightyrx7 (4/21/2016)
John Mitchell-245523 (4/21/2016)
WITH Departments AS (
SELECT *, d.DepartmentName,
CASE WHEN p.PDT_ORG_4_CDA LIKE 'X%'
THEN p.PDT_ORG_5_CDA
ELSE p.PDT_ORG_4_CDA
END AS DeptCode
)
From stage_chris21.PSDET p
INNER JOIN Departments d
ON p.[DeptCode] = d.DepartmentCode
... or this:
SELECT...
April 21, 2016 at 9:26 am
Pher (4/21/2016)
-- Msg 195, Level 15, State 10, Line 5
-- 'NVARCHAR' is not a recognized built-in function name.
-- The TRY_Convert function requires 3 argument(s).
SELECT TRY_CONVERT(NVARCHAR(1), 234523)
Did I miss...
April 21, 2016 at 7:20 am
Viewing 15 posts - 481 through 495 (of 1,193 total)