dm_exec_query_stats Text includes statement that has create procedure ?...
Query:SELECT DISTINCT TOP 10 t.TEXT QueryName, s.execution_count AS ExecutionCount, s.max_elapsed_time AS MaxElapsedTime, ISNULL(s.total_elapsed_time / 1000000 / NULLIF(s.execution_count, 0), 0) AS...
View ArticleCPU Utilization was 100%
HI Team,In one of prod box(PRINCIPAL SERVER ) was CPU Utilizing was 100% we have configured Mirroring in that server.I have checked there is no blockings no wait status. My question was can run perform...
View ArticleHelp tracking down T-SQL changes needed to up compatibility level
I have a set of databases with several hundred SPs. They were originally on SQL 2000 and are now running on SQL 2008 R2, with compatibility mode 80.Since going to 2012 is only a matter of time and 80...
View ArticleNeed schema query that gets me a list of tables for a list of databases
Im looking at getting a list of tables for a given instance, or for a list of DB'sI know I can hit sys.tables for a specific database, but how can I expand this to the instance level?
View ArticleSql 2005 - insufficient system memory to run this query
Hi, We are getting right now following error: We have Sql 2005 with 4 GB MemoryThere is insufficient system memory to run this query. Error: 701, Severity: 17, State: 42.then it contains another...
View ArticleRe:Log shipping..
Hi team ,we are configured log shipping primary and secondary both server are 2005 enterprise edition, but monitor server is 2008 enterprise edition, it can be working or not???
View ArticleSQL 2005 Monitoring memory use - setting up an alert
Note: This is for SQL 2005Im following this examplehttp://technet.microsoft.com/en-us/library/ms176018%28v=sql.90%29.aspxIt mentions using these counters, but what Object did they select? Memory:...
View ArticleWide clustered index column order
Hi,I have what I imagine is a pretty common data warehouse scenario. There is a table containing items by business date and source system id. There are a number of source systems and the data is loaded...
View ArticleRing buffers - are the messages the same between types?
Im looking to capture low and out-of-memory conditions by querying sys.dm_os_ring_buffersreference this blog...
View ArticleAuto Generated Filegroup in SQL Server and also sliding window
Hi Experts, I new to create the Partitioning on database.I have manually created all partition filegroup and Schema but business want to create it automatically.even I have to create the sliding...
View ArticleSystem report - what items to include (ie. memory issues, top 10 slowest...
If you were to start to build a report that would be system related information, what items would you include?So far I have the following:- identify low and outofmemory events (since last ring buffer...
View Articlesp_send_dbmail problem
I am trying to send an email with the results in the body of the message. Below is the code and below that is the error. DECLARE @mailprofile VARCHAR(200) declare @query nvarchar(max) SET @query =...
View ArticleLogin issue..
Hi team,we are migration one server, i have login scripts,once we executing the login script in new server we are getting below error message :Supplied parameter sid is in use.how to drop the SID and...
View ArticleSQL 2012 SP1 system_health security_error_ring_buffer_recorded Events
Hello,I recenlty upgraded My SQL 2005 server to SQL 2012 SP1. The system_health in Extended Events is now continuously reporting the event listed below.After upgrading to SQL 2012 SP1 I installed a...
View ArticleException happened when running extended stored procedure 'xp_delete_file' in...
I have gone through the related posts. However not found the answer to this problem.Environment: - OS Version: - 2003 R2 (SP2) 64 Bit SQL version: - Microsoft SQL Server 2008 (SP3) - 10.0.5788.0 (X64)...
View ArticleHow to check if a view is updatable or not
What is a good way to find out if a view is updatable or not?The following options I know but are not useful for me:- try a update / insert statement: because I check all views existing in a unknown...
View ArticleQuestion on In-Row varbinary(max) on SQL FILESTREAM
I have a question on what actually gets stored in a data row for a varbinary(max) column setup for SQL FILESTREAM. (with FILESTREAM attribute)Do we have to take into account on the dynamic size of that...
View ArticleSQL Server 2012 Shutting Down Randomly
Hello,I have two servers with Windows Server 2008 R2 and SQL Server 2012 Standard that were just setup about a week ago. Both SQL Server instances will randomly stop the service and become disabled. I...
View ArticleHow to migrate extended store procedure 64x DLL from SQL 2005 to SQL 2008 R2 ?
Hi! all,I need to migrate a database with extended store procedures from SQL 2005 64 bit EE to SQL Server 2008 R2 EE, the targuet os is Windows 2008 R2 EE.I went trought the...
View Articlesp_send_dbmail formatting results - one column has line breaks and wraps a...
I have a procedure that returns several results. One of which has a column with a long string, but I am trimming it to 300 characters.Regardless, when the email is received, the attached file contains...
View Article