Viewing 15 posts - 5,581 through 5,595 (of 7,191 total)
You can do:
EXEC tempdb.dbo.sp_spaceused #MyTempTable
I suppose once you have the size of the temp table you could estimate how many rows would add up to your size cutoff. The...
December 16, 2010 at 7:14 am
You've still got that unnecessary WHILE loop in there.
Even if you insist on keeping the loop, the #resultSET table isn't needed - you can just do this:
SELECT
@filter = @filter +...
December 15, 2010 at 7:41 am
Resender (12/15/2010)
as for calculating it daily i don't think that's an option as some databases on our server contain tables with over a million records.
Well, the alternative is to calculate...
December 15, 2010 at 7:35 am
I'd like to see the link for that if you still have it, please. I can't see how it would affect network performance, although I admit that it is...
December 15, 2010 at 2:34 am
Sorry, you've lost me. Why would using DATALENGTH to determine row size affect the amount of traffic that goes across the network?
John
December 15, 2010 at 1:47 am
I think you may find that if you go active/active then your licensing will be twice as expensive, since you'll be running on twice the number of processors.
You will need...
December 14, 2010 at 8:50 am
While the index rebuild is running, execute sp_who2 a few times. If the same SPID appears in the BlkBy column every time, and the SPID being blocked has ALTER...
December 14, 2010 at 8:34 am
You need to kill the process that is already accessing that index. This may just be a case of stopping your application while you perform the index rebuilds.
John
December 14, 2010 at 8:16 am
I think the CONVERT function is what you're looking for. Or you could allow the data layer to store the data and leave the formatting to the presentation layer.
John
December 14, 2010 at 7:00 am
We can't really help you with this. The table grew because somebody put a lot of data in it. Do you know how many rows it had before?...
December 14, 2010 at 4:55 am
Have you created the table of data types and their widths like I suggested in the other thread? And why don't you want to use DATALENGTH?
I'll tell you how...
December 14, 2010 at 2:54 am
dilipd006 (12/13/2010)
How to configure this
Right-click on the server name and choose Properties. Click on Security and choose the appropriate setting.
John
December 14, 2010 at 1:33 am
Viewing 15 posts - 5,581 through 5,595 (of 7,191 total)