Viewing 15 posts - 2,956 through 2,970 (of 5,504 total)
I would start running a profiler trace on "SQL batch starting/complete" to see if the duration of the statements will increase over time and which statement that would be.
August 21, 2010 at 5:11 am
It depends.
Is the system still able to run? If not, what error message do you get?
When was the last transaction log backup? Is there any schedule for log backups? If...
August 21, 2010 at 5:03 am
Is there any specific reason for still using OPENXML over XQuery?
How about comparing the performance against the following XQuery statement?
SELECT
v.value('id[1]','NVARCHAR(256)') AS ID,
x.value('@href[1]','NVARCHAR(256)') AS [Link],
x.value('@rel[1]','NVARCHAR(256)') AS [LinkRel],
z.value('Status[1]','NVARCHAR(256)') AS [Status]
FROM @document.nodes('entry[1]') T(c)
CROSS...
August 20, 2010 at 3:54 pm
So let's asume the given scenario (no set based solution possible and a unchangeable sproc).
Do you have any proof of concept available that a while loop would perform better than...
August 20, 2010 at 3:38 pm
Ok, you did the first stepby providing the DDL script for the table.
The second step would be to provide some ready to use (fake) sample data (provided as INSERT statements)....
August 20, 2010 at 3:25 pm
Robert Frasca (8/20/2010)
The second column is using the value set for the first column...
August 20, 2010 at 3:18 pm
@supachoi:
Replacing a c.u.r.s.o.r with a while loop due to performance reasons is like suggesting to cure cancer with AIDS.
Both solutions (loop and cursor) are row based (aka RBAR) won't give...
August 20, 2010 at 3:09 pm
Ok, here's an example on how to do it. Howver, I strongly recommend you get the vendor involved providing you a function with the same functionality (iTVF preferred...).
This would not...
August 20, 2010 at 2:07 pm
thisisdeepthy (8/20/2010)
August 20, 2010 at 1:06 pm
First thing: there is no such thing like the 5th row.
The order of rows in a table doesn't really matter. Not even the physical order of rows really is deterministc...
August 20, 2010 at 7:07 am
There is definitely some room for improvement.
To test the sample code I would like to have table def (DDL script) including index scipt(s) for the tables involved and some ready...
August 20, 2010 at 6:49 am
Either use @@ROWCOUNT as the immediately following comand after your insert statement or if you'd like to get more details from the values inserted use the OUTPUT clause in your...
August 20, 2010 at 6:30 am
Having a closer look at your document it seems like there is an inconsistent default namespace declaration:
< entry xmlns="http://www.w3.org/2005/Atom" >
< Contact xmlns="http://ws.constantcontact.com/ns/1.0/" >
Either you set those two elements to the...
August 20, 2010 at 5:12 am
If the ClientId column isn't indexed you will end up with a table scan causing bad performance. If you're allowed to, add the ClientId (nonclustered) index and see if it...
August 20, 2010 at 4:05 am
Viewing 15 posts - 2,956 through 2,970 (of 5,504 total)