Quantcast
Browsing all 15889 articles
Browse latest View live

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 Article


CPU 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 Article


Help 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 Article

Need 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 Article

Sql 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 Article


Re: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 Article

Image may be NSFW.
Clik here to view.

SQL 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 Article

Wide 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 Article


Ring 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 Article


Auto 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 Article

System 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 Article

sp_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 Article

Login 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 Article


SQL 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 Article

Exception 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 Article


How 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 Article

Question 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 Article


SQL 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 Article

How 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 Article

sp_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
Browsing all 15889 articles
Browse latest View live