Quantcast
Channel: SQL Server Manageability forum
Viewing all 1519 articles
Browse latest View live

To reduce unallocated Space of data file

$
0
0

Hi,

Please help me on the below :

Our ETL process load data from Flat File > Staging DB > DataWarehouse.

During Full load, the staging Database size grown to 1 TB. Delta loads are happening without any issues. But, we have reached space limit provide for our project. So we verified the unallocated Space of staging DB data file which is 95%(~ 950 GB). We want to shrink the Data file/Database.

Is it good to shrink the Database ?

After shrinking the Database If we do full Load again, will there be any performance issue due to Auto growth of the Data file ? (Kindly note that we will do Full Load once in 3 months)

Please let me know is there any other way to handle the staging space requirement effectively.


SQL Free Space Performance Montior and Memory Consumption

$
0
0

I'm trying to workout some performance issues with SharePoint. I think it's our SQL server, so I went to look at memory consumption. Of 32 gb I'd reserved 28 GB to SQL and the rest goes to OS.

I know that SQL will use all the memory you give it, but this doesn't really help when you are trying to understand if you need more memory.

I'm looking at the Performance Monitor for SQLSERVER:MemoryManager:FreeMemory(kb).

From what I read this is how much memory you have to work with. For me it is hovering about 100MB.

I've upped the memory reserved to SQL but it does seem its taken up quickly after I add more.

I'm just wanting to verify that eventually if I add enough memory the Free Memory would show more available.  I'm also wondering if I'm even on the right track as to my issues.  Is having only 100mb available to SQL okay?


David Jenkins

OutOfMemoryExcpetion when scripting database

$
0
0

Not sure what category to list this under.

SQL Server 2008R2

I am trying to script a very large database (several hundred tables).

I am getting the OutOfMemoryException.  Is there a way to script the DB without using SMS?

Thanks!

How to identify the Deadlocks from the dead lock trace, thats been captured by enabling sql trace flags 1204,1222

$
0
0

Hi, 

I have enabled sql traceflags 1204,1222 to identify the deadlocks . as there are many dead locks occurring in the sql instance .

When i try to open the notepad, i can see bunch of information , and couldnt figure out the exact area of the cause behind the deadlocks took place. 

Can some one please share me your expert advice to identify the same , as well i am sharing the locks information , if you can please share me the cause in that also would be a great help . 

2017-01-26 19:15:24.780	spid30s	deadlock-list
2017-01-26 19:15:24.780	spid30s	 deadlock victim=process11e20708c8
2017-01-26 19:15:24.780	spid30s	  process-list
2017-01-26 19:15:24.780	spid30s	   process id=process11e20708c8 taskpriority=0 logused=0 waitresource=PAGE: 5:1:22024  waittime=31034 ownerId=379541919

transactionname=UPDATE lasttranstarted=2017-01-26T19:14:48.140 XDES=0xb52c5ac90 lockMode=U schedulerid=3 kpid=19924 status=suspended spid=77 sbid=0 ecid=4 priority=0

trancount=0 lastbatchstarted=2017-01-26T19:14:35.587 lastbatchcompleted=2017-01-26T19:14:35.593 lastattention=1900-01-01T00:00:00.593 clientapp=dhflp

hostname=MAGWARAZIND06 hostpid=2844 isolationlevel=read committed (2) xactid=379541919 currentdb=5 lockTimeout=4294967295 clientoption1=673185824 clientoption2=128056
2017-01-26 19:15:24.780	spid30s	    executionStack
2017-01-26 19:15:24.780	spid30s	     frame procname=DEPDB.dbo.SQL_AuditChgCtxtSession line=35 stmtstart=3172 stmtend=3350

sqlhandle=0x03000500d61dd05a117cc500ffa6000001000000000000000000000000000000000000000000000000000000
2017-01-26 19:15:24.780	spid30s	update fw_admin_audit_srvdtl set SessionID = @NewSessionID where SessionID = @OldSessionI
2017-01-26 19:15:24.780	spid30s	    inputbuf
2017-01-26 19:15:24.780	spid30s	Proc [Database Id = 5 Object Id = 1523588566]
2017-01-26 19:15:24.780	spid30s	   process id=processf0d854108 taskpriority=0 logused=4480 waitresource=PAGE: 5:1:21824  waittime=31028 ownerId=379530448

transactionname=UPDATE lasttranstarted=2017-01-26T19:14:37.643 XDES=0x103d91ca0 lockMode=U schedulerid=3 kpid=6260 status=suspended spid=65 sbid=0 ecid=4 priority=0

trancount=0 lastbatchstarted=2017-01-26T19:14:26.997 lastbatchcompleted=2017-01-26T19:14:26.997 lastattention=1900-01-01T00:00:00.997 clientapp=dhflp

hostname=MAGWARAZIND06 hostpid=2844 isolationlevel=read committed (2) xactid=379530448 currentdb=5 lockTimeout=4294967295 clientoption1=673185824 clientoption2=128056
2017-01-26 19:15:24.780	spid30s	    executionStack
2017-01-26 19:15:24.780	spid30s	     frame procname=DEPDB.dbo.SQL_AuditChgCtxtSession line=35 stmtstart=3172 stmtend=3350

sqlhandle=0x03000500d61dd05a117cc500ffa6000001000000000000000000000000000000000000000000000000000000
2017-01-26 19:15:24.780	spid30s	update fw_admin_audit_srvdtl set SessionID = @NewSessionID where SessionID = @OldSessionI
2017-01-26 19:15:24.780	spid30s	    inputbuf
2017-01-26 19:15:24.780	spid30s	Proc [Database Id = 5 Object Id = 1523588566]
2017-01-26 19:15:24.780	spid30s	   process id=processff44fb088 taskpriority=0 logused=10000 waittime=1837 schedulerid=1 kpid=19796 status=suspended spid=65 sbid=0

ecid=0 priority=0 trancount=2 lastbatchstarted=2017-01-26T19:14:26.997 lastbatchcompleted=2017-01-26T19:14:26.997 lastattention=1900-01-01T00:00:00.997 clientapp=dhflp

hostname=MAGWARAZIND06 hostpid=2844 loginname=rvwuser isolationlevel=read committed (2) xactid=379530448 currentdb=5 lockTimeout=4294967295 clientoption1=673185824

clientoption2=128056
2017-01-26 19:15:24.780	spid30s	    executionStack
2017-01-26 19:15:24.780	spid30s	     frame procname=DEPDB.dbo.SQL_AuditChgCtxtSession line=35 stmtstart=3172 stmtend=3350

sqlhandle=0x03000500d61dd05a117cc500ffa6000001000000000000000000000000000000000000000000000000000000
2017-01-26 19:15:24.780	spid30s	update fw_admin_audit_srvdtl set SessionID = @NewSessionID where SessionID = @OldSessionI
2017-01-26 19:15:24.780	spid30s	    inputbuf
2017-01-26 19:15:24.780	spid30s	Proc [Database Id = 5 Object Id = 1523588566]
2017-01-26 19:15:24.780	spid30s	  resource-list
2017-01-26 19:15:24.780	spid30s	   pagelock fileid=1 pageid=22024 dbid=5 subresource=FULL objectname=DEPDB.dbo.fw_admin_audit_srvdtl id=lock1e0cb3500 mode=U

associatedObjectId=72057594371899392
2017-01-26 19:15:24.780	spid30s	    owner-list
2017-01-26 19:15:24.780	spid30s	     owner id=processff44fb088 mode=U
2017-01-26 19:15:24.780	spid30s	    waiter-list
2017-01-26 19:15:24.780	spid30s	     waiter id=process11e20708c8 mode=U requestType=wait
2017-01-26 19:15:24.780	spid30s	   pagelock fileid=1 pageid=21824 dbid=5 subresource=FULL objectname=DEPDB.dbo.fw_admin_audit_srvdtl id=lock1c449e700 mode=U

associatedObjectId=72057594371899392
2017-01-26 19:15:24.780	spid30s	    owner-list
2017-01-26 19:15:24.780	spid30s	     owner id=process11e20708c8 mode=U
2017-01-26 19:15:24.780	spid30s	    waiter-list
2017-01-26 19:15:24.780	spid30s	     waiter id=processf0d854108 mode=U requestType=wait
2017-01-26 19:15:24.780	spid30s	   exchangeEvent id=Pipefbb444700 WaitType=e_waitPipeGetRow nodeId=1
2017-01-26 19:15:24.780	spid30s	    owner-list
2017-01-26 19:15:24.780	spid30s	     owner id=processf0d854108
2017-01-26 19:15:24.780	spid30s	    waiter-list
2017-01-26 19:15:24.780	spid30s	     waiter id=processff44fb088
2017-01-27 18:01:55.680	spid18s	deadlock-list
2017-01-27 18:01:55.690	spid18s	 deadlock victim=process10a0893468
2017-01-27 18:01:55.690	spid18s	  process-list
2017-01-27 18:01:55.690	spid18s	   process id=process10a0893468 taskpriority=0 logused=0 waitresource=PAGE: 5:1:22096  waittime=30109 ownerId=396461335

