Viewing 15 posts - 241 through 255 (of 455 total)
1. Create SQL Server job that EXEC your S.P.
2. Job/Properties/Notifications
May 29, 2014 at 8:27 am
Run this script:
SELECT t.name,
i.index_id,
i.type_desc,
i.name,
...
May 29, 2014 at 8:10 am
Yes, it can happen. I had a situation when 3 SPID's were blocking each other in a circular mode. I got an impression that SQL Server does not handle such...
May 28, 2014 at 2:22 pm
Do you pass the right @TraceID taken from sys.traces?
Also, try to call it with hard-coded value:
exec sp_trace_setfilter 2, 13, 0, 4, 3000000
May 27, 2014 at 8:51 am
TheComedian (5/27/2014)
I've deleted a non clustered index that was taking up too much place but after running the exec sp_spaceused for the table, I've found that the index_size is...
May 27, 2014 at 8:41 am
But what is your problem? You posted a solution, just wrap it into a stored procedure and place it in your prod server. And call it whenever you have a...
May 21, 2014 at 9:11 am
I usually run this query on both sides and monitor its progress. It would be helpful if you have two monitors
select SCHEMA_NAME = left(s.name,30),
...
May 20, 2014 at 8:38 am
Do you have autoshrink database property set to true?
May 16, 2014 at 9:15 am
I tried to:
notepad $profile
but got an error: "The system cannot find the path specified."
What is the whole path ?
Thanks
May 8, 2014 at 11:38 am
You have just written what you need:
masarzdenka (5/7/2014)
Sum ... surgical_case_count where wait_status is "within target"...
select Sum(surgical_case_count)
where wait_status = 'within target'
May 7, 2014 at 3:06 pm
SELECT YEAR(GETDATE())*10000 + MONTH(GETDATE())*100 + DAY(GETDATE())
May 7, 2014 at 1:34 pm
What SQL dialect is it?
In MS SQL Server T-SQL you should use parameters in form @year, @ccty, etc.
May 7, 2014 at 12:26 pm
1. Change SORT_IN_TEMPDB = OFF
2. Remove MAXDOP or set it to high and run at at weekend.
3. Consider partitioning such a huge table by date.
May 7, 2014 at 9:57 am
Why not to select * into table_having_blob_1 from table_having_blob, then drop table_having_blob and rename table_having_blob_1 to table_having_blob.
May 7, 2014 at 9:48 am
Viewing 15 posts - 241 through 255 (of 455 total)