"Bob Barrows" wrote in message news:jntmg4$5bh$(E-Mail Removed)...
>> And as a side note anyone here ever use SQL server and write code for
>> those store procedures?
>>
>> No debugger, and it is a rather lousy language.
>Obsolete information. There absolutely is a debugger now, starting in SQL
>2005, when using VS. In SQL 2008, the debugger became available in SSMS
>when it was made clear to MS that developers weren't going to switch to a
>pardigm of using VS to design and SSMS to manage.And in prior versions of
>SS, third-party applications such as RapidSQL offered debuggers.
Thanks for the heads up. I always encourage people to correct such
statements.
I should have really said I was talking about SSMS (SQL Server Management
Studio).
However, at the end of the day my point stands that for years and years with
SSMS we did not have a "easy" debugging option, and having to adopt Visual
Studio not such a simple nor light solution either.
However, I was not aware that SSMS now can debug t-sql code. Regardless, as
you point out there are options in this area now.
>For a "lousy" language, it's incredible how much can be done with it. Yeah,
>some things are easier in VBA (error-handling for one, but even VBA sucks
>at that - google for an article called "On Error GOTO Hell"
Yes, I do agree. t-sql is quite incredible.
So perhaps lousy not the best term. What I mean to say is that T-sql is
still what I would call a weaker "programming" language.
However, t-sql is very much a procedural version of SQL and t-sql is rather
at home using SQL.
So this mix of procedural ability with the power of SQL is not something to
scoff at or laugh at. And you can write scalar functions (that simply a
user defined function that can be used in any sql expression just like we
can with VBA). I often had to replace some custom VBA functions I was using
in my Access SQL to now run server side. So far I always been able to
reproduce those custom VBA functions used in my Access SQL with custom "UDF"
(called scalar) functions in t-sql and this ability has helped huge in
migration projects.
In fact combining the non procedural ability of SQL with all its amazing
power and THEN adding even a limited procedural ability results in a VERY
powerful setup. And on top of this you can write UDF functions in t-sql
also.
To be fair, most store procedure code should not be that large of a chunk of
code anyway.
And to be fair such chunks of code hardly ever need to be that long and
winding due to having SQL at one's disposal.
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
(E-Mail Removed)