Viewing 15 posts - 931 through 945 (of 2,462 total)
Ed Wagner (3/11/2016)
Alan, I stand corrected. I've never seen it done this way. I learned something new, so thank you.
Sorry for the late reply Ed (I was away...
-- Itzik Ben-Gan 2001
March 21, 2016 at 9:01 am
Jack Corbett (3/21/2016)
Alan.B (3/21/2016)
-- Itzik Ben-Gan 2001
March 21, 2016 at 8:44 am
Quick question: I got the standard email saying that someone replied to a comment on one of the forum threads but when I go to that thread the comment is...
-- Itzik Ben-Gan 2001
March 21, 2016 at 8:07 am
quagmired (3/20/2016)
-- Itzik Ben-Gan 2001
March 20, 2016 at 10:04 pm
quagmired (3/17/2016)
Jeff Moden (3/17/2016)
quagmired (3/17/2016)
My personal favorite is, given the same accuracy, which ever is the fastest and least resource intensive. That's usually not REGEX as called from SQL...
-- Itzik Ben-Gan 2001
March 20, 2016 at 5:36 pm
Steve Jones - SSC Editor (3/10/2016)
-- Itzik Ben-Gan 2001
March 20, 2016 at 4:35 pm
IF OBJECT_ID('tempdb..#yourtable') IS NOT NULL DROP TABLE #yourtable;
CREATE TABLE #yourtable
(
c1 varchar(10) NOT NULL,
c2 varchar(10) NOT NULL,
c3 varchar(10) NOT NULL,
c4...
-- Itzik Ben-Gan 2001
March 11, 2016 at 9:07 pm
You'll need to add a CHECK Constraint. The code will look like:
ALTER TABLE <yourtable>
ADD CONSTRAINT ck_constraintname
CHECK (column <> '')
-- Itzik Ben-Gan 2001
March 11, 2016 at 11:01 am
Try
WHERE Item LIKE '%S' OR Item LIKE '%B'
-- Itzik Ben-Gan 2001
March 11, 2016 at 10:06 am
Tell us what you're trying to do and I but someone can come up with a solution which that requires less code and performs much better. All that CASTing and...
-- Itzik Ben-Gan 2001
March 10, 2016 at 9:04 am
Good article Steve. I think you under sold the power of PATINDEX...
CHARINDEX can start at a certain position in the string while PATINDEX can take wildcards. In this simplistic case,...
-- Itzik Ben-Gan 2001
March 10, 2016 at 8:54 am
There's advantages to mastering Microsoft and advantages to diversifying your skill set. The great thing is that data is hot so, as long as your skills are growing, your career...
-- Itzik Ben-Gan 2001
March 9, 2016 at 4:47 pm
mciesiensky (3/8/2016)
Now to convert that to...
-- Itzik Ben-Gan 2001
March 8, 2016 at 9:19 pm
You can also create an indexed view.
-- Itzik Ben-Gan 2001
March 8, 2016 at 6:40 pm
Really great work Hugo.
-- Itzik Ben-Gan 2001
March 8, 2016 at 6:33 pm
Viewing 15 posts - 931 through 945 (of 2,462 total)