There are a number of stored procedures involved in sql server based session
maintenance:
- TempUpdateStateItemShort
- TempResetTimeout
- TempUpdateStateItemLong
etc. These stored procs are executed by the framework, e.g.,
exec TempResetTimeout @id = '1iucllii0f42ksvfg4zsajae00000001'
Performing a trace shows many SP:CacheMiss (indicating perhaps that the
stored proc is recompiling everytime).
According to Q263889
( http://support.microsoft.com/default...;en-us;263889), the stored
proc owner (e.g., "dbo") should be specified in the call to avoid this
recompilation (or at least the cache miss).
Can anyone tell me if my assessment is correct? Will this optimization be
included in future .NET (1.1) Service Packs?
Thanks,
Jason Collins 5 2784
Frank gave you all the details... You just need to call the procedure as
owner.sp, in your case (probably) as dbo.TempResetTimeout instead of just
simply TempResetTimeout. This has absolutely nothing to do with .NET, unless
you want it to be magically guessing and changing your SQL statements when
it feels like you didn't really mean them...
Jerry
"MS News (MS ILM)" <sq**********@hotmail.com> wrote in message
news:ee**************@TK2MSFTNGP09.phx.gbl... What does that mean please give us more details
"Frank Drebin" <no*****@imsickofspam.com> wrote in message news:1Q**********************@newssvr28.news.prodi gy.com... That's a general SQL thing.. technically you should always reference as dbo.StoredProcName
"Jason Collins" <jc*************@point2.com> wrote in message news:uc**************@TK2MSFTNGP09.phx.gbl... There are a number of stored procedures involved in sql server based session maintenance:
- TempUpdateStateItemShort - TempResetTimeout - TempUpdateStateItemLong
etc. These stored procs are executed by the framework, e.g.,
exec TempResetTimeout @id = '1iucllii0f42ksvfg4zsajae00000001'
Performing a trace shows many SP:CacheMiss (indicating perhaps that
the stored proc is recompiling everytime).
According to Q263889 (http://support.microsoft.com/default...;en-us;263889), the stored proc owner (e.g., "dbo") should be specified in the call to avoid this recompilation (or at least the cache miss).
Can anyone tell me if my assessment is correct? Will this optimization be included in future .NET (1.1) Service Packs?
Thanks, Jason Collins
Except that the TempResetTimeout, etc. methods are .NET methods for session
maintenance; i.e., I have nothing to do with them, and can't alter them.
j
"Jerry III" <je******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... Frank gave you all the details... You just need to call the procedure as owner.sp, in your case (probably) as dbo.TempResetTimeout instead of just simply TempResetTimeout. This has absolutely nothing to do with .NET,
unless you want it to be magically guessing and changing your SQL statements when it feels like you didn't really mean them...
Jerry
"MS News (MS ILM)" <sq**********@hotmail.com> wrote in message news:ee**************@TK2MSFTNGP09.phx.gbl... What does that mean please give us more details
"Frank Drebin" <no*****@imsickofspam.com> wrote in message news:1Q**********************@newssvr28.news.prodi gy.com... That's a general SQL thing.. technically you should always reference
as dbo.StoredProcName
"Jason Collins" <jc*************@point2.com> wrote in message news:uc**************@TK2MSFTNGP09.phx.gbl... > There are a number of stored procedures involved in sql server based session > maintenance: > > - TempUpdateStateItemShort > - TempResetTimeout > - TempUpdateStateItemLong > > etc. These stored procs are executed by the framework, e.g., > > exec TempResetTimeout @id = '1iucllii0f42ksvfg4zsajae00000001' > > Performing a trace shows many SP:CacheMiss (indicating perhaps that the > stored proc is recompiling everytime). > > According to Q263889 > (http://support.microsoft.com/default...;en-us;263889),
the stored > proc owner (e.g., "dbo") should be specified in the call to avoid
this > recompilation (or at least the cache miss). > > Can anyone tell me if my assessment is correct? Will this
optimization be > included in future .NET (1.1) Service Packs? > > Thanks, > Jason Collins > >
You should do both, create it with a fully qualified name and call it with
one too. As for the tracing - I don't know, try using the SQL Server
profiler and look around. And if you can't figure it out ask in a SQL Server
newsgroup.
Jerry
"MS News (MS ILM)" <sq***********@hotmail.com> wrote in message
news:u7*************@TK2MSFTNGP09.phx.gbl... Jerry,
Couple of questions: call the procedure: is it like "create procedure dbo.AddModuleDefinition" and not as "create procedure AddModuleDefinition" OR when you actually invoke it? via exec or from Code?
How do you Performing a trace in SQL to show SP:CacheMiss
Thank you.
"Jerry III" <je******@hotmail.com> wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl... Frank gave you all the details... You just need to call the procedure as owner.sp, in your case (probably) as dbo.TempResetTimeout instead of
just simply TempResetTimeout. This has absolutely nothing to do with .NET, unless you want it to be magically guessing and changing your SQL statements
when it feels like you didn't really mean them...
Jerry
"MS News (MS ILM)" <sq**********@hotmail.com> wrote in message news:ee**************@TK2MSFTNGP09.phx.gbl... What does that mean please give us more details
"Frank Drebin" <no*****@imsickofspam.com> wrote in message news:1Q**********************@newssvr28.news.prodi gy.com... > That's a general SQL thing.. technically you should always reference as > dbo.StoredProcName > > "Jason Collins" <jc*************@point2.com> wrote in message > news:uc**************@TK2MSFTNGP09.phx.gbl... > > There are a number of stored procedures involved in sql server
based > session > > maintenance: > > > > - TempUpdateStateItemShort > > - TempResetTimeout > > - TempUpdateStateItemLong > > > > etc. These stored procs are executed by the framework, e.g., > > > > exec TempResetTimeout @id = '1iucllii0f42ksvfg4zsajae00000001' > > > > Performing a trace shows many SP:CacheMiss (indicating perhaps
that the > > stored proc is recompiling everytime). > > > > According to Q263889 > > (http://support.microsoft.com/default...;en-us;263889), the > stored > > proc owner (e.g., "dbo") should be specified in the call to avoid this > > recompilation (or at least the cache miss). > > > > Can anyone tell me if my assessment is correct? Will this optimization be > > included in future .NET (1.1) Service Packs? > > > > Thanks, > > Jason Collins > > > > > >
Jerry,
Thank you for your answer(s)
"Jerry III" <je******@hotmail.com> wrote in message
news:O4**************@TK2MSFTNGP10.phx.gbl... You should do both, create it with a fully qualified name and call it with one too. As for the tracing - I don't know, try using the SQL Server profiler and look around. And if you can't figure it out ask in a SQL
Server newsgroup.
Jerry
"MS News (MS ILM)" <sq***********@hotmail.com> wrote in message news:u7*************@TK2MSFTNGP09.phx.gbl... Jerry,
Couple of questions: call the procedure: is it like "create procedure
dbo.AddModuleDefinition" and not as "create procedure AddModuleDefinition" OR when you
actually invoke it? via exec or from Code?
How do you Performing a trace in SQL to show SP:CacheMiss
Thank you.
"Jerry III" <je******@hotmail.com> wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl... Frank gave you all the details... You just need to call the procedure
as owner.sp, in your case (probably) as dbo.TempResetTimeout instead of just simply TempResetTimeout. This has absolutely nothing to do with .NET, unless you want it to be magically guessing and changing your SQL statements when it feels like you didn't really mean them...
Jerry
"MS News (MS ILM)" <sq**********@hotmail.com> wrote in message news:ee**************@TK2MSFTNGP09.phx.gbl... > What does that mean please give us more details > > > "Frank Drebin" <no*****@imsickofspam.com> wrote in message > news:1Q**********************@newssvr28.news.prodi gy.com... > > That's a general SQL thing.. technically you should always
reference as > > dbo.StoredProcName > > > > "Jason Collins" <jc*************@point2.com> wrote in message > > news:uc**************@TK2MSFTNGP09.phx.gbl... > > > There are a number of stored procedures involved in sql server based > > session > > > maintenance: > > > > > > - TempUpdateStateItemShort > > > - TempResetTimeout > > > - TempUpdateStateItemLong > > > > > > etc. These stored procs are executed by the framework, e.g., > > > > > > exec TempResetTimeout @id = '1iucllii0f42ksvfg4zsajae00000001' > > > > > > Performing a trace shows many SP:CacheMiss (indicating perhaps that the > > > stored proc is recompiling everytime). > > > > > > According to Q263889 > > >
(http://support.microsoft.com/default...;en-us;263889), the > > stored > > > proc owner (e.g., "dbo") should be specified in the call to
avoid this > > > recompilation (or at least the cache miss). > > > > > > Can anyone tell me if my assessment is correct? Will this optimization > be > > > included in future .NET (1.1) Service Packs? > > > > > > Thanks, > > > Jason Collins > > > > > > > > > > > >
Yes, basically, I was posting here to bring it to someone at MS's
attention...
j
"Jerry III" <je******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... I see... Well, not much you can do unless you want to create your own session management. Maybe Microsoft will start following their own advice sometime in the future...
Jerry
"Jason Collins" <jc*************@point2.com> wrote in message news:%2****************@tk2msftngp13.phx.gbl... Except that the TempResetTimeout, etc. methods are .NET methods for
session maintenance; i.e., I have nothing to do with them, and can't alter them.
j
"Jerry III" <je******@hotmail.com> wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl... Frank gave you all the details... You just need to call the procedure
as owner.sp, in your case (probably) as dbo.TempResetTimeout instead of just simply TempResetTimeout. This has absolutely nothing to do with .NET, unless you want it to be magically guessing and changing your SQL statements when it feels like you didn't really mean them...
Jerry
"MS News (MS ILM)" <sq**********@hotmail.com> wrote in message news:ee**************@TK2MSFTNGP09.phx.gbl... > What does that mean please give us more details > > > "Frank Drebin" <no*****@imsickofspam.com> wrote in message > news:1Q**********************@newssvr28.news.prodi gy.com... > > That's a general SQL thing.. technically you should always
reference as > > dbo.StoredProcName > > > > "Jason Collins" <jc*************@point2.com> wrote in message > > news:uc**************@TK2MSFTNGP09.phx.gbl... > > > There are a number of stored procedures involved in sql server based > > session > > > maintenance: > > > > > > - TempUpdateStateItemShort > > > - TempResetTimeout > > > - TempUpdateStateItemLong > > > > > > etc. These stored procs are executed by the framework, e.g., > > > > > > exec TempResetTimeout @id = '1iucllii0f42ksvfg4zsajae00000001' > > > > > > Performing a trace shows many SP:CacheMiss (indicating perhaps that the > > > stored proc is recompiling everytime). > > > > > > According to Q263889 > > >
(http://support.microsoft.com/default...;en-us;263889), the > > stored > > > proc owner (e.g., "dbo") should be specified in the call to
avoid this > > > recompilation (or at least the cache miss). > > > > > > Can anyone tell me if my assessment is correct? Will this optimization > be > > > included in future .NET (1.1) Service Packs? > > > > > > Thanks, > > > Jason Collins > > > > > > > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jeager |
last post by:
Why is it, Microsoft manage to write operating systems and office
applications with every bell and whistle facility known to man. Yet,
even after years and years of development they still cannot...
|
by: steve |
last post by:
This event does not fire when session is stored in SQL or
in the SessionState service, this is documented. If you
think about, it has to be this way, because these
implementations are able to...
|
by: Abhilash.k.m |
last post by:
This is regarding the session management using Out of
proc session management(SQL SERVER). Among the samples
below which one is better to set the session?
1. There are 20 session...
|
by: jakk |
last post by:
Iam storing the session state in SQL Server. The Session gets stored in
the SQL Server temp tables ( I can see some values in the two tables),
but the session doesnt seem to timeout.
We have a...
|
by: |
last post by:
Simple question, I think...
I'm storing an object in the Session object.
In the code behind I read that object: trx = CType(Session("Transaction"), BOCSTransaction)
If I change any...
|
by: codegreen9 |
last post by:
Hi,
My understanding is that session info must be stored using
Session, which means text data. What I'd like to be able to do,
is keep an object alive throughout a user's session, without...
|
by: Jobs |
last post by:
Download the JAVA , .NET and SQL Server interview with answers
Download the JAVA , .NET and SQL Server interview sheet and rate
yourself. This will help you judge yourself are you really worth of...
|
by: raghav |
last post by:
Hi all
I am having a SP which is returning a value......Now I have to store
that value
in session...I saw some examples in msdn lib ---->
string Name=string.Empty;
Session=Name.ToString();
...
|
by: lllomh |
last post by:
Define the method first
this.state = {
buttonBackgroundColor: 'green',
isBlinking: false, // A new status is added to identify whether the button is blinking or not
}
autoStart=()=>{
|
by: DJRhino |
last post by:
Was curious if anyone else was having this same issue or not....
I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: Aliciasmith |
last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
|
by: NeoPa |
last post by:
Hello everyone.
I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report).
I know it can be done by selecting :...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
|
by: Teri B |
last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course.
0ne-to-many. One course many roles.
Then I created a report based on the Course form and...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM)
Please note that the UK and Europe revert to winter time on...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
| |