Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 73760

Change index in SYSCLIENTSESSIONS TABLE

$
0
0

Good afternoon, 

 

I would like to change an index in SYSCLIENTSESSIONS table, because the following query would benefit from it:

declare @p1 int

set @p1=1073747952

declare @p2 int

set @p2=180184685

declare @p5 int

set @p5=16

declare @p6 int

set @p6=1

declare @p7 int

set @p7=1

exec sp_cursorprepexec @p1 output,@p2 output,N'@P1 int',N'SELECT A.SESSIONID,A.SERVERID,A.VERSION,A.LOGINDATETIME,A.LOGINDATETIMETZID,A.STATUS,A.USERID,A.SID,A.USERLANGUAGE,A.HELPLANGUAGE,A.CLIENTTYPE,A.SESSIONTYPE,A.CLIENTCOMPUTER,A.RECVERSION,A.RECID FROM SYSCLIENTSESSIONS A WHERE (SESSIONID=@P1)',@p5 output,@p6 output,@p7 output,73

select @p1, @p2, @p5, @p6, @p7

 

Index that i would like to change:

 

dropindex I_65500SERVERIDon SYSCLIENTSESSIONS

 

CREATEINDEX I_65500SERVERID

ON [dbo].[SYSCLIENTSESSIONS]([SERVERID],[STATUS])

INCLUDE ([SESSIONID],[VERSION],[LOGINDATETIME],[LOGINDATETIMETZID],[USERID],[SID],[USERLANGUAGE],[HELPLANGUAGE],[CLIENTTYPE],[SESSIONTYPE],

        [CLIENTCOMPUTER],[RECVERSION],[RECID])

GO

 

This table doesn´t appear in AOT and when i change it directly in SQL Server, it returns to original state after synchronization.

 

My answer is: Is it possible to change or create an index in this system table?

 

Regards

 


Viewing all articles
Browse latest Browse all 73760

Trending Articles



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