Showing posts with label session. Show all posts
Showing posts with label session. Show all posts

Wednesday, March 7, 2012

Local or global variable in an interaction session of the SQL analyzer

Hi,

I am new to SQL. Please bear with me and allow me to ask a dumb
question.

I am debugging a stored procedure (written in Trans-SQL), and I found
that the SQL analyzer that I use doesn't have a debugger. All I can
do it is execute a block of code and see what is going on in an
interaction seesion of the SQL analyzer. I would need to declare some
variable to hold values of the previous query in the interactive
session.

I understand that this can be easily done in a stored procedure via
the Declare command (e.g., Delcare @.order_no int). Is similar
functionality exists in an interaction session of the SQL analyzer?
If so, what is the command. Please advise.

Thank you very much for the help.

AlexAlex Cicco (lluum@.yahoo.com) writes:
> I am debugging a stored procedure (written in Trans-SQL), and I found
> that the SQL analyzer that I use doesn't have a debugger. All I can
> do it is execute a block of code and see what is going on in an
> interaction seesion of the SQL analyzer. I would need to declare some
> variable to hold values of the previous query in the interactive
> session.

I suppose that with SQL Analyzer you refer to Query Analyzer. If you are
using QA, you do indeed have an access to a debugger. Press F8 to get an
Object Browser Window, and then find the procedure. Right-click and at
the bottom of the context menu, voil!

> I understand that this can be easily done in a stored procedure via
> the Declare command (e.g., Delcare @.order_no int). Is similar
> functionality exists in an interaction session of the SQL analyzer?
> If so, what is the command. Please advise.

The same. For instance:

DECLARE @.x datetime
SET @.x = getdate()
SELECT @.x

--
Erland Sommarskog, SQL Server MVP, sommar@.algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp

Monday, February 20, 2012

LoadSnapshot: Item with session: ...

I have a application that uses the Report Viewer control. I ran across a
strange error executing a report.
What does this error message mean and how do you fix it?
w3wp!session!5!04/13/2007-22:38:55:: i INFO: LoadSnapshot: Item with
session: yzyevt45bsjnhi55g1tpso45, reportPath: , userName: MY_NET_1\DB not
found in the database
w3wp!library!5!04/13/2007-22:38:55:: e ERROR: Throwing
Microsoft.ReportingServices.Diagnostics.Utilities.ExecutionNotFoundException:
Execution 'yzyevt45bsjnhi55g1tpso45' cannot be found, ;
Info:
Microsoft.ReportingServices.Diagnostics.Utilities.ExecutionNotFoundException:
Execution 'yzyevt45bsjnhi55g1tpso45' cannot be foundHello Parker,
I would like to know this issue more detailed.
1. Did you use the ReportingViewer to connect to the Server report?
2. Have you applied the latest services pack 2 on the report server?
3. If you restart the IIS in the report server, did this issue still
occured?
4. What's the Application pool identity you use of the Application pool for
Reporting Services? If you change it to the Domain admin, did this issue
still occur?
Please let me know the result and so that I can provide further assistance.
Sincerely,
Wei Lu
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================(This posting is provided "AS IS", with no warranties, and confers no
rights.)|||Hi ,
How is everything going? Please feel free to let me know if you need any
assistance.
Sincerely,
Wei Lu
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================This posting is provided "AS IS" with no warranties, and confers no rights.|||Sorry I haven't had a chance to get back sooner.
1. Yes I did use the ReportViewer to connect to the Server report.
2. No, SP2 has not been applied. We are scheduling this for the weekend.
3. This only happened once so far. But there is not normal production use
yet.
4. We will change pool identity Domain admin this weekend.
So for now, we will make the changes and wait to see if it occurs again.
Thanks for the help.
"Wei Lu [MSFT]" wrote:
> Hello Parker,
> I would like to know this issue more detailed.
> 1. Did you use the ReportingViewer to connect to the Server report?
> 2. Have you applied the latest services pack 2 on the report server?
> 3. If you restart the IIS in the report server, did this issue still
> occured?
> 4. What's the Application pool identity you use of the Application pool for
> Reporting Services? If you change it to the Domain admin, did this issue
> still occur?
> Please let me know the result and so that I can provide further assistance.
> Sincerely,
> Wei Lu
> Microsoft Online Community Support
> ==================================================> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
> ications.
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
> http://msdn.microsoft.com/subscriptions/support/default.aspx.
> ==================================================> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>|||Hi ,
How is everything going? Please feel free to let me know if you need any
assistance.
Sincerely,
Wei Lu
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================This posting is provided "AS IS" with no warranties, and confers no rights.|||Wei Lu,
I am seeing this same behavior in a completely different environment.
1) application that uses the Report Viewer connect to the Server report.
2) SP2 is applied
3) I restarted IIS on the RS server, but it did not correct the issue. I
also restarted the RS server, but the issue continues.
4) I don't currently have the capability to adjust the Application pool
identity, but am trying to get that changed now.
Do you have any further information on what might be causing this error?
thanks.
"Wei Lu [MSFT]" wrote:
> Hi ,
> How is everything going? Please feel free to let me know if you need any
> assistance.
> Sincerely,
> Wei Lu
> Microsoft Online Community Support
> ==================================================> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> ==================================================> This posting is provided "AS IS" with no warranties, and confers no rights.
>|||Hi Wei Lu --
I too am experiencing the Execution 'xxx' cannot be found error. I am
using ReportViewer, with SP2 is installed. This is a local RS install
using the Network account on XP SP2.
The problem is very intermittent -- occurred 3 times today. Twice when
setting report parameters and clicking 'View Report', another when
clicking the double-arrows to show/hide the parameter area. There was
no length of inactivity (some users reported problems after 10 minutes
of inactivity -- I think this is a different issue).
Any help would be appreciated!
Thanks,
Chris