Microsoft
Software
Hardware
Network
Question : SQL Server Query based on String Format
Hello, I am not sure how to search for this on Google so I thought I would try my luck here.
Is there a way in SQL Server to perform a query based on the format of a string?
What I am looking for is records that match the following format:
##-######-#, an actual value will look something like this 13-I08013-1.
Any help will be appreciated!
Robert
Answer : SQL Server Query based on String Format
I think this should work:
SELECT * FROM yourtable WHERE yourcolumn LIKE '__-______-_'
% represents any number of characters, _ represents a single character.
L
Random Solutions
Exchange 2010 outook email client setup
Does ArrayList or IList in C# = List in VB.NET?
How do I import a text file into MS Access which appears to have verticle and hortintals breaks
From Combo box in another form.. move to record in another form
forward an e-mail address in Exchange 2003 to an external address
Need to get the guaranteed HWND on startup of a form
How do I deactivated Windows 2008 R2 KMS Key?
How to install SQLServer Standard 2005
how to get single line answer for my query
Site Configured for use with ASP.NET 1.1.4322.573