Viewing 15 posts - 2,626 through 2,640 (of 7,187 total)
Hadrian
There's no correlated subquery there, is there? Do you get an error message when you attempt to create the view?
John
April 29, 2016 at 3:04 am
Hadrian
Check that the indexes are actually being used, and that they're being maintained properly. Indexes that size are not a problem in themselves. Indeed, you may find performance...
April 29, 2016 at 2:52 am
Yes, it does seem a strange requirement. But why would you want to use a loop, anyway?
INSERT INTO MyTable (Empid,empname,D1,D2, D3,...,D30)
VALUES (1,'asd',2,2,1,...,<Val30>)
John
April 29, 2016 at 2:48 am
Or this - probably more efficient since it only involves a single scan:
SELECT DISTINCT
ID
,IDDATE
,FIRST_VALUE(FROMID) OVER (PARTITION BY ID, IDDATE ORDER BY JID) AS FROMID
,FIRST_VALUE(TOID) OVER (PARTITION BY ID, IDDATE ORDER...
April 29, 2016 at 2:44 am
I think I've seen jobs failing after owner logins have been deleted. But it's easy to test - why don't you try it and let us know how it...
April 29, 2016 at 2:26 am
You need to cast @NumRows as a character data type. At the moment, since it's int, it's attempting to add instead of concatenate.
John
April 28, 2016 at 10:03 am
Join the Inserted and Deleted virtual tables, and then you can do a comparison between the old and new values.
John
April 27, 2016 at 9:37 am
Yes. Windows and any other processes you have on the server - other SQL Server components, for example.
John
April 27, 2016 at 4:35 am
Maybe they decided that if they allow users to set such a default, too many people would end up blowing tempdb when they do their index maintenance. I think...
April 27, 2016 at 3:37 am
Not as far as I know. It's a property of the create or rebuild operation, not of the index itself. Therefore there wouldn't be a lot of point...
April 27, 2016 at 3:06 am
Craig, I know this doesn't answer your question, but if you have any influence over the structure of your database, please do not use this Entity - Attribute - Value...
April 26, 2016 at 9:32 am
Steve Jones - SSC Editor (4/26/2016)
Phil Parkin (4/26/2016)
April 26, 2016 at 9:20 am
info.sqldbamail (4/26/2016)
April 26, 2016 at 7:23 am
I assume that the ID columns in PolicyAudit and Systems are unique? If so, you're only going to get one row because you're joining on them to the single-row...
April 26, 2016 at 4:47 am
Remove them first. Nobody wants orphaned users in their database. It shouldn't be too difficult to write a script that will take the login name, go to all...
April 26, 2016 at 3:49 am
Viewing 15 posts - 2,626 through 2,640 (of 7,187 total)