Please let me know, if anyone knows it, a code static analysis tool for Sybase database (stored procedures, functions, triggers).
Related
While going through some online references on how to debug MySQL stored procedures, found that MySQL does not provide facilities for debugging stored procedures.
Can anyone educate me what are other databases which allows to debug stored procedures?
Imagine I am creating a Winforms app, using WCF I connect the same to SQL Server. I would be creating stored procedures in SQL Server.
My scenario here is as I release updates for my app over time...like ver 1.0, ver 2.0...v.n...
I might then need to modify my stored procedures. But I can't do that as it might affect users using the earlier version of the app. Hence I might need to create new stored procedures for the newer versions over time.
So I would want to know what is the best naming convention for my stored procedures? Can I name them something like sp_name_1_0, sp_name_2_0 and so on? It would have been much easier if there was some kind of grouping possible for stored procedures in SQL Server like folders...
Let me know what the best way is!
Thanks,
Sarin Gopalan
I have a cline that is looking to convert an Ingres Database into SQL Server 2008. WE can easily convert the tables but there are a large number of views and procedures that are complex. Does anyone know of a method or tool that can convert these procedures etc without a manual process of doing so.
Thanks
Lee Tedstone.
Lee, I am quite sure there is no such migration tool available at the moment (one that can translate Ingres stored procedures to adequate SQL server ones). Such tool is not trivial to do - one needs to code a language-to-language translator in order to accomplish this.
However, there is a nice (Ingres) project called "Idiom" - http://community.ingres.com/wiki/Idiom - which can give you some clue how to write such translator.
Idiom is used in the Ingres Migration ToolSet project - http://community.ingres.com/wiki/IngresMigrationToolSet - which successfully translates Oracle and MySQL procedures to Ingres.
I´m looking for one tool capable to analyse an existing db model (an Oracle schema in my setup) building a report with quality metrics, potential causes of problems (circular constraints, for example), etc.
We have this kind of features for Java code using tools like PMD or checkstyle.
Does anyone know about some tool like this for database structures?
in quest software's TOAD there's a tool called code expert that does a lot of checks on stored code eg. views, stored procedures etc. maybee that can help
How do you manage revisions of stored procedures?
We have a BI solution on SQL Server 2005 with hundreds of stored procedures.
What would be a good way to get these into Subversion? What are your recommended tools to script stored procedures to files?
There are doubtless a bunch of off-the-shelf products you could buy (I think a few RedGate tools might come in handy here), as well as Visual Studio Team Suite - Database Edition.
In light of purchasing something, why not consider using SQL Management Objects (SMO)?
I've written a couple of utilities which generate T-SQL scripts (using the Scripter class) which produces the same scripts you get from generating scripts through the SQL Server Management Studio (it uses the same functionality).
You could integrate such a utility into a build script/build process which would allow you to generate scripts and then version & check them into a source repository. Plus, you can batch the scripts into a single file (if desired) which beats maintaining hundreds of individual files.
I wrote a blog entry about this approach a while back.
Check out more on the SMO class Scripter
Here's a few more entries which might be useful:
http://www.sqlteam.com/article/scripting-database-objects-using-smo-updated
http://sqlblog.com/blogs/ben_miller/archive/2007/10/03/table-scripting-with-smo-part-1.aspx
See here and here for a start.
Please check out here What is the best way to version control my SQL server stored procedures?. Might help you identify couple of solutions to this issue.
I have previously used a Visual Studio Database Project to manage create table scripts, stored procedure scripts etc. I'm fairly sure you could then use subversion to manage these files in the same way as any Visual Studio project.
I used the built in functionality for scripting the procs, but i'm sure Redgate would have some tasty tools for that.