Index usage
I’ve been doing some analysis of our indexes with the thought of dropping unused indexes - and conserving space in our 1 TB database. I’m running the query below and have identified some indexes that...
View ArticleSQL Server pagefile.sys best practices.
Hi,Our SQl Server has 128 Gig of RAM.I am looking for best practices how to configure pagefiles on the SQL server and how to measure proper use of pagefile by using performance monitors.Is there any...
View ArticleSQL performance worse since moving to sql 2008 R2 from SQL 2000 sp4a
We had a SQL 2000 server on a HP GL370 G5 running Windows 2000 Advanced (awe enabled 8gb ram)We now have a HP DL580 running hyper-v core 4 Processors 16 cores per processorThe Guest that sql sits on is...
View ArticleExtended event timestamp bug still not fixed
I have SQL Server 2008R2 10.50 with SP1.When running a black box query I am still getting incorrect event timestamps. Any idea how to get the correct timestamp in this query?Thanks.SELECT...
View ArticleGetting most_recent_sql_handle from prior session?
Hi, We are migrating a COBOL-DATACOME application to .Net COBOL and SQL Server using MicroFocus. I have been monitoring the queries via using DMVs and and traces. I notice an odd thing once in a...
View ArticleAudit DML Statemements on all tables and all databases
is there a way to do that with out SQL Profiler and triggers ?is anyone having any script to do this ?Please help me on this Thanks
View ArticleBest RAID for SQL Server 2008 R2 SE on SSD's
What is the best raid option for SQL Server 2008 r2 se on SSD's?I meant for ldf, mdf, tempdb. I am thinking of Raid 10 for the drives on which ldf and mdf resides and Raid 5 for the drive on which...
View ArticleSQL server 2012 support for OWL
Does SQL server 2012 has support for OWL (W3C standard), RDF data model, etc like other DBMS - MySQL, Postgresql?
View ArticleTracking a user through connection pool in Profiler
Currently all instances of our main app report an Appname of ".Net SqlClient Data Provider" and a LoginName of "XYZUser", and an NTUserName that is blank. This is a C# rich/smart app using WCF to talk...
View ArticleSQL Server occasionally refuses new connections for short periods
I have an application that has been running for years. Starting in early January, I've started seeing connection errors when simple queries run against the database. This only happens to maybe one...
View ArticleWho change policy
Hi,Our security team received alert regarding policy change on SQL Server computer. They don't know whether policy changed on windows server or Database server. Just computer name is given there. I...
View ArticlePowershell to import csv file
Hello all,Running sql 2008 sp1New to PowerShell. Can someone please check the syntax and tell me if something doesn't look right.Trying to load a csv file into a tableThe csv file is comma delimited...
View ArticleConstraint to ensure at least one record is flagged
Hi,Is there a way to write a unique constraint/index on a table such that you can restrict a column to have a flag in at least one record in a table.An example table would be:ID Category...
View ArticlePartition table with non-clustered index
Hi,I am in sqlserver 2005 developer edition. I have a table awrard_transaction which has refno column as primary key and has a primary key (unique clustered index on it), index name is...
View Articleupdating subscriber data based on condition
OS: W2K8 R2 SP1 SESQL Server: SS2K8 R2 SP1 SEIn transaction replication is there a way that I can restrict the updates specific only to a column?Lets say if updates occur on source table(publisher...
View ArticleSQL server 2000 performance issue
While executing the restore command in sqlserver 2000 (windows 2003 server) itself it was taking around 3 hours to complete the restoration.if we connect the same instance in other server, 2008...
View ArticleWhat all database operations are logged in transaction log
I would like to know that what all operations are used to logged in transaction log?Please also suggest if any blog or white paper for this details.advance thanks!Regards Vikas Pathak
View ArticleWhen I am running this below index rebuild it is increasing transaction log...
When I running this below index rebuild it is increasing transaction log size so much ...while actually reorganize incraeses the space...USE [xyz] GO ALTER INDEX [PK_Applications] ON...
View ArticleUnable to login into sql server database engine
Hi Friends, This is the error we are getting while logging into SQL Server 2008 R2 in INMUk05. It is not letting us to login into SQL Server. \ =================================== Error connecting to...
View ArticleTransfer database task giving Error
Error: The Execute method on the task returned error code 0x80131500 (ERROR : errorCode=-1073548784 description=Executing the query "CREATE USER [SYS\SQL_Server] WITH DEFAULT_SCHEMA=[..." failed with...
View Article