Viewing 15 posts - 211 through 225 (of 266 total)
I think the best way to do this is restrict the permissions to the underlying objects. If the users cannot use a wizard they can still use scripting, .net, or...
August 19, 2008 at 6:46 pm
Yes - use sys.dm_db_index_physical_stats
something like
select Object_Name(dmv.Object_ID) as TableName
,si.Name as Index_Name
,Avg_Fragmentation_In_Percent
,Fragment_Count
,Avg_Page_Space_Used_In_Percent
,Record_Count
--*
From sys.dm_db_index_physical_stats (
db_id()
,Null
,Null
,Null
,'Sampled'
) dmv
join sys.indexes si
on si.object_id = dmv.object_id
and si.Index_ID = dmv.Index_ID
Where is_Disabled = 0
and dmv.Record_Count >= 100000
and Fragment_Count > 10
And...
August 19, 2008 at 6:34 pm
Thanks Greg. I already used the script GSquared provided and addressed the objects that needed fixing though. Funny enough there were a few procs that wouldn't create because they were...
August 18, 2008 at 5:23 pm
I have the following which targets a specific user, but you could easily adapt it to traverse all database principals with
select name from sys.database_principals
where type in ('S','U','G')
and name not...
August 15, 2008 at 10:01 am
Thank you GSquared, I had not considered this type of methodology - I believe this will give me exactly what I need with minimal effort on my part. Excellent response...
August 15, 2008 at 7:56 am
I would tend to want to use the following becasue it addresses the fact that kill attempts might place certain processes in rollback for significant time periods. Further, if you...
August 15, 2008 at 7:41 am
Another option could be an implicit varbinary conversion such as
where message > 0x
August 2, 2008 at 3:02 pm
The problem with including something like this as a feature is that it has too much variability in its application. For instance you might want to create another user or...
July 7, 2008 at 5:30 pm
Ok, the below still needs the 2 variable values set. The thing is about this one is that it is database user name specific, so if the usernames are the...
July 2, 2008 at 7:51 pm
Yes Jeff, thank you for the commentary/explanation/suggestions. Using a staging table will definitely be the way to go for the daily load. I guess whether the incoming records needed to...
July 2, 2008 at 4:42 pm
I assume everything is in the same domain since it worked for you before you changed the password. Is it possible that when the password was changed the Active Directory...
July 2, 2008 at 12:41 pm
For the below script just change the 2 variable values at the top to whatever the user names aer you are deeling with. Please let me know if you want...
July 2, 2008 at 12:30 pm
Thank you all very much for your posts. I will indeed recommend disable/enable for the indexes. I wanted to explore the question of whether the cluster on zip should be...
July 2, 2008 at 7:20 am
The bulk insert is being done by the developers in C# and they haven't been getting it to be minimally logged as evidenced by the log file that grew to...
June 30, 2008 at 2:29 pm
Viewing 15 posts - 211 through 225 (of 266 total)