Quantcast
Channel: Forum SQL Server Database Engine
Browsing all 15694 articles
Browse latest View live

SQL 2005 - dm_os_ring_buffers RESOURCE_MEMPHYSICAL_LOW results

Im using a query against dm_os_ring_buffers in SQL 2005 to find possible evidence of low memory issues. Credit goes to this...

View Article


Enterprise licensing, instances, cores, etc

Say you're running a business offering "software as a service", and you need to run some kind of multi-tenant architecture.  There are certainly some tradeoffs in ways to do that, but one of them is...

View Article


Manage Job CPU usage with Resource Govenor

We have a job that depending on data can be very resource intensive, we would like to restrict its CPU to 20% using resource governor - how can we do this since all jobs run as the same login?

View Article

Four part naming vs OPENQUERY permission difference?

Hi,When connecting to a DB2 environment using the Microsoft OLE DB Provider for DB2, I sometimes run into permission issues:Using the OPENQUERY syntax, the query runs fine,Using the four part name...

View Article

Windows Azure Table Service Signature Access From Program

i need to access the GET Query Tables operation in Windows Azure through RestApi.I am not able to get the signature of table service under version 2009-10-01.apart from i check all request and url is...

View Article


Auditing Extracts data from staging tables

Hi ,My requirement is  5 source table is extracted from source system. loaded into 5 staging tables.after that i need one auditing table  with 3 columns. tablename,sourcecount,stagingcount. once...

View Article

adding file to logshipping primary database.

what happens whyen we add data files to primary database of logshipping? how are they moved to secondary database server? can anyone please explain.thanks in advance.

View Article

How to interpret instance_name in Lock Timeouts/sec metric?

Hi, Am trying to get a deeper understanding on locks. I ran this simple query :SELECT * AS LockTimeoutPerSecFROM     sys.dm_os_performance_counters  WHERE     counter_name = 'Lock Timeouts/sec'  I see...

View Article


Re:.MDF and .LDF

Hi team,we are restoring one database backup.that restore database i forget the .Extends like(.mdf and .ldf) if there is any problem for this.ex:restore database test from disk='C:\test\test13.bak'...

View Article


How to get a really unique transaction id in SQL Server?

For auditing reasons I have to determine the current transaction's unique id. Using sys.dm_exec_requests.transaction_id (or sys.dm_tran_current_transaction.transaction_id) doesn't work for me because...

View Article

Tracking Routines changes

Hi all,I have created script track all versions of SPs /views and UDF. My main target is to track these for three database that are in same server. These three database getting retored after few days,...

View Article

dm_db_index_physical_stats - i want to query for all databases but im only...

Using SQL 2005Like the title says, I thought I could get a result that include ALL databases on the instance, not just the currently selected database.  At least thats that the docs seem to...

View Article

Image may be NSFW.
Clik here to view.

suggestions on fragmentation stats?

k

View Article


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

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

Correlate query to missing index

Hi all,The following query is returning unexpected results on my server:SELECT mig.*, statement AS table_name, mid.equality_columns, mid.inequality_columns, mid.included_columns, user_seeks *...

View Article
Browsing all 15694 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>