Viewing 15 posts - 2,626 through 2,640 (of 7,191 total)
Don't look at indexed views as panacea to improve performance. If you have a high proportion of write activity to reads, it could make things worse. Instead, consider...
April 29, 2016 at 4:06 am
Assuming the server also runs the database engine and that xp_cmdshell is enabled, create a stored procedure that executes the dtexec command, and give him permission to run the stored...
April 29, 2016 at 4:03 am
No, there's no limit, but the more jobs you attempt to run at the same time, the more likely you are to experience concurrency issues (blocking and deadlocks) and contention...
April 29, 2016 at 3:50 am
I don't think there's any easy way round this. As you've seen, there are quite a few constructs that aren't allowed in indexed views. Consider whether you need...
April 29, 2016 at 3:47 am
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
Viewing 15 posts - 2,626 through 2,640 (of 7,191 total)