transactionname=UPDATE lasttranstarted=2017-01-27T18:00:58.723 XDES=0x1f678bbf0 lockMode=U schedulerid=1 kpid=19272 status=suspended spid=58 sbid=0 ecid=1 priority=0

trancount=0 lastbatchstarted=2017-01-27T18:00:41.470 lastbatchcompleted=2017-01-27T18:00:41.480 lastattention=1900-01-01T00:00:00.480 clientapp=dhflp

hostname=MAGWARAZIND06 hostpid=2844 isolationlevel=read committed (2) xactid=396461335 currentdb=5 lockTimeout=4294967295 clientoption1=673185824 clientoption2=128056
2017-01-27 18:01:55.690	spid18s	    executionStack
2017-01-27 18:01:55.690	spid18s	     frame procname=DEPDB.dbo.SQL_AuditChgCtxtSession line=35 stmtstart=3172 stmtend=3350

sqlhandle=0x03000500d61dd05a117cc500ffa6000001000000000000000000000000000000000000000000000000000000
2017-01-27 18:01:55.690	spid18s	update fw_admin_audit_srvdtl set SessionID = @NewSessionID where SessionID = @OldSessionI
2017-01-27 18:01:55.690	spid18s	    inputbuf
2017-01-27 18:01:55.690	spid18s	Proc [Database Id = 5 Object Id = 1523588566]
2017-01-27 18:01:55.690	spid18s	   process id=process10dd004108 taskpriority=0 logused=1568 waitresource=PAGE: 5:1:22024  waittime=30152 ownerId=396462937

transactionname=UPDATE lasttranstarted=2017-01-27T18:01:09.277 XDES=0x1f37a78e0 lockMode=U schedulerid=4 kpid=10996 status=suspended spid=69 sbid=0 ecid=2 priority=0

trancount=0 lastbatchstarted=2017-01-27T18:00:58.470 lastbatchcompleted=2017-01-27T18:00:58.477 lastattention=1900-01-01T00:00:00.477 clientapp=dhflp

hostname=MAGWARAZIND06 hostpid=2844 isolationlevel=read committed (2) xactid=396462937 currentdb=5 lockTimeout=4294967295 clientoption1=673185824 clientoption2=128056
2017-01-27 18:01:55.690	spid18s	    executionStack
2017-01-27 18:01:55.690	spid18s	     frame procname=DEPDB.dbo.SQL_AuditChgCtxtSession line=35 stmtstart=3172 stmtend=3350

sqlhandle=0x03000500d61dd05a117cc500ffa6000001000000000000000000000000000000000000000000000000000000
2017-01-27 18:01:55.690	spid18s	update fw_admin_audit_srvdtl set SessionID = @NewSessionID where SessionID = @OldSessionI
2017-01-27 18:01:55.690	spid18s	    inputbuf
2017-01-27 18:01:55.690	spid18s	Proc [Database Id = 5 Object Id = 1523588566]
2017-01-27 18:01:55.690	spid18s	   process id=processb7ecec4e8 taskpriority=0 logused=1568 waitresource=PAGE: 5:1:1043  waittime=30156 ownerId=396462937

transactionname=UPDATE lasttranstarted=2017-01-27T18:01:09.277 XDES=0x1f3a2f8e0 lockMode=U schedulerid=2 kpid=19136 status=suspended spid=69 sbid=0 ecid=3 priority=0

trancount=0 lastbatchstarted=2017-01-27T18:00:58.470 lastbatchcompleted=2017-01-27T18:00:58.477 lastattention=1900-01-01T00:00:00.477 clientapp=dhflp

hostname=MAGWARAZIND06 hostpid=2844 isolationlevel=read committed (2) xactid=396462937 currentdb=5 lockTimeout=4294967295 clientoption1=673185824 clientoption2=128056
2017-01-27 18:01:55.690	spid18s	    executionStack
2017-01-27 18:01:55.690	spid18s	     frame procname=DEPDB.dbo.SQL_AuditChgCtxtSession line=35 stmtstart=3172 stmtend=3350

sqlhandle=0x03000500d61dd05a117cc500ffa6000001000000000000000000000000000000000000000000000000000000
2017-01-27 18:01:55.690	spid18s	update fw_admin_audit_srvdtl set SessionID = @NewSessionID where SessionID = @OldSessionI
2017-01-27 18:01:55.690	spid18s	    inputbuf
2017-01-27 18:01:55.690	spid18s	Proc [Database Id = 5 Object Id = 1523588566]
2017-01-27 18:01:55.690	spid18s	   process id=processfa0837848 taskpriority=0 logused=10000 waittime=957 schedulerid=2 kpid=21936 status=suspended spid=69 sbid=0

ecid=0 priority=0 trancount=2 lastbatchstarted=2017-01-27T18:00:58.470 lastbatchcompleted=2017-01-27T18:00:58.477 lastattention=1900-01-01T00:00:00.477 clientapp=dhflp

hostname=MAGWARAZIND06 hostpid=2844 loginname=rvwuser isolationlevel=read committed (2) xactid=396462937 currentdb=5 lockTimeout=4294967295 clientoption1=673185824

clientoption2=128056
2017-01-27 18:01:55.690	spid18s	    executionStack
2017-01-27 18:01:55.690	spid18s	     frame procname=DEPDB.dbo.SQL_AuditChgCtxtSession line=35 stmtstart=3172 stmtend=3350

sqlhandle=0x03000500d61dd05a117cc500ffa6000001000000000000000000000000000000000000000000000000000000
2017-01-27 18:01:55.690	spid18s	update fw_admin_audit_srvdtl set SessionID = @NewSessionID where SessionID = @OldSessionI
2017-01-27 18:01:55.690	spid18s	    inputbuf
2017-01-27 18:01:55.690	spid18s	Proc [Database Id = 5 Object Id = 1523588566]
2017-01-27 18:01:55.690	spid18s	  resource-list
2017-01-27 18:01:55.690	spid18s	   pagelock fileid=1 pageid=22096 dbid=5 subresource=FULL objectname=DEPDB.dbo.fw_admin_audit_srvdtl id=lock1d0998980 mode=U

associatedObjectId=72057594371899392
2017-01-27 18:01:55.690	spid18s	    owner-list
2017-01-27 18:01:55.690	spid18s	     owner id=processfa0837848 mode=U
2017-01-27 18:01:55.690	spid18s	    waiter-list
2017-01-27 18:01:55.690	spid18s	     waiter id=process10a0893468 mode=U requestType=wait
2017-01-27 18:01:55.690	spid18s	   pagelock fileid=1 pageid=22024 dbid=5 subresource=FULL objectname=DEPDB.dbo.fw_admin_audit_srvdtl id=lock196426100 mode=U

associatedObjectId=72057594371899392
2017-01-27 18:01:55.690	spid18s	    owner-list
2017-01-27 18:01:55.690	spid18s	     owner id=process10a0893468 mode=U
2017-01-27 18:01:55.690	spid18s	    waiter-list
2017-01-27 18:01:55.690	spid18s	     waiter id=process10dd004108 mode=U requestType=wait
2017-01-27 18:01:55.690	spid18s	   pagelock fileid=1 pageid=1043 dbid=5 subresource=FULL objectname=DEPDB.dbo.fw_admin_audit_srvdtl id=lock1227c1b300 mode=U

associatedObjectId=72057594371899392
2017-01-27 18:01:55.690	spid18s	    owner-list
2017-01-27 18:01:55.690	spid18s	     owner id=process10a0893468 mode=U
2017-01-27 18:01:55.690	spid18s	    waiter-list
2017-01-27 18:01:55.690	spid18s	     waiter id=processb7ecec4e8 mode=U requestType=wait
2017-01-27 18:01:55.690	spid18s	   exchangeEvent id=Pipeb2509e700 WaitType=e_waitPipeGetRow nodeId=1
2017-01-27 18:01:55.690	spid18s	    owner-list
2017-01-27 18:01:55.690	spid18s	     owner id=process10dd004108
2017-01-27 18:01:55.690	spid18s	     owner id=processb7ecec4e8
2017-01-27 18:01:55.690	spid18s	    waiter-list
2017-01-27 18:01:55.690	spid18s	     waiter id=processfa0837848
2017-01-29 00:00:00.620	spid18s	This instance of SQL Server has been using a process ID of 2284 since 1/22/2017 1:24:36 AM (local) 1/21/2017 7:54:36 PM (UTC). This is

an informational message only; no user action is required.
2017-01-31 00:00:02.370	spid18s	This instance of SQL Server has been using a process ID of 2284 since 1/22/2017 1:24:36 AM (local) 1/21/2017 7:54:36 PM (UTC). This is

an informational message only; no user action is required.
2017-01-30 09:13:00.190	spid26s	deadlock-list
2017-01-30 09:13:00.190	spid26s	 deadlock victim=process16e302d088
2017-01-30 09:13:00.190	spid26s	  process-list
2017-01-30 09:13:00.190	spid26s	   process id=process16e302d088 taskpriority=0 logused=472 waitresource=RID: 9:1:171720:0 waittime=2408 ownerId=440181478

