Viewing 15 posts - 1,036 through 1,050 (of 2,462 total)
Expanding on what Eirikur put together, here's how you could do it against a table (note my comments).
-- Sample data
DECLARE @table TABLE(stringID int identity primary key, stringTxt NVARCHAR(4000));
INSERT @table(stringTxt)...
-- Itzik Ben-Gan 2001
January 21, 2016 at 1:24 pm
I am also a fan of Redgate, never had any problems with it (I also don't work for Redgate). It's been awhile since I last used it but ApexSQL Backup...
-- Itzik Ben-Gan 2001
January 21, 2016 at 12:40 pm
Eirikur Eiriksson (1/20/2016)
Alan.B (1/20/2016)
Eirikur Eiriksson (1/20/2016)
Alvin Ramard (1/20/2016)
Ed Wagner (1/20/2016)
Steve Jones - SSC Editor (1/20/2016)
-- Itzik Ben-Gan 2001
January 20, 2016 at 5:07 pm
Eirikur Eiriksson (1/20/2016)
Alvin Ramard (1/20/2016)
Ed Wagner (1/20/2016)
Steve Jones - SSC Editor (1/20/2016)
-- Itzik Ben-Gan 2001
January 20, 2016 at 12:54 pm
I do not understand at all why I get a duplicate key error, when I am modifying data in the same record previously searched, not adding a new one.
That's an...
-- Itzik Ben-Gan 2001
January 20, 2016 at 12:14 pm
Based on this thread it sounds as if you are dealing with a recursive CTE and I think you've received pretty good input.
With respect to SQL Server the only...
-- Itzik Ben-Gan 2001
January 20, 2016 at 7:53 am
Just finished reading this. Excellent article Ed!
Extra cudos on the clever title and the naming of #DatesOfDeath made me chuckle.
-- Itzik Ben-Gan 2001
January 20, 2016 at 7:11 am
guru2007 (1/12/2016)
Any simple answer to why I was receiving null from the query I was using?
Just adding to what Eirikur said - returning a NULL is the default behavior for...
-- Itzik Ben-Gan 2001
January 12, 2016 at 12:24 pm
As already stated. atomic values would be ideal but sometimes you have to play the schema your dealt. One solution would be Full Text indexing then, instead of WHERE policyid...
-- Itzik Ben-Gan 2001
January 11, 2016 at 10:03 pm
Try:
select dummyxml.value('(/*:Contact/*:CustomerId/text())[1]', 'nvarchar(max)')
from [dbo].[DummyTable]
-- Itzik Ben-Gan 2001
January 11, 2016 at 9:42 pm
Ok, I have a nasty fast alternative for your under performing full-text index. We're going to create what I'll call a Nindex (N-Grams Index); it involves a Tally table and...
-- Itzik Ben-Gan 2001
January 11, 2016 at 7:38 pm
homebrew01 (1/11/2016)
Alan.B (1/11/2016)
Can you post the query plan that's used for this query?
Also, does that column need to be NULLable? If not can you set it to NOT...
-- Itzik Ben-Gan 2001
January 11, 2016 at 1:58 pm
A few things:
Can you post the query plan that's used for this query?
Also, does that column need to be NULLable? If not can you set it to NOT NULL, run...
-- Itzik Ben-Gan 2001
January 11, 2016 at 12:36 pm
Brad Allison (1/11/2016)
-- Itzik Ben-Gan 2001
January 11, 2016 at 12:23 pm
Jeff Moden (1/7/2016)
Alan.B (1/6/2016)
You can't write a recursive CTE with using pre-CTE features.
Technically correct because only an rCTE can be an rCTE but the rather well advertised rave in...
-- Itzik Ben-Gan 2001
January 11, 2016 at 12:14 pm
Viewing 15 posts - 1,036 through 1,050 (of 2,462 total)