Query On Trigger
Hi guys i am working as a software engineer at bangalore,i have given a task by team-lead .I have two tools (i.e., SQL Server and My SQL) and two databases in different tools the thing is if update any...
View ArticleRING_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 ArticleResource 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 Articlesys.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 ArticleEstimating 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 ArticleSP 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 ArticleA 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 ArticleQUOTED_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 ArticleDeadlocks 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 ArticleCollation 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 ArticleIs 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 ArticleCreating 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 ArticleSQL 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 Articlebackup as multiple files
how does multiple file backups help backup performance if all the backups are going to same Disk? I can see how it can help when doing it to multiple drives(eliminates disk contention). Parallelization...
View Articleforeign key conflict whenadding relationship
Unable to create relationship 'FK_admTblEquipHistory_admTblOffice'. The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_admTblEquipHistory_admTblOffice". The conflict occurred in...
View ArticleIs 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 ArticleServer 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 ArticleHow to insert data from one table to other table in sql
am using this queryINSERT INTO coll_batch (cb_agent_code, cb_tot_records, cb_tot_amt) SELECT (CODE, RECORD, TOTAL)FROM thead"but " Incorrect syntax near ',' "how to avoid this
View ArticleSQL SERVER Memory Issue
Hi Team,We are facing Memory Issue in named instance in this server we have configured DB Mirroring it is principal server.we have two instances Ram : 34 GB Memory :Min : 32 Max : 12288 MB Memory...
View ArticleCould not find a stored procedure SPSelect_XXXX
Hi ,VB 6 , application is connectiong to SQL Server 2008R2 SP2 Enterprise Edition and the login account having sysadmin permissions and default schema is dbo and the stored procedure is in default...
View Article