Viewing 15 posts - 4,651 through 4,665 (of 5,588 total)
Well, this doesn't use RegEx (just plain ole T-SQL), but it accomplishes what you're wanting:
select * from #temp where [text] like '%[0-9]%'
Since you want to return a 1/0 for the...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 22, 2010 at 9:33 am
GilaMonster (3/19/2010)
No, it doesn't get quite that hot here. 6 hours drive north (Messina), it does.
For those of us in the Northern Hemisphere, that just sounds so wrong!
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 19, 2010 at 10:12 pm
ncodner (3/19/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 19, 2010 at 2:04 pm
sandip.vs (3/18/2010)
I want to delete 2 million records from my table(based upon a condition)....what is the easiest way to do???
Assuming that you read Stefan's post, and you need to perform...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 18, 2010 at 11:04 am
steveb. (3/18/2010)
from your code provided it would look something like this;
UPDATE Leas
SET Leas.amount = Cmrecc.amount
FROM...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 18, 2010 at 10:55 am
Duplicate post. Use http://www.sqlservercentral.com/Forums/Topic885560-1292-1.aspx discussion.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 18, 2010 at 9:16 am
Does this do it for you?
declare @test-2 varchar(50),
@num int
set @test-2 = '000150000-'
set @num = left(@test,DataLength(@test)-1) * case when right(@test,1) = '-' then...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 18, 2010 at 9:15 am
Roy Ernest (3/18/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 18, 2010 at 8:46 am
Paul White (3/17/2010)
WayneS (3/17/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 17, 2010 at 6:57 pm
This will list a few things...
http://www.lmgtfy.com/?q=sql+server+2008+what%27s+new
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 17, 2010 at 7:21 am
Paul White (3/16/2010)
Jeff Moden (3/16/2010)
I assume that by "explicit date" you mean something like '1900-01-01'... and that's not a date either... that's a string that looks like a date. 😛
Aside...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 17, 2010 at 5:24 am
Have you tried transforming it to an int, and then back to a string? That seems like it should do what you're trying to accomplish.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 16, 2010 at 2:40 pm
tstaker (3/16/2010)
Grant Fritchey (3/16/2010)
CirquedeSQLeil (3/16/2010)
Roy Ernest (3/16/2010)
CirquedeSQLeil (3/16/2010)
Roy Ernest (3/16/2010)
I got my $500 yesterday. If I can write an article there, anyone here can write it for sure. 🙂
You wrote...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 16, 2010 at 2:35 pm
Alvin Ramard (3/16/2010)
Mesa be back a shortly.
No, please not!
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 16, 2010 at 7:32 am
Alvin Ramard (3/15/2010)
GilaMonster (3/15/2010)
CirquedeSQLeil (3/15/2010)
Steve, we really need a "devil emoticon"I need an angel. For all those 'looks around innocently' type comments
How about a "knocking head against the wall" one...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 15, 2010 at 3:54 pm
Viewing 15 posts - 4,651 through 4,665 (of 5,588 total)