Viewing 15 posts - 751 through 765 (of 5,504 total)
Are those questions part of an interview?
December 30, 2011 at 2:44 am
logicinside22 (12/29/2011)
I tired with this option but i am getting blank excel file in mail.
Does the query return any result at all when executed using the same query window as...
December 29, 2011 at 2:34 pm
... 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
Viewing 15 posts - 751 through 765 (of 5,504 total)