How to attach a database in standby mode(SQL 2012)?
Hi experts, Let's assume I build log shipping in standby and my OS disk fail. I reinstall a new OS and due to some reasons, I want to read the data in standby DB(allow data loss). How do I attach a...
View ArticleHow many recursions finished already?
Hello,My recursive CTE query is dealing with quite massive data volume (tens of millions of records) and there could be up to 3.5k iterations thus the query is running for many hours. Naturally, this...
View ArticleIntermittent Connection Failures using Integrated Authentication
Hi,We have an application server connects to a SQL 2008 R2 (sp2 cu7) server using a domain account and integrated authentication. It got timed out when trying to connect to the SQL server after 15...
View ArticleMEMORYCLERK_SQLCONNECTIONPOOL consuming memory
Hi,In one of my Server which has 16GB of RAM out of which 12 GB is allocated to buffer pool with lock pages in memory enabled.I am seeing a lots of memory error (701)in error logs.During my diagnosis i...
View ArticleError when restoring the file .bak (created in SQL 2005) in SQL Server 2012 ?
Hi everyone,I am trying to import a .bak file (created by SQL Server 2005) into SQL Server 2012, but not successfull.Could you please tell me how to do that ?Thank you very much.Tai
View ArticleHow to Sum multiple Column with multiple value with SQL?
I am looking for a solution to the following: Go in to the users table and find a user who has listed items on the site. In this users table, there is no column about auctions. Instead, it is...
View ArticleHow to generate event to be captured by the SQL Audit
I have a server audit specification that track some actions (for PCI) including FAILED_LOGIN_GROUP, LOGIN_CHANGE_PASSWEORD_GROUP etc. I see in the audit file many recent login fails audits (which means...
View ArticleHow data is populated in various DMVs
Hi All,I have been using different DMVs everyday as part of my DBA activities. Suddenly i got a question" from where the data is manipulated in the DMVs and DMFs? What is that internally happening...
View ArticleSQL Linked Server Provider for COBOL
Working with SQL 2008 or 2012, I have a legacy COBOL dbms to which I need to connect via SQL Server. I'm thinking I need to set up a linked server but I don't have the appropriate provider to...
View Articlesql server scale out with distributed partitioned views
Hi. Our company manages an online auction and shopping website(something like ebay), and I have questions regarding to scaling out solutions. we are running Sql Server 2008 R2 Enterprise edition(which...
View ArticleAn error 1069 - )The service did not start due to logon failure) occurred...
Hi All, We seem to be being plagued by the error below by our SQL Server agent. This happens almost everytime we restart the server that has been running for a day or two. Our SQL Server Agent uses a...
View ArticleLock request time out period exceeded, error 1222" will appear when I try to...
Hi All,Lock request time out period exceeded, error 1222" will appear when I try to expand the tables list in database in SQL Server Management Studio 2012 (Enterprises).I am creating partition on my...
View ArticleSQL 2K8R2 Start up ... TempDB clears then takes 2 hours to start up and let...
Evening,Have a strange issue.When we restart SQL Server we are unable to connect for almost 2 hours afterwards.Connecting to SQL does not fail it just hangs.If I open the active SQL errorlog in notepad...
View ArticleCalculating Table Scan Time
I need to run a select from table with 400,000,000 records where there column is not indexed. The column is a float and I'm simply doing a select where X > YI'm trying to calculate how long an...
View ArticleBackup
HI, What will happen to data being modified, when backup process is running... does backup process creates any sort of new transaction logs?... if not how do we recover modified dataa.. and from...
View ArticleLog FIle Deletion
Hi Gurus,I do take transaction log backup of the database on weekend. Do i have to store it for reference or can i delete the old log files after some days.Because space is constraint for me. what i do...
View ArticleDeprecation of Trace -T272
Anyone knows if trace flag -T272 is going to be deprecated? I am using it to avoid the jumping of identity value in SQL 2012...
View Articlehow to check is there any long transaction happening in sql tables
Hi All,I need a SP that run every minute and send a email , if there any long transaction is happening on a table.Appreciate your help on this code.Thanks !Naveen
View Article