Viewing 15 posts - 8,191 through 8,205 (of 14,953 total)
<root><row A="A" /></root>
Just had to try it myself.
I do all my coding in SSMS, so I never noticed this. Weird that it works if I copy and paste into...
October 8, 2009 at 2:18 pm
Try this:
declare @XML XML;
select @XML = '<root>
<column_name>
<node_a>value1</node_a>
<node_b>value2</node_b>
</column_name>
</root>';
select x.y.value('local-name(.)', 'VARCHAR(50)'),
x.y.value('.', 'VARCHAR(50)')
from @XML.nodes('//*') x(y)
October 8, 2009 at 2:15 pm
ItalianOlgi (10/8/2009)
On the other hand, I'd consider it a positive if it started with, "I haven't had to do that, so I'm not sure, but what I'd start with is...
October 8, 2009 at 12:16 pm
GilaMonster (10/8/2009)
GSquared (10/8/2009)
October 8, 2009 at 9:57 am
Jeff Moden (10/8/2009)
I'd rather not give this troll such hints, Gus. Kill this thread.
I'm not too worried about him taking my comment and doing anything useful with it. ...
October 8, 2009 at 9:21 am
GilaMonster (10/4/2009)
Elliott W (10/4/2009)
October 8, 2009 at 8:56 am
ItalianOlgi (10/8/2009)
October 8, 2009 at 8:42 am
jcrawf02 (10/8/2009)
GSquared (10/6/2009)
October 8, 2009 at 7:54 am
According to what he posted, it's using 1.3. That plus the swap file data makes it look like a memory pressure issue to me.
Since we're pretty much shooting in...
October 8, 2009 at 7:18 am
From that, I'm extrapolating that an asterisk in the field indicates that either the next character is a column, or that the next number is a column. Can you...
October 8, 2009 at 7:14 am
First, you get a copy of Query Analyzer or SQL Server Management Studio. Either one will work.
Do you have one of those?
October 8, 2009 at 7:07 am
Add more RAM. SQL using 1.3 and page file 1.8 on a 2 Gig machine means you're swapping to disk more than you should be.
I don't even use desktop...
October 8, 2009 at 7:04 am
Here's a sample of how to make this kind of thing work:
create table #T (
ID int identity primary key,
ParentID int null);
insert into #T (ParentID)
select null;
insert into #T (ParentID)
select null;
insert into...
October 7, 2009 at 12:50 pm
One-to-one/zero tables are quite common. It's called "vertical partitioning", and it's really useful in a number of circumstances. Some DBAs use it any time a column could possibly...
October 7, 2009 at 10:09 am
From your description, it should be relatively easy to use the Substring function to split out those columns.
For example, something like this will handle column 2:
create table #T (
ID int...
October 7, 2009 at 9:59 am
Viewing 15 posts - 8,191 through 8,205 (of 14,953 total)