Viewing 15 posts - 121 through 135 (of 286 total)
Create a job which runs every 5 seconds and KILL the processes of specific user(s) where program_name is 'Microsoft SQL Server Management Studio - Query' and that reached specified threshold,...
October 16, 2014 at 1:49 pm
SELECT name, log_reuse_wait_desc FROM sys.databases
?
October 16, 2014 at 12:57 pm
The original question is totally wrong. Who cares why the query plan is different on these 2 servers or if one server has more memory or if there is a...
October 6, 2014 at 4:40 pm
I'm not sure that it would help, but try to add condition "tgt_roi.fkRevPeriod = @fkRevPeriod" into ON clause, like this:
ON tgt_roi.fkOrderItem = src_oi.fkOrderItem AND tgt_roi.fkRevPeriod = src_oi.fkRevPeriod AND tgt_roi.fkOrder =...
October 6, 2014 at 1:28 pm
rxm119528 (9/26/2014)
Alexander Suprun (9/26/2014)
rxm119528 (9/26/2014)
This starts truncating after 43696 either using OBJECT_DEFINITION or sys.sql_modules.Nothing is truncated. Accept it. The stored procedure has 43696 characters.
Please add one character to it.
/*COMMENT!*/
43697
September 26, 2014 at 4:41 pm
rxm119528 (9/26/2014)
This starts truncating after 43696 either using OBJECT_DEFINITION or sys.sql_modules.
Nothing is truncated. Accept it. The stored procedure has 43696 characters.
September 26, 2014 at 4:19 pm
Eirikur Eiriksson (9/26/2014)
Quick though, use the object_definition function, that is the same as the system views use.
If it's the same, then what's the point?
September 26, 2014 at 2:01 pm
rxm119528 (9/26/2014)
These are the actual statistics of the procedureWords9899
Line2406
Characters(no Space)84040
Characters(With Space)124451
Are you sure?
SELECT LEN(definition) FROM sys.sql_modules WHERE object_id = object_id('procA')
September 26, 2014 at 1:58 pm
Use system_health event session to get deadlock graphs.
September 26, 2014 at 1:31 pm
SELECT [ObjectName], LEN([TSQLCommand]) FROM [dbo].[tblStoredProcedureAudit]
?
September 26, 2014 at 1:29 pm
ross.mason 49698 (9/26/2014)
It was the only way I knew how to put the database back so users could access it.
If users can access database then they can modify it. So,...
September 26, 2014 at 12:55 pm
It could be a limitation of SSMS.
September 26, 2014 at 12:48 pm
Don't need to run a trace, simply use the default one (if enabled). Then you can get ApplicationName and ProcessID.
Use this query:
DECLARE @filename VARCHAR(500)
SELECT @filename = SUBSTRING(path, 0,LEN(path)
...
September 24, 2014 at 1:06 pm
Ratheesh.K.Nair (9/23/2014)
Can any experts here help me find why the database files showed no free space when the transaction waas active?
You should have asked that question when your transaction was...
September 24, 2014 at 10:52 am
Generally, there is no issue of loading 1.5 million records to a temp table.
But in your case, you didn't provide enough information to argue on the question. 1.5 million records...
September 23, 2014 at 1:39 pm
Viewing 15 posts - 121 through 135 (of 286 total)