Viewing 15 posts - 5,011 through 5,025 (of 5,504 total)
How about the following solution:
Note: I took the time to write some basic DDL, because it's Sunday... 🙂 ). I'm not sure whether I covered all possible scenarios when I...
September 6, 2009 at 6:03 am
Duplicate post.
For further discussion please use http://www.sqlservercentral.com/Forums/FindPost781227.aspx
September 2, 2009 at 8:16 am
Could you please provide some sample data to test against together with your current query?
For details on how to do it please follow the link in my signature.
September 1, 2009 at 10:15 am
Maybe you don't provide the value 'ALL' for the @office parameter when calling the procedure? Edit: not relevant. I missed the END ELSE BEGIN section of the code.
Other than that...
August 31, 2009 at 9:13 am
Regarding your first question:
AFAIK, it's not possible to pass a table to a SP in SS2K5. It's a different story in SS2K8...
Other options to deal with such a problem is...
August 26, 2009 at 4:42 pm
It looks like there's an issue with the way you format the xml data.
Maybe the following combination can be used to get the right format:
FOR XML RAW('item'),ROOT('items'), ELEMENTS, TYPE.
For details...
August 26, 2009 at 2:36 pm
There's no reason to be sorry.
It's just a new information that you're trying to import from a file. 😉
Your initial post fills the xml variable using a select statement based...
August 26, 2009 at 2:14 pm
Would you please be a little more specific on how you convert the xml data?
What I'd like to know is
a) Where do you get the xml data from (select statement...
August 26, 2009 at 5:26 am
Hi Michael,
Short answer to your question
Is this the result of the xml schema?
: It depends.
There is a difference between an attribute (like SampleGroupID is an attribute of the item element...
August 25, 2009 at 4:49 pm
What is your expected output?
Could you use XQuery instead of openxml?
If yes, here's a simple example on how to query the @id attribute as well as the status element.
If you...
August 25, 2009 at 4:05 pm
Well, we're getting closer...
Next thing I'd like to see is a DDL statement (table definition) as well as sample data in a ready to use format as described in the...
August 25, 2009 at 2:36 pm
Instead of using the datepart function you might want to play around with "select dateadd(wk, datediff(wk, 0, @ThisDate), 0)". This will give you the date of Monday from @ThisDate.
Please...
August 24, 2009 at 5:30 pm
Since you require dynamic column names you might want to look into dynamic cross tabs.
For details please see Jeff's article[/url].
Note: if there are no ready to use data available I...
August 24, 2009 at 5:17 pm
I still have to recommend you're trying to provide sample data that do reflect your situation.
Let me repeat my recommendation from earlier in this thread:
In order to give you an...
August 24, 2009 at 4:37 pm
RV (8/24/2009)
August 24, 2009 at 3:55 pm
Viewing 15 posts - 5,011 through 5,025 (of 5,504 total)