 |
 | Runs on SQL 2008 But does not catch everything Vaccano | 14:41 25 Mar '09 |
|
 |
I ran this on a SQL 2008 Server and it caught stuff like a missing linked server, but it did not catch things that are new to SQL 2008 (like having a with when you do a HOLDLOCK).
Kind of odd because Parse Only should have caught that, even in SQL 2008.
|
|
|
|
 |
 | Connection string and SSPI Security context [modified] C.D. Hilton | 5:11 23 Sep '08 |
|
 |
I found the answer in the app.config file.
Cheers, -Chris
modified on Tuesday, September 23, 2008 11:55 AM
|
|
|
|
 |
 | Nice! msmits | 20:55 26 May '08 |
|
 |
Hi there,
I've just run this tool against a number of (2005) databases and it found a few issues I would not have found otherwise (they were procedures that may or may not be used . Very nice indeed. This sure beats opening each procedure, changing a character and executing it. Thanks for this tool.
Cheers, Michel
|
|
|
|
 |
|
 |
Hi Emil,
I'd like to suggest some (small) improvements: - When you call it without parameters, show the syntax (not just on /? parameter). - Document the necessary database rights. - Document what is checked (sp's, views, functions(?), ..). - Show the database in the output (useful when calling without database in the connection string). - Support checking multiple databases.
Thanks again, Michel
|
|
|
|
 |
|
 |
Makes sense - I recently had some time open up so I'll work on this in the next week or so. In the meantime, I added the ability to actually execute objects that the program thinks it's safe. The code may have issues with more rare datatypes (and possible SQL2K), but it caught a couple extra problems in our development database.
|
|
|
|
 |
 | Very useful/clever pap1964 | 21:35 6 May '08 |
|
 |
Thank both writers for the nice tool. The idea is simple, clever and effective!
Just as small correction for SQL Server 2000: schema is a reserved word, so it must be quoted when used as a column name, i.e. in GetProcedureListSql
getObjSql = "select name, OBJECTPROPERTY(id, 'ExecIsQuotedIdentOn') as quoted_ident_on, OBJECTPROPERTY(id, 'ExecIsAnsiNullsOn') as ansi_nulls_on, user_name(o.uid) \"schema\" from sysobjects o where type in ('P', 'V', 'FN') and category = 0";
|
|
|
|
 |
|
 |
As a note, I am getting errors related to the schema reserved word when running this version on a SQL Server 2000 database. I downloaded the latest version just yesterday. Works like a dream on SQL Server 2005 and saved me quite a bit of work validating stored procedures.
|
|
|
|
 |
|
 |
It was missing square brackets around the schema word. I found a SQL2k database to test on and the change has worked. I updated both the source code and exe to include the fix. A couple other things I fixed:
* help output now shows the "verbose" verbosity option that was part of the code but not shown to the user * There was an issue with the invalid object count incorrectly considering an object as invalid if it contained no text. This is now fixed
|
|
|
|
 |
 | [Message Removed] Mojtaba Vali | 21:31 2 May '08 |
|
|
 |
 | Horizontal Scrolling Chris Meech | 7:34 2 May '08 |
|
 |
If you could re-format to make the body of the article a little narrower, that would help out most readers. Thanks. 
[Edit] I just went back to check and see that it is the code section that you included. One of those lines is just a little too long, is all. [/Edit]
Chris Meech I am Canadian. [heard in a local bar]In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]Donate to help Conquer Cancer[ ^]
|
|
|
|
 |
|
 |
You mean not everyone has big wide screen monitors? 
Sure - done.
|
|
|
|
 |
|
 |
Thanks. That was quick. And thanks for the article. It's concise, explanatory and reads well.
Chris Meech I am Canadian. [heard in a local bar]In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]Donate to help Conquer Cancer[ ^]
|
|
|
|
 |