transactionname=user_transaction lasttranstarted=2017-01-30T09:12:56.733 XDES=0x12a407c3b0 lockMode=U schedulerid=3 kpid=8088 status=suspended spid=59 sbid=0 ecid=0

priority=0 trancount=2 lastbatchstarted=2017-01-30T09:12:57.280 lastbatchcompleted=2017-01-30T09:12:56.733 lastattention=1900-01-01T00:00:00.733 clientapp=.Net

SqlClient Data Provider hostname=MAGWARAZIND06 hostpid=22308 loginname=rvwuser isolationlevel=read committed (2) xactid=440181478 currentdb=9 lockTimeout=4294967295

clientoption1=538968096 clientoption2=128056
2017-01-30 09:13:00.190	spid26s	    executionStack
2017-01-30 09:13:00.190	spid26s	     frame procname=HRMS40.dbo.lv_vwlsy_fetchgriid_sp line=277 stmtstart=25132 stmtend=26664

sqlhandle=0x03000900651675504d200d015da6000001000000000000000000000000000000000000000000000000000000
2017-01-30 09:13:00.190	spid26s	update tmp
2017-01-30 09:13:00.190	spid26s	  set tmp.leavetypeshdesc = shtdesc.leave_type_shrt_desc
2017-01-30 09:13:00.190	spid26s	  from ladm_leave_summary_tmp tmp,ldef_leave_type_desc shtdesc,hrcmn_ldef_leave_type_vw ldef
2017-01-30 09:13:00.190	spid26s	  where guid = @hrguid
2017-01-30 09:13:00.190	spid26s	  and   ldef.master_ou_code      = @leavedefou
2017-01-30 09:13:00.190	spid26s	  and   shtdesc.master_ou_code  = ldef.master_ou_code
2017-01-30 09:13:00.190	spid26s	  and   ldef.leave_type_code      = tmp.leave_type_code
2017-01-30 09:13:00.190	spid26s	  and   shtdesc.leave_type_code  = ldef.leave_type_code
2017-01-30 09:13:00.190	spid26s	  and   ldef.effective_from_date  = ldef.effective_from_date
2017-01-30 09:13:00.190	spid26s	  and   convert(nvarchar(11),ldef.effective_from_date,121) <= isnull(tmp.periodto,dbo.RES_Getdate(@ctxt_ouinstance))--Code Changed by

Karthick.P.S. for defect id: HRMS20_HRMSLVSER_DN_00079 on 29/Jul/2009
2017-01-30 09:13:00.190	spid26s	  and   convert(nvarchar(11),isnull(ldef.effective_to_date,'9999-12-31'),121) >= tmp.periodfro
2017-01-30 09:13:00.190	spid26s	     frame procname=HRMS40.dbo.LVM_LeaveWidget_fet_sp line=175 stmtstart=13774 stmtend=15854

sqlhandle=0x030009008fcda257f6f10f015da6000001000000000000000000000000000000000000000000000000000000
2017-01-30 09:13:00.190	spid26s	insert into @tmp_table
2017-01-30 09:13:00.190	spid26s	  (
2017-01-30 09:13:00.190	spid26s	  hrladjustcarryunitrs1,
2017-01-30 09:13:00.190	spid26s	  hrladjustencashunits1,
2017-01-30 09:13:00.190	spid26s	  hrladjustentunits1 ,
2017-01-30 09:13:00.190	spid26s	  hrlavailedunits1 ,
2017-01-30 09:13:00.190	spid26s	  hrlcarryoverunits1 ,
2017-01-30 09:13:00.190	spid26s	  hrleavetypeshdesc1 ,
2017-01-30 09:13:00.190	spid26s	  hrleaveunitsdesc1 ,
2017-01-30 09:13:00.190	spid26s	  hrlencashunits1  ,
2017-01-30 09:13:00.190	spid26s	  hrlentitledunits1 ,
2017-01-30 09:13:00.190	spid26s	  hrlleavebalanceunits1,
2017-01-30 09:13:00.190	spid26s	  hrperiodfrom1  ,
2017-01-30 09:13:00.190	spid26s	  hrperiodto1   ,
2017-01-30 09:13:00.190	spid26s	  hrladjustavlunits1 ,
2017-01-30 09:13:00.190	spid26s	  hrlforftdunits1  ,
2017-01-30 09:13:00.190	spid26s	  hrappliedunits  ,
2017-01-30 09:13:00.190	spid26s	  hrleavetypecode  ,
2017-01-30 09:13:00.190	spid26s	  hrapprovedunits  ,
2017-01-30 09:13:00.190	spid26s	  carryunits_template ,   /*Code added by Srinath to fetch adjustments in Leave summary */
2017-01-30 09:13:00.190	spid26s	  availunits_template ,   /*Code added by Srinath to fetch adjustments in Leave summary */
2017-01-30 09:13:00.190	spid26s	  encashunits_template,   /*Code added by Srinath to fetch adjustments in Leave summary */
2017-01-30 09:13:00.190	spid26s	  entitleunits_template,   /*Code added by Srinath to fetch adjustments in Leave summary */
2017-01-30 09:13:00.190	spid26s	  appliedunits_template   /*Code added by Srinath to fetch adjustments in Leave summary */
2017-01-30 09:13:00.190	spid26s	  )
2017-01-30 09:13:00.190	spid26s	  exec lv_vwlsy_fetchgriid_sp @ctxt_language,@empngou,'PORTAL','test',@ctxt_user,null,@login_user_code,null,@hdnou,null,
2017-01-30 09:13:00.190	spid26s	     frame procname=HRMS40.dbo.EIP_anch_SpfetHdrFet line=1652 stmtstart=121746 stmtend=122384

sqlhandle=0x030009007990aa2689af0f015da6000001000000000000000000000000000000000000000000000000000000
2017-01-30 09:13:00.190	spid26s	exec LVM_LeaveWidget_fet_sp @ctxt_ouinstance, @ctxt_user,@ctxt_language,@ctxt_service,@ctxt_role,
2017-01-30 09:13:00.190	spid26s	    @available_days out, @available_hrs out,  @Emp_dtl out, @empname out, @empphoto out,
2017-01-30 09:13:00.190	spid26s	    @emp_desig out, @emp_dept out, @email out, @chart  out,@m_errorid out
2017-01-30 09:13:00.190	spid26s	    inputbuf
2017-01-30 09:13:00.190	spid26s	Proc [Database Id = 9 Object Id = 648712313]
2017-01-30 09:13:00.190	spid26s	   process id=processb7ecec4e8 taskpriority=0 logused=476 waitresource=RID: 9:1:171723:0 waittime=2388 ownerId=440181477

transactionname=user_transaction lasttranstarted=2017-01-30T09:12:56.733 XDES=0xa47c543b0 lockMode=U schedulerid=2 kpid=20016 status=suspended spid=61 sbid=0 ecid=0

priority=0 trancount=2 lastbatchstarted=2017-01-30T09:12:57.277 lastbatchcompleted=2017-01-30T09:12:56.733 lastattention=1900-01-01T00:00:00.733 clientapp=.Net

SqlClient Data Provider hostname=MAGWARAZIND06 hostpid=22308 loginname=rvwuser isolationlevel=read committed (2) xactid=440181477 currentdb=9 lockTimeout=4294967295

clientoption1=538968096 clientoption2=128056
2017-01-30 09:13:00.190	spid26s	    executionStack
2017-01-30 09:13:00.190	spid26s	     frame procname=HRMS40.dbo.lv_vwlsy_fetchgriid_sp line=277 stmtstart=25132 stmtend=26664

sqlhandle=0x03000900651675504d200d015da6000001000000000000000000000000000000000000000000000000000000
2017-01-30 09:13:00.190	spid26s	update tmp
2017-01-30 09:13:00.190	spid26s	  set tmp.leavetypeshdesc = shtdesc.leave_type_shrt_desc
2017-01-30 09:13:00.190	spid26s	  from ladm_leave_summary_tmp tmp,ldef_leave_type_desc shtdesc,hrcmn_ldef_leave_type_vw ldef
2017-01-30 09:13:00.190	spid26s	  where guid = @hrguid
2017-01-30 09:13:00.190	spid26s	  and   ldef.master_ou_code      = @leavedefou
2017-01-30 09:13:00.190	spid26s	  and   shtdesc.master_ou_code  = ldef.master_ou_code
2017-01-30 09:13:00.190	spid26s	  and   ldef.leave_type_code      = tmp.leave_type_code
2017-01-30 09:13:00.190	spid26s	  and   shtdesc.leave_type_code  = ldef.leave_type_code
2017-01-30 09:13:00.190	spid26s	  and   ldef.effective_from_date  = ldef.effective_from_date
2017-01-30 09:13:00.200	spid26s	  and   convert(nvarchar(11),ldef.effective_from_date,121) <= isnull(tmp.periodto,dbo.RES_Getdate(@ctxt_ouinstance))--Code Changed by

