Viewing 15 posts - 8,176 through 8,190 (of 14,953 total)
GilaMonster (10/8/2009)
SELECT @XML = '<outer><inner>
value
</inner>
</outer>'
SELECT @XML = '<outer><inner>value</inner></outer>'
Edit: It's the presence/absence of line breaks. If there's a linebreak anywhere in the code block, the < and > come out correct....
October 12, 2009 at 7:30 am
Gianluca Sartori (10/9/2009)
jcrawf02 (10/9/2009)
Gianluca, regardless of Olgi's origin it has no reflection on your good name. There are liars and cheaters in every country.
I'm not worried about that, nor I...
October 12, 2009 at 7:27 am
Jack Corbett (10/8/2009)
GSquared (10/8/2009)
Since we're pretty...
October 12, 2009 at 7:23 am
Yes, you can connect with native client. The documentation on it is here http://msdn.microsoft.com/en-us/data/aa937733.aspx.
Native client is a means for getting applications to connect to SQL Server. It's not...
October 12, 2009 at 7:19 am
jcrawf02 (10/9/2009)
...
...
...
...I don't think any of us really care about generating points...
October 12, 2009 at 7:11 am
Gianluca Sartori (10/9/2009)
He doesn't seem to like it.
I told him I use the quirky update expecting...
October 12, 2009 at 7:08 am
I didn't know if you wanted to have the amount of time it was in the particular state, and, if so, by what interval (minutes, seconds, hours, etc.), so you'll...
October 8, 2009 at 3:07 pm
Try something like this:
create table #T (
ID int identity primary key,
Time_stamp datetime,
Machine_state int);
insert into #T (Time_stamp, Machine_state)
select '3.27.2009 23:00', 0 union all
select '3.27.2009 23:45', 1 union all
select '3.27.2009 23:55', 2...
October 8, 2009 at 3:05 pm
select cast('<row A="A" />' as XML)
Very weird! This even runs correctly in SSMS, and I really don't see the difference between it and the prior post. I even...
October 8, 2009 at 2:35 pm
select col from table where '<xmlstuff />';
Okay, now that's weird! Why does the other XML code work, but this doesn't?
I'm gonna go with, "would have to see the code"....
October 8, 2009 at 2:31 pm
select col from table where othercol '>' avalue;
It's not the single-quotes around it. Some other variable.
IE version 8.0.6001.18702
October 8, 2009 at 2:28 pm
select col from table where othercol > avalue;
But when I copy-and-pasted this in, it got FUBARed.
October 8, 2009 at 2:24 pm
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);
And yet, I just posted this in another thread.
October 8, 2009 at 2:23 pm
When you say you've indexed those columns, do you mean that you have one index on each column, or one index that has all of them?
Can you provide a create...
October 8, 2009 at 2:23 pm
Viewing 15 posts - 8,176 through 8,190 (of 14,953 total)