FIX: ANSI Script from Profiler Cannot be Opened in Query Analyzer

Article translations Article translations
Article ID: 293345 - View products that this article applies to.
This article was previously published under Q293345
BUG #: 351185 (SHILOH_bugs)
Expand all | Collapse all

On This Page

SYMPTOMS

A SQL script that is saved from SQL Profiler in ANSI file format may not display correctly when opened in Query Analyzer.

RESOLUTION

To resolve this problem, obtain the latest service pack for SQL Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack

WORKAROUND

To work around this problem either:
  • Save the SQL script in UNICODE format from SQL Profiler.

    -or-
  • Use Notepad to open and save the SQL Script.

STATUS

Microsoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.

MORE INFORMATION

Steps to Reproduce Behavior

To reproduce the problem, use these steps:
  1. Start SQL Profiler.
  2. From the File menu, point to New, and then click Trace.
  3. Connect to a SQL Server server.
  4. Leave the default selections in the Trace Properties dialog box, and then click Run.
  5. Allow the trace to run long enough to gather several lines of information.
  6. From the File menu, click Save as..., and then enter SQL Script.
  7. In the file format drop-down combo box, click ANSI.
  8. Open the .sql file by using Query Analyzer. Only the first batch captured by the trace displays.

Properties

Article ID: 293345 - Last Review: November 6, 2003 - Revision: 3.2
APPLIES TO
  • Microsoft SQL Server 2000 Standard Edition
Keywords: 
kbbug kbfix kbsqlserv2000sp1fix KB293345

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com