Karthick.P.S. for defect id: HRMS20_HRMSLVSER_DN_00079 on 29/Jul/2009
2017-01-30 09:13:00.200	spid26s	  and   convert(nvarchar(11),isnull(ldef.effective_to_date,'9999-12-31'),121) >= tmp.periodfro
2017-01-30 09:13:00.200	spid26s	     frame procname=HRMS40.dbo.LVM_LeaveWidget_fet_sp line=175 stmtstart=13774 stmtend=15854

sqlhandle=0x030009008fcda257f6f10f015da6000001000000000000000000000000000000000000000000000000000000
2017-01-30 09:13:00.200	spid26s	insert into @tmp_table
2017-01-30 09:13:00.200	spid26s	  (
2017-01-30 09:13:00.200	spid26s	  hrladjustcarryunitrs1,
2017-01-30 09:13:00.200	spid26s	  hrladjustencashunits1,
2017-01-30 09:13:00.200	spid26s	  hrladjustentunits1 ,
2017-01-30 09:13:00.200	spid26s	  hrlavailedunits1 ,
2017-01-30 09:13:00.200	spid26s	  hrlcarryoverunits1 ,
2017-01-30 09:13:00.200	spid26s	  hrleavetypeshdesc1 ,
2017-01-30 09:13:00.200	spid26s	  hrleaveunitsdesc1 ,
2017-01-30 09:13:00.200	spid26s	  hrlencashunits1  ,
2017-01-30 09:13:00.200	spid26s	  hrlentitledunits1 ,
2017-01-30 09:13:00.200	spid26s	  hrlleavebalanceunits1,
2017-01-30 09:13:00.200	spid26s	  hrperiodfrom1  ,
2017-01-30 09:13:00.200	spid26s	  hrperiodto1   ,
2017-01-30 09:13:00.200	spid26s	  hrladjustavlunits1 ,
2017-01-30 09:13:00.200	spid26s	  hrlforftdunits1  ,
2017-01-30 09:13:00.200	spid26s	  hrappliedunits  ,
2017-01-30 09:13:00.200	spid26s	  hrleavetypecode  ,
2017-01-30 09:13:00.200	spid26s	  hrapprovedunits  ,
2017-01-30 09:13:00.200	spid26s	  carryunits_template ,   /*Code added by Srinath to fetch adjustments in Leave summary */
2017-01-30 09:13:00.200	spid26s	  availunits_template ,   /*Code added by Srinath to fetch adjustments in Leave summary */
2017-01-30 09:13:00.200	spid26s	  encashunits_template,   /*Code added by Srinath to fetch adjustments in Leave summary */
2017-01-30 09:13:00.200	spid26s	  entitleunits_template,   /*Code added by Srinath to fetch adjustments in Leave summary */
2017-01-30 09:13:00.200	spid26s	  appliedunits_template   /*Code added by Srinath to fetch adjustments in Leave summary */
2017-01-30 09:13:00.200	spid26s	  )
2017-01-30 09:13:00.200	spid26s	  exec lv_vwlsy_fetchgriid_sp @ctxt_language,@empngou,'PORTAL','test',@ctxt_user,null,@login_user_code,null,@hdnou,null,
2017-01-30 09:13:00.200	spid26s	     frame procname=HRMS40.dbo.EIP_anch_SpfetHdrFet line=1652 stmtstart=121746 stmtend=122384

sqlhandle=0x030009007990aa2689af0f015da6000001000000000000000000000000000000000000000000000000000000
2017-01-30 09:13:00.200	spid26s	exec LVM_LeaveWidget_fet_sp @ctxt_ouinstance, @ctxt_user,@ctxt_language,@ctxt_service,@ctxt_role,
2017-01-30 09:13:00.200	spid26s	    @available_days out, @available_hrs out,  @Emp_dtl out, @empname out, @empphoto out,
2017-01-30 09:13:00.200	spid26s	    @emp_desig out, @emp_dept out, @email out, @chart  out,@m_errorid out
2017-01-30 09:13:00.200	spid26s	    inputbuf
2017-01-30 09:13:00.200	spid26s	Proc [Database Id = 9 Object Id = 648712313]
2017-01-30 09:13:00.200	spid26s	  resource-list
2017-01-30 09:13:00.200	spid26s	   ridlock fileid=1 pageid=171720 dbid=9 objectname=HRMS40.dbo.ladm_leave_summary_tmp id=lockdbb18600 mode=X

associatedObjectId=72057594270449664
2017-01-30 09:13:00.200	spid26s	    owner-list
2017-01-30 09:13:00.200	spid26s	     owner id=processb7ecec4e8 mode=X
2017-01-30 09:13:00.200	spid26s	    waiter-list
2017-01-30 09:13:00.200	spid26s	     waiter id=process16e302d088 mode=U requestType=wait
2017-01-30 09:13:00.200	spid26s	   ridlock fileid=1 pageid=171723 dbid=9 objectname=HRMS40.dbo.ladm_leave_summary_tmp id=lockebf414d00 mode=X

associatedObjectId=72057594270449664
2017-01-30 09:13:00.200	spid26s	    owner-list
2017-01-30 09:13:00.200	spid26s	     owner id=process16e302d088 mode=X
2017-01-30 09:13:00.200	spid26s	    waiter-list
2017-01-30 09:13:00.200	spid26s	     waiter id=processb7ecec4e8 mode=U requestType=wait
2017-01-30 11:13:24.200	spid23s	deadlock-list
2017-01-30 11:13:24.200	spid23s	 deadlock victim=process8e485a108
2017-01-30 11:13:24.200	spid23s	  process-list
2017-01-30 11:13:24.200	spid23s	   process id=process8e485a108 taskpriority=0 logused=472 waitresource=RID: 9:1:182144:0 waittime=4145 ownerId=441225200

transactionname=user_transaction lasttranstarted=2017-01-30T11:13:20.037 XDES=0x1f49e7880 lockMode=U schedulerid=4 kpid=18644 status=suspended spid=62 sbid=0 ecid=0

priority=0 trancount=2 lastbatchstarted=2017-01-30T11:13:20.037 lastbatchcompleted=2017-01-30T11:13:20.037 lastattention=1900-01-01T00:00:00.037 clientapp=.Net

SqlClient Data Provider hostname=MAGWARAZIND06 hostpid=22308 loginname=rvwuser isolationlevel=read committed (2) xactid=441225200 currentdb=9 lockTimeout=4294967295

clientoption1=538968096 clientoption2=128056
2017-01-30 11:13:24.200	spid23s	    executionStack
2017-01-30 11:13:24.200	spid23s	     frame procname=HRMS40.dbo.lv_vwlsy_fetchgriid_sp line=277 stmtstart=25132 stmtend=26664

sqlhandle=0x03000900651675504d200d015da6000001000000000000000000000000000000000000000000000000000000
2017-01-30 11:13:24.200	spid23s	update tmp
2017-01-30 11:13:24.200	spid23s	  set tmp.leavetypeshdesc = shtdesc.leave_type_shrt_desc
2017-01-30 11:13:24.200	spid23s	  from ladm_leave_summary_tmp tmp,ldef_leave_type_desc shtdesc,hrcmn_ldef_leave_type_vw ldef
2017-01-30 11:13:24.200	spid23s	  where guid = @hrguid
2017-01-30 11:13:24.200	spid23s	  and   ldef.master_ou_code      = @leavedefou
2017-01-30 11:13:24.200	spid23s	  and   shtdesc.master_ou_code  = ldef.master_ou_code
2017-01-30 11:13:24.200	spid23s	  and   ldef.leave_type_code      = tmp.leave_type_code
2017-01-30 11:13:24.200	spid23s	  and   shtdesc.leave_type_code  = ldef.leave_type_code
2017-01-30 11:13:24.200	spid23s	  and   ldef.effective_from_date  = ldef.effective_from_date
2017-01-30 11:13:24.200	spid23s	  and   convert(nvarchar(11),ldef.effective_from_date,121) <= isnull(tmp.periodto,dbo.RES_Getdate(@ctxt_ouinstance))--Code Changed by

Karthick.P.S. for defect id: HRMS20_HRMSLVSER_DN_00079 on 29/Jul/2009
2017-01-30 11:13:24.200	spid23s	  and   convert(nvarchar(11),isnull(ldef.effective_to_date,'9999-12-31'),121) >= tmp.periodfro
2017-01-30 11:13:24.200	spid23s	     frame procname=HRMS40.dbo.LVM_LeaveWidget_fet_sp line=175 stmtstart=13774 stmtend=15854

