Quantcast
Channel: SQL Server Database Engine forum
Browsing all 15264 articles
Browse latest View live

Copy SQL Server 2012 database with SMSS

I want to copy a database within the same SQL Server 2012 Developer instance (e.g. from database1 to database1_new). Here are the steps I followed in SMSS * Right click on database > Tasks >...

View Article


Adding a Provider for Oracle in SQL Server 2008

I have a feeling this is fairly straightforward, but for some reason am having a hard time finding something clear cut regarding my situation. I have SQL server 2008 developer installed on my machine...

View Article


Insert Exec Performance issue

Hi,I have a procedure which has a code something like set @SQL = 'exec [LINKED SERVER].[db_name].dbo.[SP_NAME] @param_1 @param_2'insert into #temp(...)exec (@SQL)When I execute SP without insert...

View Article

Report to collect DB information from multiple servers

Hi All,I got a task to collect multiple SQL server instances DB details which located in different locations. Below are informations i want from all the DB instances: Database details:Recovery model,...

View Article

RING_BUFFER_SCHEDULER_MONITOR reporting over 100% ProcessUtilization

I am using RING_BUFFER_SCHEDULER_MONITOR to get cpu history for the server. For some reason on our new intel box (system info below) we are experiencing above 100% (in the xml below it shows 129)...

View Article


Indexs still marked as not being used but already deleted...?

Hi allI am currently going through the indexes which are not currently used on the live system.  What I have noticed is when I get my numbers (or lack thereof) from sys.dm_db_index_usage_stats, it...

View Article

Resource Database is Located on Bin Folder

Hi All,Why Resource Database is Located Bin Folder in 2008 version but 2005 it's located at different ? please explain the discrepancy of resource database 2005, 2008 versions and why resorce database...

View Article

CHECKTABLE found 0 allocation errors and 4 consistency errors in table...

Hello,I've detected this database consistency problem in integrity check. This error was appeared since may of 2012 therefore the backup was overwritten. Can you help me about the solution about this...

View Article


sys.dm_db_index_physical_stats: big differences in execution time

We run  sys.dm_db_index_physical_stats(DB_ID(<DB-name>), NULL, NULL, NULL, NULL) on a daily basis to collect DB object size statistics.The first time we scheduled this SQL Job, it ran for 20min....

View Article


Estimating the time taken for rebuilding the indexes in SQL 2012

Hello everyone,Is there any DMV that i can use to estimate the time taken for rebuilding the indexes in SQL 2012 ?Regards,ddanda

View Article

SP slow from app fast from SSMS. Also plan guides for entire SP?

OK, I see this is a perennial, but now it's hitting me!It's a winapp, in C#, using connection pooling.sys.dm_exec_sessions does not show any different settings, and what settings would matter...

View Article

A month's worth of powershell tutorial including SQL Server related tasks......

I hope it is ok to post this here. If not, my apologies to this forum.A very special thanks to Wayne Sheffield for providing this excellent...

View Article

QUOTED_IDENTIFIER is a parse time setting but what if there are two in the...

BOL for this setting (2005-2012) hasn't changed.  It says it is a parse time setting which happens before any lines are executed.SET QUOTED_IDENTIFIER OFF; DBCC useroptions EXEC(" IF EXISTS (SELECT *...

View Article


Deadlocks occur on Node A, but not on Node C

Here's an interesting one, and hopefully I'm just missing something obvious...Background:3 node cluster.(A-A-P)Windows Server 2008 R2 SQL Server 2008 R2 Enterprise (SP2)Hardware is exactly the same on...

View Article

Collation and Indexed search

Hi All,I am on SQL Server 2008 R2.In my database server, collation_name on all the databases is Latin1_General_CI_AS. So it's case insensitive. I assume, that will mean the object names are case...

View Article


Is doomed transaction inevitable if deadlock occurs in a trigger (SQL Server...

Hi all,Below are two scenarios, however, what I am trying to accomplish is to catch deadlock errors and re-try the DML that was chosen as the deadlock victim.  Does anyone know of way to accomplish...

View Article

Creating one or more indexes on composite primary key?

So I have this new table, and I want to create a compound primary key on.  How do I handle the index with this situation ?The table will typically be queried with a join to it with a condition that...

View Article


SQL 2012 cluster and MSDTC

Hi,we are migrating/upgarding our Sharepoint environment from SP 2007 to SP2010 and backend SQL db server  from SQL 2005 to SQL 2012.For the upgrade/migration,we have configured three node...

View Article

Is there any reference sites or configuration to run SQL DB in PCI-E flash...

 Hi experts,  I run our SAP/SQL in HP EVA 8400 now but the MA will be expired soon. I plan to migrate to an ex: P7400 mid-range storage.  However, a consultant give me a very interesting idea. Our...

View Article

Server slow after reboot cxpackets and latch high

One of our clients shut down their db server after a year because it had issues with the domain controller. Since that day the server runs extremly slow. The server has 24cores and 64gb ram What we...

View Article
Browsing all 15264 articles
Browse latest View live


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