DDL Triggers and Detecting sp_rename
I am trying to use DDL triggers to detect all changes to a table. Sometimes a user directly or (more likely) through the SQL Server Management Studio GUI renames a column via sp_rename. I can't seem to...
View ArticleSQL Restore gets to 100% but never completes
Hi all,I receive a daily database extract (differential) and a monthly full extract. Each day the full extract is restored (NoRecovery) and the differential applied (recovery) into the same database.I...
View ArticleSQL Server 2008 R2 Sp2 crashed on query
On some my query I got:Msg 0, Level 11, State 0, Line 0 A severe error occurred on the current command. The results, if any, should be discarded. Msg 0, Level 20, State 0, Line 0 A severe error...
View ArticleChange Tracking many tables
Hi,I have a number of tables that are all related in some way or another. Lets say there are 20 tables in total here. I need to track changes as they all ultimately will need their changes sending to...
View ArticleWhat is the expected total size and used size percentage of SQL DB?
Hi All,When am calculating the estimated size of my Databases am measuring different values and I got a question what is the best different between total size and used size of the Databases, because...
View ArticleMultiple tempdb databases
Is it possible to create multiple tempdb databases in SQL Server 2012 enterprise edition 64 bit on windows server 2012 data center edition 64 bit.
View ArticleReading and understanding deadlock info
Hello, I am noticing a bunch of these deadlocks in one of our env.'s and I have trouble understanding them. Can someone please throw some light on me on how to read this? deadlock-list deadlock...
View ArticleSql Trace - data lost
Could a sql trace cause a database to loose data? While running a trace, we lost data for the same period the trace was running. Please advise.Thanks FOP14
View ArticleDeveloper database is not up to date - how to update it
Hello -I am on a contract job that has a production database that is about 35 gigs. The developer database is a few months out of date and therefore, not very usable. 1. How do I go about making the...
View Articleusing "Execute AS" clause
Hello, I have run into something I never thought I would have to deal with. I have a developer that wants to execute xp_cmdshell from within a stored proc that executes from a sql server agent job...
View ArticleIs there any tool or method to find the exact disk space/memory required for...
Hi,We have SSIS Package, which in-turn executes some Stored procedures . This Package runs fine at certain time, say 30 minutes which is acceptable. But sometimes, it takes around 1.5 hr. There was no...
View ArticleAnalysing values in Performance Monitor and for the counter Avg Disk Queue...
Hi,We were facing some performance issues in the server since 1 week. While analyzing, had a doubt that it may be due to DiskIO. So, have created User-Defined Performance Monitor and added parameters...
View ArticleCould not allocate space for object 'dbo.table' in database 'dbname' because...
Hi,I have created filestream filegroup by setting autogrowth to 1mb. i knw for filestream we cannot set autogrowth. but i did & using these filegroup i hve created one table for storing images. i...
View ArticleModifying SQL query
Hi,Please find my query below:SELECT T2.STATUS ,COUNT(*) CNT FROM ( SELECT T1.ID, MAX(T1.STATUS_ID) STATUS_ID FROM TABLE1 T1 WHERE...
View ArticleLinked Server : The old "Login failed for users "NT Authority\Anonymous...
Two SQL Servers: SQL Server 2008 sp3 and SQL Server 2014We are transitioning from 2008 to 2014. We have need of some linked servers whilst this is ongoing.We've used them before, and indeed I set them...
View ArticleHow to resolve SQLVDI and SQLWRITER errors
I'm getting these errors whenever I run windows backup on I get these errors for each of the six SQL databases. Below are two examples of the errors that I get. This is causing my backups to fail. Log...
View ArticleSlow or long running query troubleshooting.
We had a situation where an SP/Query is running very long (~ 3 hours) on production server (32 CPU + 64 GB) . As this SP is taking only 2 to 3 min in QA environment we started troubleshooting....
View ArticleGetting An error has occured while processing Report error
Ok so I know that the An error has occured while processing Report The query processor ran out of internal resources and could not produce a query plan.has been discussed a million times, but I have a...
View ArticleSQL Server Memory & CPU Utilization-Exact Value for Both
Hi All,I am trying to find the exact CPU & Memory that a SQL instance is using. I have tried few perfmon options and DMV's. I am unable to get the accurate value that is being used by SQL Server...
View Articlecalculate MAXDOP
hi , we have just installed a new sql server to our database environment and I am not quite sure from the correct setting for MAXDOPthe SQL server has 4 physical CPU and 64 logical is there any...
View Article