Viewing 15 posts - 751 through 765 (of 5,502 total)
... especially if the old syntax is lacking the WHERE clause in the given example.... 😉
December 29, 2011 at 2:31 pm
Wouldn't it be a lot easier to use sp_send_dbmail?
For the @query_attachment_filename parameter, use a xls file extension.
December 29, 2011 at 2:06 pm
I strongly recommend you immediately remove the obviously real data, unless you have proper authorization from each and every company you've listed!!
Replace the data with obfuscated values.
Edit: to post it...
December 28, 2011 at 3:02 pm
Back to the original question:
Let's assume the travel ageny will offer cruises as well. How would you include it in the design you have in mind?
What would happen if...
December 28, 2011 at 10:51 am
I'm not sure if the method described in Jacobs Blog would be a start for a dynamic shredding solution...
There's also a reference to the related XQuery method
Due to the natural...
December 28, 2011 at 8:10 am
Jeff Moden (12/25/2011)
December 25, 2011 at 5:30 pm
Here's a short example of the table-based version using your original sample data.
CREATE TABLE #tmpXML
(
TmpID INT IDENTITY(1,1) PRIMARY KEY CLUSTERED,
XmlCol XML
)
INSERT INTO #tmpXML (XmlCol)
VALUES (@XmlData)
CREATE PRIMARY XML INDEX...
December 25, 2011 at 5:24 am
One more question:
How large is the XML structure?
It might help to insert the data into a table with an indexed xml column.
Under certain conditions the additional time to create the...
December 24, 2011 at 4:26 pm
OUTER APPLY is your friend here, too 😀
Please note I decided to use some totally meaningless alias names so you can easily identify the code that's not your original 😎
This...
December 24, 2011 at 3:46 pm
I'd rather use the good old CrossTab approach as described in the related link in my signature.
It'd not only easier to remember but usually also faster than the PIVOT.
December 24, 2011 at 3:33 pm
peter 50174 (12/23/2011)
What exactly are you struggling with?
Do you already get the data in your VB script? If so, then it shouldn't be a problem to format it using VB....
December 23, 2011 at 6:42 am
peter 50174 (12/23/2011)
Results to Text
Returns the query results as text in the Results window.
I want the result via the web. This means I'm using a VB.net...
December 23, 2011 at 6:22 am
You didn't really use the anchor in your code.
I've added AcctId to the code and assigned it to the anchor variable. Then I included the anchor to reset @PreviousBalance.
DECLARE
...
December 23, 2011 at 5:59 am
Glad I could help 😀
This example once again demonstrate how a "semi-optimal" database design usually increase query complexity...
The sad part is, there are companies out there making money by selling...
December 23, 2011 at 1:59 am
Will something like this bring you closer to the result you're looking for?
The information that there will never be more than two UOMs allows to use the ROW_NUMBER approach to...
December 22, 2011 at 2:48 pm
Viewing 15 posts - 751 through 765 (of 5,502 total)