sqlhandle=0x030009008fcda257f6f10f015da6000001000000000000000000000000000000000000000000000000000000
2017-01-30 11:13:24.200	spid23s	insert into @tmp_table
2017-01-30 11:13:24.200	spid23s	  (
2017-01-30 11:13:24.200	spid23s	  hrladjustcarryunitrs1,
2017-01-30 11:13:24.200	spid23s	  hrladjustencashunits1,
2017-01-30 11:13:24.200	spid23s	  hrladjustentunits1 ,
2017-01-30 11:13:24.200	spid23s	  hrlavailedunits1 ,
2017-01-30 11:13:24.200	spid23s	  hrlcarryoverunits1 ,
2017-01-30 11:13:24.200	spid23s	  hrleavetypeshdesc1 ,
2017-01-30 11:13:24.210	spid23s	  hrleaveunitsdesc1 ,
2017-01-30 11:13:24.210	spid23s	  hrlencashunits1  ,
2017-01-30 11:13:24.210	spid23s	  hrlentitledunits1 ,
2017-01-30 11:13:24.210	spid23s	  hrlleavebalanceunits1,
2017-01-30 11:13:24.210	spid23s	  hrperiodfrom1  ,
2017-01-30 11:13:24.210	spid23s	  hrperiodto1   ,
2017-01-30 11:13:24.210	spid23s	  hrladjustavlunits1 ,
2017-01-30 11:13:24.210	spid23s	  hrlforftdunits1  ,
2017-01-30 11:13:24.210	spid23s	  hrappliedunits  ,
2017-01-30 11:13:24.210	spid23s	  hrleavetypecode  ,
2017-01-30 11:13:24.210	spid23s	  hrapprovedunits  ,
2017-01-30 11:13:24.210	spid23s	  carryunits_template ,   /*Code added by Srinath to fetch adjustments in Leave summary */
2017-01-30 11:13:24.210	spid23s	  availunits_template ,   /*Code added by Srinath to fetch adjustments in Leave summary */
2017-01-30 11:13:24.210	spid23s	  encashunits_template,   /*Code added by Srinath to fetch adjustments in Leave summary */
2017-01-30 11:13:24.210	spid23s	  entitleunits_template,   /*Code added by Srinath to fetch adjustments in Leave summary */
2017-01-30 11:13:24.210	spid23s	  appliedunits_template   /*Code added by Srinath to fetch adjustments in Leave summary */
2017-01-30 11:13:24.210	spid23s	  )
2017-01-30 11:13:24.210	spid23s	  exec lv_vwlsy_fetchgriid_sp @ctxt_language,@empngou,'PORTAL','test',@ctxt_user,null,@login_user_code,null,@hdnou,null,
2017-01-30 11:13:24.210	spid23s	     frame procname=HRMS40.dbo.EIP_anch_SpfetHdrFet line=1652 stmtstart=121746 stmtend=122384

sqlhandle=0x030009007990aa2689af0f015da6000001000000000000000000000000000000000000000000000000000000
2017-01-30 11:13:24.210	spid23s	exec LVM_LeaveWidget_fet_sp @ctxt_ouinstance, @ctxt_user,@ctxt_language,@ctxt_service,@ctxt_role,
2017-01-30 11:13:24.210	spid23s	    @available_days out, @available_hrs out,  @Emp_dtl out, @empname out, @empphoto out,
2017-01-30 11:13:24.210	spid23s	    @emp_desig out, @emp_dept out, @email out, @chart  out,@m_errorid out
2017-01-30 11:13:24.210	spid23s	    inputbuf
2017-01-30 11:13:24.210	spid23s	Proc [Database Id = 9 Object Id = 648712313]
2017-01-30 11:13:24.210	spid23s	   process id=processff44fb088 taskpriority=0 logused=25796 waitresource=RID: 9:1:201736:0 waittime=4109 ownerId=441225017

transactionname=user_transaction lasttranstarted=2017-01-30T11:13:19.963 XDES=0x5ca02ed90 lockMode=U schedulerid=1 kpid=10424 status=suspended spid=64 sbid=0 ecid=0

priority=0 trancount=2 lastbatchstarted=2017-01-30T11:13:19.967 lastbatchcompleted=2017-01-30T11:13:19.963 lastattention=1900-01-01T00:00:00.963 clientapp=.Net

SqlClient Data Provider hostname=MAGWARAZIND06 hostpid=22308 loginname=rvwuser isolationlevel=read committed (2) xactid=441225017 currentdb=9 lockTimeout=4294967295

clientoption1=538968096 clientoption2=128056
2017-01-30 11:13:24.210	spid23s	    executionStack
2017-01-30 11:13:24.210	spid23s	     frame procname=HRMS40.dbo.lv_vwlsy_fetchgriid_sp line=730 stmtstart=73286 stmtend=73516

sqlhandle=0x03000900651675504d200d015da6000001000000000000000000000000000000000000000000000000000000
2017-01-30 11:13:24.210	spid23s	delete from ladm_leave_summary_tmp where guid = @hrguid
2017-01-30 11:13:24.210	spid23s	  and entitle_flag  in ('N','CN')
2017-01-30 11:13:24.210	spid23s	  and availedunits  =
2017-01-30 11:13:24.210	spid23s	     frame procname=HRMS40.dbo.LVM_LeaveWidget_fet_sp line=175 stmtstart=13774 stmtend=15854

sqlhandle=0x030009008fcda257f6f10f015da6000001000000000000000000000000000000000000000000000000000000
2017-01-30 11:13:24.210	spid23s	insert into @tmp_table
2017-01-30 11:13:24.210	spid23s	  (
2017-01-30 11:13:24.210	spid23s	  hrladjustcarryunitrs1,
2017-01-30 11:13:24.210	spid23s	  hrladjustencashunits1,
2017-01-30 11:13:24.210	spid23s	  hrladjustentunits1 ,
2017-01-30 11:13:24.210	spid23s	  hrlavailedunits1 ,
2017-01-30 11:13:24.210	spid23s	  hrlcarryoverunits1 ,
2017-01-30 11:13:24.210	spid23s	  hrleavetypeshdesc1 ,
2017-01-30 11:13:24.210	spid23s	  hrleaveunitsdesc1 ,
2017-01-30 11:13:24.210	spid23s	  hrlencashunits1  ,
2017-01-30 11:13:24.210	spid23s	  hrlentitledunits1 ,
2017-01-30 11:13:24.210	spid23s	  hrlleavebalanceunits1,
2017-01-30 11:13:24.210	spid23s	  hrperiodfrom1  ,
2017-01-30 11:13:24.210	spid23s	  hrperiodto1   ,
2017-01-30 11:13:24.210	spid23s	  hrladjustavlunits1 ,
2017-01-30 11:13:24.210	spid23s	  hrlforftdunits1  ,
2017-01-30 11:13:24.210	spid23s	  hrappliedunits  ,
2017-01-30 11:13:24.210	spid23s	  hrleavetypecode  ,
2017-01-30 11:13:24.210	spid23s	  hrapprovedunits  ,
2017-01-30 11:13:24.210	spid23s	  carryunits_template ,   /*Code added by Srinath to fetch adjustments in Leave summary */
2017-01-30 11:13:24.210	spid23s	  availunits_template ,   /*Code added by Srinath to fetch adjustments in Leave summary */
2017-01-30 11:13:24.210	spid23s	  encashunits_template,   /*Code added by Srinath to fetch adjustments in Leave summary */
2017-01-30 11:13:24.210	spid23s	  entitleunits_template,   /*Code added by Srinath to fetch adjustments in Leave summary */
2017-01-30 11:13:24.210	spid23s	  appliedunits_template   /*Code added by Srinath to fetch adjustments in Leave summary */
2017-01-30 11:13:24.210	spid23s	  )
2017-01-30 11:13:24.210	spid23s	  exec lv_vwlsy_fetchgriid_sp @ctxt_language,@empngou,'PORTAL','test',@ctxt_user,null,@login_user_code,null,@hdnou,null,
2017-01-30 11:13:24.210	spid23s	     frame procname=HRMS40.dbo.EIP_anch_SpfetHdrFet line=1652 stmtstart=121746 stmtend=122384

sqlhandle=0x030009007990aa2689af0f015da6000001000000000000000000000000000000000000000000000000000000
2017-01-30 11:13:24.210	spid23s	exec LVM_LeaveWidget_fet_sp @ctxt_ouinstance, @ctxt_user,@ctxt_language,@ctxt_service,@ctxt_role,
2017-01-30 11:13:24.210	spid23s	    @available_days out, @available_hrs out,  @Emp_dtl out, @empname out, @empphoto out,
2017-01-30 11:13:24.210	spid23s	    @emp_desig out, @emp_dept out, @email out, @chart  out,@m_errorid out
2017-01-30 11:13:24.210	spid23s	     frame procname=HRMS40.dbo.EIP_anch_Sphdn_prHdrRef line=1411 stmtstart=97386 stmtend=130426

