|
|
|
Keeper of the Duck
Group: Moderators
Last Login: Today @ 7:47 AM
Points: 6,584,
Visits: 1,796
|
|
|
|
|
|
Forum 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
|
|
|
|
|
Forum 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
|
|
|
|
|
SSC-Dedicated
           
Group: Administrators
Last Login: Today @ 5:09 AM
Points: 31,526,
Visits: 13,864
|
|
|
|
|
|
Forum 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
|
|
|
|
|
Keeper of the Duck
Group: Moderators
Last Login: Today @ 7:47 AM
Points: 6,584,
Visits: 1,796
|
|
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
|
|
|
|
|
Forum 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
|
|
|
|
|
SSC 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
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Tuesday, May 07, 2013 10:43 AM
Points: 287,
Visits: 213
|
|
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
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Monday, February 18, 2013 1:26 PM
Points: 91,
Visits: 176
|
|
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
|
|
|
|