Viewing 15 posts - 7,501 through 7,515 (of 26,490 total)
Not sure, but this looks like it may be for MySQL not MS SQL Server. I don't have the time to look harder at the moment as I am...
May 28, 2013 at 8:17 am
Sean Lange (5/28/2013)
Yet another reason NOT to use select *. 😛 I have answered this exact same question at work twice in the last week.
I have to agree on NOT...
May 28, 2013 at 8:08 am
I think Gail needs to be congratulated on her restraint. It is amazing how many people have been challenging her knowledge and experience just this weekend.
May 27, 2013 at 8:25 am
You do realize that there is probably a set-based solution to your problem so that a cursor solution is not needed. If you would provide the details of the...
May 27, 2013 at 7:41 am
That is because SELECT * does not automatically refresh as the underlying table(s) are modified.
IF the views aren't schema bound you should run sp_refreshview 'viewname' for each view that needs...
May 27, 2013 at 7:19 am
Golfer22 (5/26/2013)
...
If you could use table variables instead of temporary tables, that could help. But it requires a large amount of memory. Upgrading memory could help.
...
Using table variables...
May 26, 2013 at 8:42 pm
Golfer22 (5/26/2013)
May 26, 2013 at 8:36 pm
Dird (5/26/2013)
Thanks for...
May 26, 2013 at 8:27 pm
BlackGarlic (5/26/2013)
create NONCLUSTERED INDEX #idx_ID on #ID(ID) include (TID).
But I will run it again without index portion.
I an using following sql code in...
May 26, 2013 at 1:35 pm
My SSIS is rusty, how are you invoking the procedure in SSIS?
May 26, 2013 at 12:40 pm
Yuri55 (5/26/2013)
******************************************************************
USE [DBA]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- ============================================================
--rebuild index using dbo.index_rebuild_log ahead prepared data
-- ============================================================
CREATE PROCEDURE [dbo].[usp_IndexRebuild]
AS
BEGIN
SET NOCOUNT ON;
declare...
May 26, 2013 at 12:26 pm
Looks to me like you may have some big records in some of those tables with an avg_fragment_size_in_pages = 1. I'd be interested in the following as well:
min_record_size_in_bytes
max_record_size_in_bytes
avg_record_size_in_bytes
These also...
May 26, 2013 at 12:17 pm
Dird (5/26/2013)
Autoshrink is disabled in 10.5. There wouldn't be any manual shrinking because there's no real maintenance for our SQL Servers =//The 'DETAILED' option is so slow >_<
Dird
You won't get...
May 26, 2013 at 11:51 am
To use avg_page_space_used_in_percent you will also have to change your query to run in DETAILED mode, like this:
...
FROM sys.dm_db_index_physical_stats (DB_ID(), NULL, NULL, NULL, 'DETAILED') AS ps
...
May 26, 2013 at 11:33 am
The table is a heap (no clustered index). The index_id will be a 0 (zero). You may want to add this column to the query also: ps.forwarded_record_count.
May 26, 2013 at 11:27 am
Viewing 15 posts - 7,501 through 7,515 (of 26,490 total)