Viewing 15 posts - 2,971 through 2,985 (of 14,953 total)
Oh, and please do remove all that XML from your original post and include it as an attachment. It's slowing down the page-render so badly I actually had trouble...
November 2, 2011 at 11:45 am
This should get you started:
DECLARE @X XML = '...copy your XML here...';
SELECT X.SR.query('.').value('declare namespace RS="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition";(/RS:Subreport/RS:ReportName/text())[1]',
...
November 2, 2011 at 11:43 am
Your XML is malformed, probably because of copy-and-paste into a website. Take a look at line 1045. Getting an "Illegal character" error on that line when I try...
November 2, 2011 at 11:36 am
Okay, here are some questions on this:
1. How does the database know which product comes first, which one second, et al, or does that not matter?
2. You have three products...
November 2, 2011 at 11:21 am
The reference you linked to is a good intro to it.
It doesn't mention the effects of implicit conversion that can kill SARGability between data types.
And it uses IN (x,y,z) as...
November 2, 2011 at 11:16 am
Definitely not just UDFs.
It's pretty much anything other than an equality comparison between a column and another column or between a column and a variable, and in both cases it...
November 2, 2011 at 11:13 am
The option you posted, Marko, is what's called a "triangular join", and it will work just fine on very small datasets, and will absolutely die on large datasets. So,...
November 2, 2011 at 11:10 am
It's like any habit.
Start doing it.
Remind yourself any time you catch yourself not doing it.
Soon you'll be doing it pretty automatically.
It takes work to remember at first, and then gets...
November 2, 2011 at 11:08 am
Stefan Krzywicki (11/2/2011)
November 2, 2011 at 11:05 am
It's an infinite list, since you can include UDFs in it.
What is it you're trying to solve?
November 2, 2011 at 11:03 am
Yep, namespace matters!
Glad I could help.
The documentation for XQuery is junk. I've been through a lot of headaches working it out, so anything I can do to help others...
November 2, 2011 at 11:02 am
I've been a computer hobbyist and "power-user" since I was about 8 years old, but I only got into actual IT (DBA) work 11 years ago.
The way I got into...
November 2, 2011 at 11:00 am
Takes a bit, that's for sure. There's a lot to wrap your head around.
November 2, 2011 at 9:24 am
The execution plan tells a bunch of the story of what's going on here. It's scanning the same clustered indexes over and over, and doing a lot of work...
November 2, 2011 at 9:21 am
You'll want to expand that conversion to something more than Varchar(1). That will only hold one character, and kind of defeats the whole purpose of what you're doing here.
Make...
November 2, 2011 at 9:13 am
Viewing 15 posts - 2,971 through 2,985 (of 14,953 total)