Viewing 15 posts - 2,236 through 2,250 (of 2,462 total)
Misread the requirement. Comment removed.
-- Itzik Ben-Gan 2001
May 29, 2013 at 9:19 am
Something like this perhaps:
IF OBJECT_ID('tempdb..#tmp') IS NOT NULL
DROP TABLE #tmp;
CREATE TABLE #tmp (val varchar(10) primary key)
GO
INSERT INTO #tmp
SELECT '5'UNION ALL
SELECT '6DN'UNION ALL
SELECT '7'UNION ALL
SELECT '10'UNION ALL
SELECT '11DN'UNION ALL
SELECT '12'UNION ALL
SELECT...
-- Itzik Ben-Gan 2001
May 29, 2013 at 9:08 am
SQL_Surfer (5/29/2013)
-- Itzik Ben-Gan 2001
May 29, 2013 at 8:48 am
Lynn Pettis (5/28/2013)
Alan.B (5/28/2013)
OTF (5/22/2013)
phc (5/18/2013)
SELECT C.first_name"Provider", Count(C.provider_no) "Diabetics with...
-- Itzik Ben-Gan 2001
May 28, 2013 at 5:11 pm
OTF (5/22/2013)
phc (5/18/2013)
SELECT C.first_name"Provider", Count(C.provider_no) "Diabetics with over 1 BP...
-- Itzik Ben-Gan 2001
May 28, 2013 at 3:56 pm
Sergiy (5/8/2013)
I think you missing the point.
The question was not about use of XML in real life, but about why we cannot store XML files using good old nvarchar/ntext data...
-- Itzik Ben-Gan 2001
May 14, 2013 at 9:13 am
Shadab Shah (5/7/2013)
Every now and then i am learning something new in SQL Server. Latest in that series is XML Datatype. While learning XML datatype i came to...
-- Itzik Ben-Gan 2001
May 8, 2013 at 6:17 pm
Thanks Ben and sorry for the late reply. I am able to find 8.5 (and 7.0) via download but not 8.0. Not a big deal, thanks for checking!
-- Itzik Ben-Gan 2001
May 8, 2013 at 10:09 am
Eddie Wuerch (4/27/2013)
-- Itzik Ben-Gan 2001
April 29, 2013 at 9:17 am
jamoore (4/22/2013)
Thank you, Alan... that helps. Looking forward to taking a look at the regular expression if you can find it.
What I have here won't be a complete solution but...
-- Itzik Ben-Gan 2001
April 23, 2013 at 1:06 pm
This is a tricky one. You could use Regular expressions for this; there is a good script for this in the Regular Expressions Cookbook by O'Reilly which I will try...
-- Itzik Ben-Gan 2001
April 22, 2013 at 3:40 pm
labri (4/19/2013)
Thank you all for your answers! I found what I needed using theAlan.B's query.
I'm glad that worked for you. It is worth noting that my query was pretty...
-- Itzik Ben-Gan 2001
April 22, 2013 at 1:31 pm
Lynn Pettis (4/19/2013)
set nocount on;
-- sample data
IF OBJECT_ID('tempdb..#x') IS NOT NULL
DROP TABLE #x;
CREATE TABLE #x (id int identity primary key, val nvarchar(100) NOT NULL);
GO
INSERT INTO #x...
-- Itzik Ben-Gan 2001
April 22, 2013 at 1:28 pm
RexHelios (4/19/2013)
Would you mind elaborating, AJB? I didn't quite get it. I used inner join since I thought, if there is no match no update is required.- Rex
I am...
-- Itzik Ben-Gan 2001
April 19, 2013 at 12:21 pm
It's work noting that wolfkill and I are using the same splitter[/url] (I mine just has a different name).
-- sample data
IF OBJECT_ID('tempdb..#x') IS NOT NULL
DROP TABLE #x;
CREATE TABLE...
-- Itzik Ben-Gan 2001
April 18, 2013 at 2:38 pm
Viewing 15 posts - 2,236 through 2,250 (of 2,462 total)