Viewing 15 posts - 391 through 405 (of 429 total)
I know, sorry about that. Got distracted thinking about a more probable use for it. I did write something with parsename, which is very helpful and probably smarter than messing...
April 22, 2013 at 4:25 pm
Well, this gets me the very end of an email. Not exactly what I was looking for. Oh well.
with rt as (
select right(email, len(email) - charindex('@', email)) as [rtemail]
from...
April 22, 2013 at 3:18 pm
Sean Lange (4/22/2013)
This will still work as long as there aren't more than 3 '.' in your value.So things like 'http://www.maps.google.com' will work fine.
But 'http://www.mysubdomain.yourdomain.anotherdomain.com' will return NULL.
That is pretty...
April 22, 2013 at 2:49 pm
I don't have a way to test this, but I had to do something similar with DOB matching on names between two tables recently, and used something like:
select h.f_name, h.m_initial,...
April 22, 2013 at 9:25 am
If anyone is interested, I wrote a pretty useful email validation case statement. I know that I probably missed some domains, and I didn't touch two character country domains, but...
April 21, 2013 at 9:52 pm
Hot damn. Thank you. Got it working by adding this section:
SET @strCount=0
SET @Count =1
Start6: --Label
SELECT @strFind=SUBSTRING(@email,@Count,2)
IF @strFind LIKE '%.@%'
OR @strFind LIKE '%@.%'
BEGIN
SET @chkEmail = 106
GOTO RR
END
SET @count=@Count+1
IF @Count <= len(@email)
BEGIN...
April 19, 2013 at 9:09 am
I think the question is if there's a way to have something other than NULL next to the rollup count? That's actually pretty interesting, if possible.
id ...
April 18, 2013 at 12:22 pm
That's really cool. Never would have guessed that would work. I had a fairly similar query based on employee size and SIC codes, that I just changed up a bit...
April 15, 2013 at 3:52 pm
dhananjay.nagarkar (4/14/2013)
Here's what I did-
created 3 temp tables with the filelds I need for each with same order, data type.
then UNION the 3 selects.
then...
April 15, 2013 at 3:32 pm
Sean Lange (4/15/2013)
something like this might help you along.
declare @ScalarVal...
April 15, 2013 at 2:02 pm
Sean Lange (4/15/2013)
erikd (4/15/2013)
Sean Lange (4/15/2013)
erikd (4/15/2013)
Really?! There's not an ISALPHA or anything to test for woogy symbols? That's... :unsure:
ISAPLHA?? What would you be testing for? Not exactly sure what...
April 15, 2013 at 1:42 pm
Sean Lange (4/15/2013)
erikd (4/15/2013)
Really?! There's not an ISALPHA or anything to test for woogy symbols? That's... :unsure:
ISAPLHA?? What would you be testing for? Not exactly sure what "woogy symbols" are....
April 15, 2013 at 1:16 pm
Really?! There's not an ISALPHA or anything to test for woogy symbols? That's... :unsure:
April 15, 2013 at 12:51 pm
It's going to be a few drinks before I attempt that.
:blink:
April 12, 2013 at 5:48 pm
opc.three (4/12/2013)
SET @sql = 'EXEC master.sys.xp_cmdshell ' +'''COPY \\server\SurveyComputing\Sample\SentToSPSS\' + @data_file +
'+\\server\SurveyComputing\Sample\SentToSPSS\' + @file_name +
' \\server\SurveyComputing\Sample\SentToSPSS\'...
April 12, 2013 at 3:07 pm
Viewing 15 posts - 391 through 405 (of 429 total)