sqlhandle=0x03000900ad556e672f6d0e015da6000001000000000000000000000000000000000000000000000000000000
2017-01-30 11:13:24.210	spid23s	EXEC EIP_anch_SpfetHdrFet
2017-01-30 11:13:24.210	spid23s	     @ctxt_ouinstance         ,
2017-01-30 11:13:24.210	spid23s	     @ctxt_user               ,
2017-01-30 11:13:24.210	spid23s	     @ctxt_language           ,
2017-01-30 11:13:24.210	spid23s	     @ctxt_service            ,
2017-01-30 11:13:24.210	spid23s	     @ctxt_role               ,
2017-01-30 11:13:24.210	spid23s	     @amnt_ed                 ,
2017-01-30 11:13:24.210	spid23s	     @attache                 ,
2017-01-30 11:13:24.210	spid23s	     @available               ,
2017-01-30 11:13:24.210	spid23s	     @bal_dis                 ,
2017-01-30 11:13:24.210	spid23s	     @benefits_hdn1           ,
2017-01-30 11:13:24.210	spid23s	     @benefits_hdn10          ,
2017-01-30 11:13:24.210	spid23s	     @benefits_hdn2           ,
2017-01-30 11:13:24.210	spid23s	     @benefits_hdn3           ,
2017-01-30 11:13:24.210	spid23s	     @benefits_hdn4           ,
2017-01-30 11:13:24.210	spid23s	     @benefits_hdn5           ,
2017-01-30 11:13:24.210	spid23s	     @benefits_hdn6           ,
2017-01-30 11:13:24.210	spid23s	     @benefits_hdn7           ,
2017-01-30 11:13:24.210	spid23s	     @benefits_hdn8           ,
2017-01-30 11:13:24.210	spid23s	     @benefits_hdn9           ,
2017-01-30 11:13:24.210	spid23s	     @btn_timehiglit          ,
2017-01-30 11:13:24.210	spid23s	     @btn_tran_highlt         ,
2017-01-30 11:13:24.210	spid23s	     @check_box               ,
2017-01-30 11:13:24.210	spid23s	     @coursl_set_vw           ,
2017-01-30 11:13:24.210	spid23s	     @dateadded               ,
2017-01-30 11:13:24.210	spid23s	     @datemodified            ,
2017-01-30 11:13:24.210	spid23s	     @empin_ou                ,
2017-01-30 11:13:24.210	spid23s	     @employee_code           ,
2017-01-30 11:13:24.210	spid23s	     @empngou                 ,
2017-01-30 11:13:24.210	spid23s	     @emp_det                 ,
2017-01-30 11:13:24.210	spid23s	@emp_pic                 ,
2017-01-30 11:13:24.210	spid23s	     @end_da
2017-01-30 11:13:24.210	spid23s	    inputbuf
2017-01-30 11:13:24.210	spid23s	Proc [Database Id = 9 Object Id = 1735284141]
2017-01-30 11:13:24.210	spid23s	  resource-list
2017-01-30 11:13:24.210	spid23s	   ridlock fileid=1 pageid=182144 dbid=9 objectname=HRMS40.dbo.ladm_leave_summary_tmp id=lock5cec07100 mode=X

associatedObjectId=72057594270449664
2017-01-30 11:13:24.210	spid23s	    owner-list
2017-01-30 11:13:24.210	spid23s	     owner id=processff44fb088 mode=X
2017-01-30 11:13:24.210	spid23s	    waiter-list
2017-01-30 11:13:24.210	spid23s	     waiter id=process8e485a108 mode=U requestType=wait
2017-01-30 11:13:24.210	spid23s	   ridlock fileid=1 pageid=201736 dbid=9 objectname=HRMS40.dbo.ladm_leave_summary_tmp id=locke8a0b3980 mode=X

associatedObjectId=72057594270449664
2017-01-30 11:13:24.210	spid23s	    owner-list
2017-01-30 11:13:24.210	spid23s	     owner id=process8e485a108 mode=X
2017-01-30 11:13:24.210	spid23s	    waiter-list
2017-01-30 11:13:24.210	spid23s	     waiter id=processff44fb088 mode=U requestType=wait
2017-01-31 14:41:10.110	spid29s	deadlock-list
2017-01-31 14:41:10.110	spid29s	 deadlock victim=process1402c23848
2017-01-31 14:41:10.110	spid29s	  process-list
2017-01-31 14:41:10.110	spid29s	   process id=process1402c23848 taskpriority=0 logused=1536 waitresource=RID: 9:1:386747:0 waittime=3752 ownerId=467398737

transactionname=user_transaction lasttranstarted=2017-01-31T14:41:06.313 XDES=0xba2809770 lockMode=U schedulerid=1 kpid=18820 status=suspended spid=70 sbid=0 ecid=0

priority=0 trancount=2 lastbatchstarted=2017-01-31T14:41:06.313 lastbatchcompleted=2017-01-31T14:41:06.313 lastattention=1900-01-01T00:00:00.313 clientapp=.Net

SqlClient Data Provider hostname=MAGWARAZIND06 hostpid=12744 loginname=rvwuser isolationlevel=read committed (2) xactid=467398737 currentdb=9 lockTimeout=4294967295

clientoption1=538968096 clientoption2=128056
2017-01-31 14:41:10.110	spid29s	    executionStack
2017-01-31 14:41:10.110	spid29s	     frame procname=HRMS40.dbo.emp_service_calculation line=96 stmtstart=12078 stmtend=12930

sqlhandle=0x03000900253ebe479bf6b800c4a5000001000000000000000000000000000000000000000000000000000000
2017-01-31 14:41:10.110	spid29s	update  old
2017-01-31 14:41:10.110	spid29s	 set old.service_from_dt =   isnull(convert(nvarchar(11),reh.rehire_date,121),service_from_dt)
2017-01-31 14:41:10.110	spid29s	 from    emp_service_temp old with (nolock)  ,hrmv_emp_rehire_dtl reh with (nolock)
2017-01-31 14:41:10.110	spid29s	   where  guid = @guid
2017-01-31 14:41:10.110	spid29s	   and    old.master_ou_code = reh.master_ou_code
2017-01-31 14:41:10.110	spid29s	   and    old.employee_code  = reh.employee_code
2017-01-31 14:41:10.110	spid29s	   and    rehire_status        = 'A'
2017-01-31 14:41:10.110	spid29s	   and    reh.rehire_date       <= @srv_asondat
2017-01-31 14:41:10.110	spid29s	     frame procname=HRMS40.dbo.lvser_mtnlv_ini_lvtype_sp line=208 stmtstart=18850 stmtend=19090

sqlhandle=0x03000900ceeaa92f49850f015da6000001000000000000000000000000000000000000000000000000000000
2017-01-31 14:41:10.110	spid29s	exec emp_service_calculation '999999999999991',@hremployeecode,'N','N','N','N','N','N','N',@current_date,2,'DAYS'
2017-01-31 14:41:10.110	spid29s	     frame procname=HRMS40.dbo.LVM_qreq_Spinithrtype line=77 stmtstart=5188 stmtend=5620

sqlhandle=0x030009009f828a04eb8f0f015da6000001000000000000000000000000000000000000000000000000000000
2017-01-31 14:41:10.110	spid29s	Insert Into @leave_types (Leave_type_code, Leave_type_desc)
2017-01-31 14:41:10.110	spid29s	 Exec Lvser_mtnlv_ini_lvtype_sp
2017-01-31 14:41:10.110	spid29s	   @ctxt_language,
2017-01-31 14:41:10.110	spid29s	   @ctxt_ouinstance,
2017-01-31 14:41:10.110	spid29s	   @ctxt_role,
2017-01-31 14:41:10.110	spid29s	   @ctxt_service,
2017-01-31 14:41:10.110	spid29s	   @ctxt_user,
2017-01-31 14:41:10.110	spid29s	   'A',
2017-01-31 14:41:10.110	spid29s	   @m_errorid Outpu
2017-01-31 14:41:10.110	spid29s	    inputbuf
2017-01-31 14:41:10.110	spid29s	Proc [Database Id = 9 Object Id = 76186271]
2017-01-31 14:41:10.110	spid29s	   process id=process18e7cc7c28 taskpriority=0 logused=2395404 waitresource=RID: 9:1:347381:0 waittime=3554 ownerId=467378050

transactionguid=0xcd66fcf5d5507843b0907cdcca049035 transactionname=user_transaction lasttranstarted=2017-01-31T14:40:52.220 XDES=0x1f3ba03b0 lockMode=U schedulerid=3

kpid=15024 status=suspended spid=66 sbid=0 ecid=0 priority=0 trancount=2 lastbatchstarted=2017-01-31T14:41:06.373 lastbatchcompleted=2017-01-31T14:41:06.370

lastattention=1900-01-01T00:00:00.370 clientapp=.Net SqlClient Data Provider hostname=MAGWARAZIND06 hostpid=12744 loginname=rvwuser isolationlevel=read committed (2)

xactid=467378050 currentdb=9 lockTimeout=4294967295 clientoption1=538968096 clientoption2=128056
2017-01-31 14:41:10.110	spid29s	    executionStack
2017-01-31 14:41:10.110	spid29s	     frame procname=HRMS40.dbo.emp_service_calculation line=96 stmtstart=12078 stmtend=12930

