Wednesday, June 18, 2008

"Although I feel perfectly comfortable in a set-based world writing SQL, it has traditionally been one of my least favorite areas of coding. Besides being relatively repetitive and tedious, at least when it comes to basic CRUD operations, sprocs are much more difficult to handle when it comes to source control, versioning, debugging, and unit testing."

and

"Regardless of the approach taken, I definitely no longer believe that sprocs should play any significant role in any application."

I couldn't agree more!  Read the full article: http://www.caffeinatedcoder.com/just-say-no-to-manual-crud/

 

Barry

blogs | c# | code | SQL Server
6/18/2008 11:57:40 AM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Wednesday, April 25, 2007

this has taken me a lttle while to work out today so this might save time for you guys....

The most likely use of precision sql data types is in the use of "Money".... This is not a valid .Net/C# datatype but maps to a "Decimal(19,4)".  Use the Decimal as the property datatype for moeny fields because it iis more precise, this can then be mapped using the following in NHibernate:

 

<property name="[Property Name]" type="Decimal(19,4)">

      <column name="[Column Name]" sql-type="Money" />

</property>

4/25/2007 11:35:40 AM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Tuesday, October 10, 2006
I found this interesting site and article: Transact-SQL Query SQL Server Performance Tuning Tips. 

It is kind of back to basics with regard to writing queries but I found it useful refreshing on some of these when looking at making changes to the reports queries.

http://www.sql-server-performance.com/transact_sql.asp

See also

http://www.sql-server-performance.com/vk_sql_best_practices.asp

for a coding standards style guide to queries.

10/10/2006 12:26:33 PM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  |  Trackback