A Love Hate Affair with User Defined Types

Monday Jul 23rd 2007 by DatabaseJournal.com Staff

Many new DBAs think that User-defined types are a very cool feature in SQL Server when they first encounter them. However many experienced DBAs soon realize that UDTs can be a pain to work with and longtime SQL Server guru David Poole discusses his experiences.

[From SQL Server Central]

I have a love hate affair with user defined types. I was first exposed to their benefits when I went on the original Microsoft SQL 6.5 database design course. My first reaction was "WOW, this is a really cool idea" but now I am much more circumspect in how I use them.

Their advantages are immediately apparent

  • They greatly simplify the creation of the database schema
  • They aid in standardization across the schema.

When I was first learning about UDTs their disadvantages were not discussed and it was only through trial and error that their limitations became apparent.

The article continues at http://www.sqlservercentral.com/columnists/dpoole/3104.asp

Mobile Site | Full Site