sqlhandle=0x03000900253ebe479bf6b800c4a5000001000000000000000000000000000000000000000000000000000000
2017-01-31 14:41:10.110	spid29s	update  old
2017-01-31 14:41:10.110	spid29s	 set old.service_from_dt =   isnull(convert(nvarchar(11),reh.rehire_date,121),service_from_dt)
2017-01-31 14:41:10.110	spid29s	 from    emp_service_temp old with (nolock)  ,hrmv_emp_rehire_dtl reh with (nolock)
2017-01-31 14:41:10.110	spid29s	   where  guid = @guid
2017-01-31 14:41:10.110	spid29s	   and    old.master_ou_code = reh.master_ou_code
2017-01-31 14:41:10.110	spid29s	   and    old.employee_code  = reh.employee_code
2017-01-31 14:41:10.110	spid29s	   and    rehire_status        = 'A'
2017-01-31 14:41:10.110	spid29s	   and    reh.rehire_date       <= @srv_asondat
2017-01-31 14:41:10.110	spid29s	     frame procname=HRMS40.dbo.lv_appln_common_sp line=1054 stmtstart=95608 stmtend=96074

sqlhandle=0x03000900af38b846eecfbe005ea6000001000000000000000000000000000000000000000000000000000000
2017-01-31 14:41:10.110	spid29s	exec emp_service_calculation @guid,@hremployeecode,'N','Y',@srv_rehire_dt,'N','N','N','Y',@leave_from_date,2,@min_srv_uom --

@currentdate,2,@min_srv_uom --code modified by Gopinath For bug id HRMS20_HRMSLVDEF_DN_00107 on 04/06/2013
2017-01-31 14:41:10.110	spid29s	     frame procname=HRMS40.dbo.lad_alem_sp_subgrid line=1134 stmtstart=79352 stmtend=82820

sqlhandle=0x030009007be26a2ed74e0e015da6000001000000000000000000000000000000000000000000000000000000
2017-01-31 14:41:10.110	spid29s	exec lv_appln_common_sp @hrouinstance__Tmp__1 ,@ctxt_user ,@ctxt_role ,@ctxt_service ,@ctxt_language ,
2017-01-31 14:41:10.110	spid29s	             'A','HRMSLVPST',@hrempcode__Tmp__1 ,@hrleavetypecode__Tmp__1 ,
2017-01-31 14:41:10.110	spid29s	      @tmp_request_date,
2017-01-31 14:41:10.110	spid29s	      @tmp_lvfrom_date,
2017-01-31 14:41:10.110	spid29s	      @tmp_lvto_date,
2017-01-31 14:41:10.110	spid29s	      @hrvaluecode__Tmp__1 ,
2017-01-31 14:41:10.110	spid29s	      @hrvaluecode1__Tmp__1 ,
2017-01-31 14:41:10.110	spid29s	      @hrtimefrom1__Tmp__1 ,
2017-01-31 14:41:10.110	spid29s	      @hrtimeto1__Tmp__1 ,
2017-01-31 14:41:10.110	spid29s	      @hrquickcode__Tmp__1 ,
2017-01-31 14:41:10.110	spid29s	      @hrleavereason1__Tmp__1 ,
2017-01-31 14:41:10.110	spid29s	      @hrcoverempcode1__Tmp__1 ,
2017-01-31 14:41:10.110	spid29s	      @hrsupportdocsprov__Tmp__1 ,
2017-01-31 14:41:10.110	spid29s	      @hrlvsuptdocuments__Tmp__1 ,
2017-01-31 14:41:10.110	spid29s	      0 ,
2017-01-31 14:41:10.110	spid29s	      @hrladm_holdy_wrkd_dat ,---Code Added by SHAMEEMA H for the Defect ID:HRMS20_HRMSLVPRO_DN_00082 on 02-08-2014
2017-01-31 14:41:10.110	spid29s	   null,---Code added by Abinaya.M for  Magna_00022_2016 on 10/05/2016
2017-01-31 14:41:10.110	spid29s	   null,---Code added by Abinaya.M for  Magna_00022_2016 on 10/05/2016
2017-01-31 14:41:10.110	spid29s	      @hrleaveunitcd__Tmp__1  output,
2017-01-31 14:41:10.110	spid29s	      @Parm_std_hrs_per_day  output,
2017-01-31 14:41:10.110	spid29s	      @past_flag  output,
2017-01-31 14:41:10.110	spid29s	      @guid   output,
2017-01-31 14:41:10.110	spid29s	    inputbuf
2017-01-31 14:41:10.110	spid29s	Proc [Database Id = 9 Object Id = 778756731]
2017-01-31 14:41:10.110	spid29s	  resource-list
2017-01-31 14:41:10.110	spid29s	   ridlock fileid=1 pageid=386747 dbid=9 objectname=HRMS40.dbo.emp_service_temp id=lockb69078e00 mode=X

associatedObjectId=72057594038452224



Since the content in the notepad is huge, i couldnt send all in detail, Can you share me your mail id where in i can share the logs in Zip if in case you need to have a look in detail of the notepad. 

Thank s


hemadri

Managed SQL Server Backup to Azure not cleaning up blob storage

$
0
0

I've got a managed SQL Server Backup that has been working fine for almost a year. 30 day retention. Looking at it today I see items in the blob storage that go back 47 days.

Looks like it might not be cleaning itself up all of a sudden.  There are not a lot of settings anywhere for this so I'm not sure how to troubleshoot.  I'm going to give it another week I suppose as I know it's not going to be exactly 30 days for a 30 day retention period.

Anyone seen anything like this before?  Is there any place you can look to see the logs for the Managed SQL Server backup see what might be failing?  It's not a critical issue immediately but space is being used up keeping these older than 30 day versions.

Dean


Dean

The logical file name "Archive_Log" is already in use but is clearly not in use

$
0
0

Hi

I once had such a logical filename but it was deleted. Now that i have rebuilt the DBs and i want to use this name, it says in use but there is no evidence of this:

Error: The logical file name "Archive_Log" is already in use. Choose a different name. (.Net SqlClient Data Provider)

Checks:
SELECT DB_NAME(database_id) AS DatabaseName, 
       name AS LogicalFileName, 
       physical_name AS PhysicalFileName 
FROM sys.master_files AS mf
ORDER by name

ArchiveArchive_DataD:\SQLData\Archive_Data.mdf
ArchiveArchive_IndexD:\SQLData\Archive_Index.ndf
ArchiveArchive_log_PrimaryD:\SQLLogs\Archive_Log.ldf

There is no Archive_Log so why can't I rename Archive_log_Primary to it?

Thanks

Mike

Missing index

$
0
0

Hi

I'm running this

          


declare @tableName nvarchar(500) 
declare @indexName nvarchar(500) 
declare @indexType nvarchar(55) 
declare @percentFragment decimal(11,2) 

declare FragmentedTableList cursor for 
 SELECT OBJECT_NAME(ind.OBJECT_ID) AS TableName, 
   ind.name AS IndexName, indexstats.index_type_desc AS IndexType, 
   indexstats.avg_fragmentation_in_percent 
 FROM sys.dm_db_index_physical_stats(DB_ID(), NULL, NULL, NULL, NULL) indexstats 
   INNER JOIN sys.indexes ind ON ind.object_id = indexstats.object_id 
        AND ind.index_id = indexstats.index_id 
  WHERE 
-- indexstats.avg_fragmentation_in_percent , e.g. >30, you can specify any number in percent 
   indexstats.avg_fragmentation_in_percent > 5 
  AND ind.Name is not null 
  ORDER BY indexstats.avg_fragmentation_in_percent DESC 

    OPEN FragmentedTableList 
    FETCH NEXT FROM FragmentedTableList  
    INTO @tableName, @indexName, @indexType, @percentFragment 

    WHILE @@FETCH_STATUS = 0 
    BEGIN 
      print 'Processing ' + @indexName + 'on table ' + @tableName + ' which is ' + cast(@percentFragment as nvarchar(50)) + ' fragmented' 

      if(@percentFragment<= 30) 
      BEGIN 
            EXEC( 'ALTER INDEX ' +  @indexName + ' ON ' + @tableName + ' REBUILD; ') 
       print 'Finished reorganizing ' + @indexName + 'on table ' + @tableName 
      END 
      ELSE 
      BEGIN 
         EXEC( 'ALTER INDEX ' +  @indexName + ' ON ' + @tableName + ' REORGANIZE;') 
        print 'Finished rebuilding ' + @indexName + 'on table ' + @tableName 
      END  
      FETCH NEXT FROM FragmentedTableList  
        INTO @tableName, @indexName, @indexType, @percentFragment 
    END 
    CLOSE FragmentedTableList 
    DEALLOCATE FragmentedTableList

comes back with  IndexName 

PK_REVISION_INFO 

but 

Msg 1088, Level 16, State 9, Line 1
Cannot find the object "revision_info" because it does not exist or you do not have permissions.

when i look through the GUI interface I see index PK_REVINFO_CAA3212334 

