Viewing 15 posts - 2,761 through 2,775 (of 5,504 total)
I know, the XML stuff looks weird compared to what we're used to... 😉
OPENROWSET is a lot closer...
DECLARE @xml xml
SET @xml =(
SELECT * FROM OPENROWSET(
BULK 'C:\YourFolder\YourFileName',
...
September 27, 2010 at 4:49 pm
Something like this?
SELECT
c.value('@NAME[1]','varchar(50)') AS a,
c.value('@OPTIONS[1]','varchar(10)') AS b,
c.value('DESCRIPTION[1]','varchar(50)') AS c,
c.query('SHEET'),
c.query('RECIPIENT')
FROM @xml.nodes('FORM') T(c)
September 27, 2010 at 3:09 pm
From my point of view there is no issue regarding Service Broker security.
The security hole is your SELECT permission on the target table. The only difference between a scheduled job...
September 27, 2010 at 2:49 pm
[Disclaimer ON] I'm not a guru. [Disclaimer OFF]
Based on my experience OpenXML is nothing special being the root cause of a deadlock compared to any other method of dealing with...
September 27, 2010 at 2:38 pm
Steve Jones - Editor (9/27/2010)
One thing to note, SMS is guaranteed. And might not be delivered,...
September 27, 2010 at 2:20 pm
I focused on the execution plan of the view:
Since there is no index for the trip table starting with create_date you end up with an index scan that fits best...
September 27, 2010 at 2:06 pm
I don't think killing processes is the right approach here or in most other scenarios.
What processes do you usually kill and what status those are at?
You should run profiler to...
September 27, 2010 at 10:45 am
If you're talking about sending an email using SQL Server you might want to look up sp_send_dbmail in BOL.
If your system is not configured yet to send mails, you should...
September 27, 2010 at 10:35 am
Ouch!! You'd better stop that query....
I was hoping to prea-aggregate AdvStats and reduce the size of that part of your query.
But, unfortunately, it seems like it won't help at all...
September 26, 2010 at 10:54 am
As per ISO, week of August 9th 2010 is week 32.
September 26, 2010 at 10:27 am
ALZDBA (9/26/2010)
There may be a difference between microsoft week and iso week !...
Ther definitely is a difference:
The "old-fashioned" week function will calculate the weeks starting with week 1 for the...
September 26, 2010 at 7:36 am
I added the top level name as an addtl. column (Level1Name) and moved the calculation to the final select (therewith removing the cte1 subquery).
;WITH cte
AS
(
SELECT id,Name,parentid,levelid,...
September 26, 2010 at 5:33 am
Ugghhh!!! Those are quite heavy tables...
I think the major issue is the join between the 500 mill table to the 50mill table and performing an aggregation afterwards.
The CROSS JOIN is...
September 26, 2010 at 5:03 am
Lowell (9/25/2010)
i think you can do...
September 25, 2010 at 5:43 am
Lowell (9/25/2010)
the function is usually used...
September 25, 2010 at 2:47 am
Viewing 15 posts - 2,761 through 2,775 (of 5,504 total)