|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Thursday, December 10, 2009 4:18 PM
Points: 1,287,
Visits: 11
|
|
Chris,
Definitely an interesting read. I'll look forward to your future articles on the CLR. In the meantime, I was just curious where you came up with that expression to validate an email address. Did you code that yourself, or is there a tool / function that will help you generate the validation expression?
SET @regex = N'^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$'
Jason
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 3:16 PM
Points: 2,749,
Visits: 1,405
|
|
I find that the RegEx coach is a useful tool for checking RegEx.
Also try http://www.regexlib.com/
The following evaluates UK dates and takes account of leap years etc.
^(? ?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(? ?:29|30)(\/|-|\.)(?:0?[1,3-9]|1[0-2])\2))(? ?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)0?2\3(? ? ?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(? ?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\/|-|\.)(? ?:0?[1-9])|(?:1[0-2]))\4(? ?:1[6-9]|[2-9]\d)?\d{2})$
LinkedIn Profile
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, October 18, 2005 9:03 AM
Points: 8,
Visits: 1
|
|
MY biggest concern is for a potential Database engine performance hit, and will current SQL Server optimum memory requirements be increased - if so, how much? Also, will SQL Server 2005 install on systems that don't already have the .NET framework installed? J. Chris Gibson
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Thursday, December 10, 2009 4:18 PM
Points: 1,287,
Visits: 11
|
|
David,
Thanks for the URL! That will save on the typing!
Jason
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 3:16 PM
Points: 2,749,
Visits: 1,405
|
|
|
|
|
|
UDP Broadcaster
      
Group: General Forum Members
Last Login: Saturday, February 28, 2009 6:51 AM
Points: 1,489,
Visits: 7
|
|
Very true, and that is one of the reasons I see why it is important for more or less every DBA to at least have a basic understanding of what CLR Integration is and how it works. The code itself is normally not that difficult to read, so if it is just a rev iew to allow the code in the database most should get by. Writing it is of course more difficult. I think one of the concerns will be just how to look at the code, using Visual Studio (or other tool) etc.
Hopefully we will see developers and DBAs working closer to solve these issues.
-- Chris Hedgate http://www.hedgate.net/ Contributor to the Best of SQL Server Central volumes Articles: http://www.sqlservercentral.com/columnists/chedgate/
|
|
|
|
|
UDP Broadcaster
      
Group: General Forum Members
Last Login: Saturday, February 28, 2009 6:51 AM
Points: 1,489,
Visits: 7
|
|
|
|
|
|
UDP Broadcaster
      
Group: General Forum Members
Last Login: Saturday, February 28, 2009 6:51 AM
Points: 1,489,
Visits: 7
|
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 8:57 AM
Points: 963,
Visits: 346
|
|
My opinion is that it will be beneficial to have a "procedural language" available to perform functions that TSQL is not as adept at. That is available today on the client side, obviously, but not quite so close to the data itself. This will most likely create opportunities to make faster data access available to the other application tiers. Now, I'm not ready to go all chicken little and claim that C# will ruin my database, because it is not the best tool for getting data in and out of a database *in the general case*. I don't believe that the presentation tier guys are going to ask for CLR in the database because they are used to having the recordsets handed to them ready-to-go. What I do see is that I can find a better (faster) way to get them data in very specialized cases and for that I shall be eternally grateful. We'll see what happens... jg
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 12:28 AM
Points: 1,413,
Visits: 659
|
|
I entirely agree. In fact, I've just returned from a T-SQL course with Learning Tree and so am very pro T-SQL at the moment. I think in the interim it'll be a case of finding my (and everybody else's) feet to discover which procedures are going to perform better depending on what language they're written in.
|
|
|
|