?????

Dude

$
0
0

Hello from the land of Oz , my PC is constantly being snooped by sql.microsoft.com. I have to manually flick this spyware which is detected by my firewall about 50 times a day. Is this even from Microsoft or is it a Trojan jockey of some sorts? How do I block this trash ware? many thanks.


Object reference not set to an instance of an object (sqlmgt) ?

$
0
0

Hello, we have Windows Server 2012 & SQL 2016 Developer free edition and installed Management Studio v17.6.

(Microsoft SQL Server 2016 (SP1-CU1) (KB3208177) - 13.0.4411.0 (X64)   Jan  6 2017 14:24:37   Copyright (c) Microsoft Corporation  Developer Edition (64-bit) on Windows Server 2012 R2 Standard 6.3 <X64> (Build 9600: ) (Hypervisor) )

When trying to create a new Maintenance Plan (via Wizard) on initial screen in scheduling it the following error message appears and can't continue on:

Object reference not set to an instance of an object (sqlmgmt)

Does anyone know how to fix this?

Thanks in advance.


How to create a snapshot table on the server which will update weekly but not take more space

$
0
0

Hi All,

I have a requirement to create a table which will snapshot the data weekly and it will be having around 50K rows every week, so i need to create a table and keep adding this data weekly. However my concern is after few months or years down the lane the table will be so huge as it keeps updating weekly. 

My data will be used in a report to show this week vs last week data and if needed we should be able to change the report dates and it should pull any weeks data at any given point of time thats the reason i want to snapshot it.

So i am trying to brainstorm some ideas onto how to work around with this so that we dont take much space on the DB and server, Can someone please help me with any ideas on this? I may not need to create a table and append weekly if there is any other way of doing it. 

Any ideas/thoughts around this would be more appreciated.

Thanks.

SQL Server performance testing on Prod?

$
0
0

What are anyone's thoughts if a user is requesting to make a copy of a Test/QA DB and put onto Prod in aiming for "Performance testing" ?

Obviously this would have an impact on the over all SQL Server other DBs on there which has me very concerned in being an odd request.

Thanks in advance.

SqlTDiagM version 14.100.0.0 not found

$
0
0

Hi all !

I have a problem with SSMS, whenever I want to start it I get a message

"Could not load file or assembly Microsoft.SqlServer.SqlTDiagM Version=14.100.0.0 ......system cannot find the file specified"

I'm working on SQL 2016 service pack 1, all components are running except SSMS. I tried ver 17.3, 17.5 and now 17.7 and no luck!

I have another server with the same configuration and it's working perfectly with ver 17.7

Funny thing is that it's looking for a file version which doesn't exist right? Not on the other server anyway. 

Any idea where I should look to fix it? 

Thanks in advance! 

Microsoft SQL Server Management Studio 17 crashes instantly on startup.

$
0
0

This does not seem to be unique to SSMS 17 as I also tried installing SSMS 16 as well and no luck. I've also tried reinstalling SSMS 17 twice. Basically whenever I start SSMS, within 5 seconds of starting Management Studio it crashes without any error pop ups or anything. Upon inspecting my event viewer I have two errors that I believe are related: 

.NET Runtime Error:

Application: Ssms.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.TypeLoadException
   at Microsoft.VisualStudio.Telemetry.SqmUploader.SqmUploaderClient..ctor(Microsoft.VisualStudio.Shell.VsHub.IVsHubService, Microsoft.VisualStudio.Shell.Interop.IVsShell, Microsoft.VisualStudio.Telemetry.IRegistryTools, Microsoft.VisualStudio.Telemetry.Sqm.ISqmSettingsProvider)
   at Microsoft.VisualStudio.Telemetry.VSTelemetryPackage+<<CreateSqmUploader>b__11_1>d.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0(System.Object)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)

Application Error:

Faulting application name: Ssms.exe, version: 2017.140.17119.0, time stamp: 0x591bcf8a
Faulting module name: KERNELBASE.dll, version: 10.0.15063.296, time stamp: 0x28e9cf15
Exception code: 0xe0434352
Fault offset: 0x000eb802
Faulting process ID: 0xf4
Faulting application start time: 0x01d2f4c574fd2829
Faulting application path: C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\Ssms.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report ID: c95bca91-dbf6-4e5f-aeac-b15cb7e73f20
Faulting package full name: 
Faulting package-relative application ID: 

SSMS 2017 Keeps Crashing

$
0
0

I have the latest and greatest version. 17.7 (2017.140.17254.0)

But still keeps crashing. Error trace from event logs:

Faulting application name: Ssms.exe, version: 2017.140.17254.0, time stamp: 0x5ae98abe
Faulting module name: PenIMC2_v0400.dll, version: 4.7.2600.0, time stamp: 0x59d794eb
Exception code: 0xc0000005
Fault offset: 0x00006e9e
Faulting process id: 0x3b0
Faulting application start time: 0x01d407a49d2d355a
Faulting application path: C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\Ssms.exe
Faulting module path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\WPF\PenIMC2_v0400.dll
Report Id: 3cf5f69b-6b54-437d-aa1a-cc056d550d69
Faulting package full name:
Faulting package-relative application ID:

SQL Server Database Backup Error

$
0
0

I am receiving the following error when trying to backup a database in SQL Server:

System.Data.SqlClient.SqlError: Cannot use the backup file 'C:\Program Files\Microsoft SQL Server\MSSQL13.SQLEXPRESS\MSSQL\Backup\estimates.bak' because it was originally formatted with sector size 512 and is now on a device with sector size 4096.

How can I resolve this?


How to set up auditing

$
0
0
I am a system admin for all member servers, I am wanting to know how to setup tracking/ auditing of sql database changes from sql admins? Are there any Microsoft configurations, free tools, etc that will allow me to configure such an auditing scheme?

Windows 2008 Server r2 add new storage disk with SQL Server ?

$
0
0

Hello, is a downtime/outage in regards to SQL Server 2008 running on a physical Windows 2008 Server r2 needed when adding a new physical storage as a new disk drive letter (including formatting disk step) or should be ok to do while SQL Server is still up and running?

Thanks in advance.

During VM Snapshots, getting Event IDs 3197, 3198, & 18264

$
0
0

We have many SQL 2008 R2 instances running on Windows Servers (2008 R2 and 2012 R2).  When we take a normal snapshot that quiesce's the guest file system, it logs messages in the Event Viewer that it is backed up every database.  I would expect this if we were actually doing application/DB level backups; however, all we are doing is taking a VMware level snap (Example: before we patch the server we take a snapshot)

Event ID 3197: I/O is frozen on database msdb. No user action is required. However, if I/O is not resumed promptly, you could cancel the backup.

Event ID 3198: I/O was resumed on database msdb. No user action is required.

Event ID 18264: Database backed up. Database: msdb, creation date(time): 2010/04/02(17:35:08), pages dumped: 4075, first LSN: 5306:704:64, last LSN: 5306:744:1, number of dump devices: 1, device information: (FILE=1, TYPE=VIRTUAL_DEVICE: {'{D923871B-4D87-4CBF-BAC3-A10B8AEBBA1F}2'}). This is an informational message only. No user action is required.

As aforesaid, it logs these events for every database on this system.  Anybody make sense of this?


Karl

Wait Stats help

$
0
0

Hi,

I am currently looking at performance issues with SQL server 2012 STD. I have gather the following wait stats. The 

LCK_M_IX and 
CXPACKET times seems quite high. I'm would like some guidance on reducing these wait times and interpreting these wait times.

based performance logs the 8 core CPU seems to be utilized properly. I.e all cores utilized when needed.

wait_typewaiting_tasks_countwait_time_msmax_wait_time_mssignal_wait_time_ms
LCK_M_X75976317718965363113343882
LCK_M_IX866622789912212137504456135
PAGELATCH_SH11341959764597597450439
PAGELATCH_EX8638466228438906496326280567
ASYNC_NETWORK_IO703924542228603751010818777248
SOS_SCHEDULER_YIELD3117208344400828534133439636328
WRITELOG5630561210724481210350227823543
CXPACKET2311601231355061262135484074480213

tempdb data files don't match

$
0
0

Hello, we are using SQL Server 2014 SP2 Enterprise Edition, Core Based (64-bit). The server I'm looking at is the primary server in a 3 server Availability Group. 

When I query the sys.master_files for the tempdb, the results show 44 data files. Which is incorrect.  When I look at the tempdb directly from SSMS, it shows 12 data files, the correct number.  The correct number of tempdb data files also show up correctly on the physical drive where they are located.

I've used the alter command to make sure the tempdb data files were named correctly and were going to the correct physical location.  After restarting SQL Server, the tempdb shows only one data file and the log file from SSMS, but adds an additional 12 data files on the physical drive and also returns the wrong number of data files from  sys.master_files.

I have never had any issues with tempdb in the past.  Any assistance would be greatly appreciated.  Someone mentioned that Varonis can control the size of the tempdb from the application?  Thanks.

Viewing all 1519 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>