database

You are currently browsing the articles from TechToolBlog matching the category database.

SQL Formatter

Our DBA writes some mean SQL code, I can write some SQL that works :).  It’s not my strongest suit but certainly not my weakest so I handle most of my sql statements myself.  However, when I need his help I cringe at sending him my sql code because he freaks when he sees it.  To me SQL is a string variable, I use to not care how pretty the formatting is, what tab setting to use, when to carriage return a FROM and so on.  Well, he cares and makes sure I know about it.  I totally understand why but for me it was too time consuming to make sure I format something that in the end is a string variable…. Until I found SQLinForm.  I am now a religious sql formatter, because not only does SQLinForm does it for me but it also creates c#, vb.net, php, and whole slew of other string variables.  My SQL has never been prettier and I can finally ship sql to my dba.

 

image

Written by Tim on July 9th, 2007 with 12 comments.
Read more articles on database and tools.



Stored Procedures vs Ad Hoc SQL

Stored procedures debate from my point of view:

Pros of using Stored Procedures

Cons of using Stored Procedures

I’m not entirely sure which side of the fence I lie.  Right now I’m more comfortable with not using stored procedures because of the maintenance factor.  I really think LINQ is going to make stored procedures deprecated.

.NET specific - Here is a nice line of code to keep around when working with stored procedures that I end up using when getting the the dreaded “Parameters do not match” error.  You can put this on your datasource Inserting Event.

For x As Integer = 0 To e.Command.Parameters.Count - 1

Trace.Write(e.Command.Parameters(x).ParameterName)

Trace.Write(e.Command.Parameters(x).Value)

Next

Written by Tim on June 1st, 2007 with 6 comments.
Read more articles on asp.net and database.





Navicat Review

I do a good amount of work in MySQL so that I need a good database admin tool.  I come from a Microsoft Enterprise Manager/Management Studio background so much of this review compares to that as a benchmark.

The Good

The Bad

 

Overall Navicat is the most feature rich MySQL tool on the market (I’ve tried ~4 so far). Pricing is at $139, well within reason. Besides a reworking of the query window, Navicat is a finely tuned.  2 TechToolBlog thumbs up.

Written by Tim on April 26th, 2007 with 18 comments.
Read more articles on database.

Scripting a MS SQL Database

One thing I love about Navicat is the ability to give me the raw SQL in a backup, something that Microsoft Management Studio lacks big time. I found this great Code Project article/application that does this perfectly.

http://www.codeproject.com/dotnet/ScriptDatabase.asp

Written by Tim on January 12th, 2007 with 1 comment.
Read more articles on database.

Famous Homemade Soups