Site sponsored by: Idera Try Idera’s new SQL admin toolset
SQL Server Performance

  • Home
  • Articles
  • Forums
  • Tips
  • Quiz
  • FAQ's
  • Blogs
  • Software
  • Books
  • About Us
RSS Feeds
Sign in | Join


Product Reviews

All Reviews
Audit Tools
Backup Tools
Change Management Tools
Clustering Tools
Coding Tools
Design Tools
Diff / Compare Tools
Documentation Tools
Job Management Tools
Log Recovery Tools
Monitoring Tools
Remote Access Tools
Reporting Tools
Security Tools
Testing Tools

Write for Us

Share you SQL Server knowledge with others and raise your profile in the community More...
Latest Articles

Resource Governor in SQL Server 2008
Tweaks in SQL Server Reporting Services
Configure Filestream in SQL Server 2008
Capture DDL Changes using Change Data Capture with SQL Server 2008 ...

More     
 
Latest FAQ's

SQL Server Reporting Server (SSRS) service is failing to start ...
Cannot Start SQL Server Service
Users are able to connect to report manager but not able ...
Errors when SQL Server Snapshot Replication is Running

More     
   
Latest Software Reviews

Spotlight on ApexSQL Doc 2008
ApexSQL Enforce
Embarcadero Change Manager
SQL Server DBA Dashboard

More     

reviews >> coding tools >> Free Yourself from Writing Common Functions with ...

Free Yourself from Writing Common Functions with AGS SQL Server 2005 Utilities

By : Dinesh Asanka
May 31, 2006

Software Spotlight

Product:

AGS SQL Server Utilities

Version:

1.0.2149.26346

Publisher:

GeckoWare Australia*

Price:

$49.99

Developers play an important role in today's IT environment. However, most of these developers spend valuable time developing common functions, like checking the leap year and reading or writing to the event log. AGS SQL Server 2005 Utilities can provide some of the common functions you need in .Net for SQL Server 2005, without you having to develop them yourself.



Installation and Configuration

No installation is needed to use AGS SQL Server 2005 Utilities. You just download the zipped file and extract it. A T-SQL script is available within the Help file, which you'll need to execute.

You'll need to modify the DLL path in the script. After running the script, you need to enable "clr enabled" by running the sp_configure stored procedure.

(sp_configure 'clr enabled' , 1)

After running the script, one stored procedure and twenty seven functions will be created in the master database.


Figure 1. List of functions installed by the AGE SQL Server 2005 Utility.

Instead of having to configure the tool manually, I would like to see the application use aa installation program for the install, although the manual installation is very easy.



Product Overview

The functions can be divided into nine categories.

Compress Functions

Compress functions are useful for users to compress values. Two compress methods, Deflate and GZip are available with this utility, as well as the respective decompress methods.

Function

Purpose

AGS_Deflate_Compress

Compresses an input value using the Deflate (RFC 1951) algorithm.

AGS_Deflate_DeCompress

De-compresses an input buffer which has been compressed by AGS_Deflate_Compress using the Deflate (RFC 1951) algorithm.

AGS_Gzip_Compress

Compresses an input value using the Gzip (RFC 1952) algorithm.

AGS_Gzip_DeCompress

De-compresses an input buffer which has been compressed by AGS_Gzip_Compress using the Deflate (RFC 1952) algorithm.

Date Functions

Leap year checking is the only date function that is available with this utility. I believe more functions in this category could be added to make it more useful.

Function

Purpose

AGS_IsLeapYear

Returns true or false to indicate if the year passed is a leap year.

Encryption Functions

Encryption is the most important function that developers use due to security reasons. This utility provides the Hash and Rijndael encryption algorithms. The Rijndael encryption algorithm is the most common used type.

Function

Purpose

AGS_Hash

Hashes an input value using the Hash type selected.

AGS_Rijndael_Encrypt

Encrypts an input value using the Rijndael Encryption algorithm.

AGS_Rijndael_DeEncrypt

Decrypts an input value using the Rijndael Encryption algorithm.

Event Log Functions

Most of you will need to read and write to the event log. Those functions also provided with this utility. Because the readfromeventlog function returns values in table format, you can use WHERE, GROUP, and ORDER commands to suit your requirements.


Figure 2. Values returned in table format by readtfromeventlog.


    Next Page>>    








Home | Peformance Articles | Audit Articles | Business Intelligence Articles | Clustering Articles | Developer Articles | Reporting Services Articles | DBA Articles | ASP.NET / ADO.NET Articles | DBA FAQ's | Developer Peformance FAQ's | DBA Peformance FAQ's | Developer FAQ's | Clustering FAQ's | Error Messages | Audit Tool Reviews | Backup Tool Reviews | Coding Tool Reviews | Compare Tool Reviews | Documentation Tool Reviews | Design Tool Reviews | Monitoring Tool Reviews | Log Tool Reviews | Reporting Tool Reviews | Clustering Tool Reviews | Security Tool Reviews | Change Management Tool Reviews | Remote Access Tool Reviews | Book Reviews | Security Tool Reviews | QDPMA Performance Tuning | ADO.NET / ASP.NET | Administration | Analysis/OLAP Services | Application Development | Configuration | Components | ETL | Hardware | High Availability | Hints | Index | Misc | Operating Systems | Performance Tuning | Replication | T-SQL | Views


              © 1999-2008 by T10 Media. All rights reserved