Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

Getting the Most Out of SQL Server 2000's Query Analyzer, Part II Expand / Collapse
Author
Message
Posted Sunday, March 3, 2002 12:00 AM


Keeper of the Duck

Keeper of the Duck

Group: Moderators
Last Login: Friday, September 26, 2014 7:52 AM
Points: 6,624, Visits: 1,873
Comments posted to this topic are about the content posted at http://www.sqlservercentral.com/columnists/bkelley/qa2k_2_1.asp

K. Brian Kelley, CISA, MCSE, Security+, MVP - SQL Server
Regular Columnist (Security), SQLServerCentral.com
Author of Introduction to SQL Server: Basic Skills for Any SQL Server User
| Professional Development blog | Technical Blog | LinkedIn | Twitter
Post #2858
Posted Monday, March 4, 2002 5:53 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, April 15, 2004 11:12 AM
Points: 1, Visits: 1
Brian,

What permissions are required (both on SQL Server and for NT) to allow a developer to debug a stored procedure (for both SQL7 and SQL2K)?

Thanks
Chad



Post #29167
Posted Wednesday, March 6, 2002 5:17 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, February 21, 2013 8:36 AM
Points: 5, Visits: 9
I had not noticed the debugger. Thank you.
Have you noticed the ability to save while developing a query in the enterprise manager? I did, but the save does not prompt for a file name? Perhaps it is for future use.

Lon



Post #29168
Posted Wednesday, March 6, 2002 11:09 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Today @ 7:17 AM
Points: 31,080, Visits: 15,526
save always works. I use this every day in development. It defaults to "untitledxx", but there is the ability to change that. Have you tried "save as"?

Steve Jones
steve@dkranch.net







Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #29169
Posted Saturday, March 16, 2002 8:26 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, May 15, 2012 3:36 AM
Points: 7, Visits: 6
Brian,

Great Article.
About the debugger,I have been unable to run in anywhere but directly on the query analyzer on the server. MSDN mentioned something about a bug. Have you experienced this?

Lou




Post #29170
Posted Saturday, March 16, 2002 12:07 PM


Keeper of the Duck

Keeper of the Duck

Group: Moderators
Last Login: Friday, September 26, 2014 7:52 AM
Points: 6,624, Visits: 1,873
Hi Lou,

I have not. I am in the process of trying to research it. A friend of mine is also having issues (chad) and we're trying to nail down the exact permissions and settings required for the various SQL Server versions. One thing we have noticed is there is a definite difference between 7 and 2000.

K. Brian Kelley
bkelley@sqlservercentral.com
http://www.sqlservercentral.com/columnists/bkelley/


K. Brian Kelley, CISA, MCSE, Security+, MVP - SQL Server
Regular Columnist (Security), SQLServerCentral.com
Author of Introduction to SQL Server: Basic Skills for Any SQL Server User
| Professional Development blog | Technical Blog | LinkedIn | Twitter
Post #29171
Posted Wednesday, April 24, 2002 5:07 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, May 15, 2002 12:00 AM
Points: 2, Visits: 1
Hi Brian Kelley,

The article is very informative. I tried the dubugging process in my server, it is sql2000 server which runs under the Win2k OS. When i try to debug the sp it says "Sp debugging may not work properly if you log on as 'Local System account' while SQL Server is configured to run as a service. You can open Event Viwer to see details
Do you wish to continue ? " and if i continues with this it executes and gives the result of the procedure and i can not able to start the debugging process after placing the breakpoint, it just executes the procedure and gives the result of the same . I was not able to use the debug commands (sep in, step out etc.,). What could be the problem. Looking forward for your reply.

Regards,
Lingasamy K



Post #29172
Posted Thursday, December 12, 2002 8:35 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Monday, March 12, 2007 10:17 AM
Points: 277, Visits: 1
Brian take a look at this article. I was having problems until I did this :

http://support.microsoft.com/default.aspx?scid=KB;en-us;270061&

Tim C.
//Will write code for food



Tim C //Will code for food
Post #29173
Posted Monday, January 3, 2005 6:05 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Thursday, September 4, 2014 9:46 AM
Points: 295, Visits: 280

Excellent. I hope there will be more information about the templates in future articles. They are a fantastic tool for encouraging some naming and development standards. I know that is a hot topic around here



Bryant E. Byrd, BSSE MCDBA MCAD
Business Intelligence Administrator
MSBI Administration Blog
Post #153254
Posted Monday, January 3, 2005 11:35 AM


SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Tuesday, September 9, 2014 5:00 PM
Points: 91, Visits: 195

I keep finding more gems in this great tool, Query Analyzer. Here are two additional tips:

1. With the default settings, using the Object Browser for scripting creates what is for me a lot of "noise" in the script. For example, scripting a table will give you something like:

CREATE TABLE [Region] (
 [RegionID] [int] NOT NULL ,
 [RegionDescription] [nchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
 CONSTRAINT [PK_Region] PRIMARY KEY  NONCLUSTERED
 (
  [RegionID]
   ON [PRIMARY]
) ON [PRIMARY]
GO

All those brackets and the collation clauses get in the way for me. Fortunately, you can control a lot of this by going to Tools/Options and clicking on the Script tab.  I usually pick "None" as Identifier delimeter and check the "Do not script collation clause ...." option. With these two settings changed, I get the following (in my opinion, cleaner) result:

CREATE TABLE Region (
 RegionID int NOT NULL ,
 RegionDescription nchar (50) NOT NULL ,
 CONSTRAINT PK_Region PRIMARY KEY  NONCLUSTERED
 (
  RegionID
   ON PRIMARY
) ON PRIMARY
GO

2. Got a stored procedure that has lots of parameters that you want to test? Just right-click on it in the Object Browser and select "Open". You get a nice little "Execute Procedure" dialog box that lists all the parameters, shows their datatypes, and allows you to enter parameter values. Then click the "Execute" button to run the stored procedure. Pretty slick!

A very good article, Brian - good on ya for spreading the word about the many features in this great freebee from Microsoft.

Best regards,
SteveR

 




Post #153311
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse