New Record Identity Specification
When using a stored procedure to insert a new record into a table which has an identity specification column, how do I return the identity value?
View Articledefault database offline
Hi every one!I need your help to resolve a login problem. I am not able to login to sql server since my default database is offline (have done this accidentally in my laptop). Please guide me to login...
View ArticleError in database attach Error code:5105
Hi, While attaching Database Error throws as below...Pls help me to overcome this..... Error in attaching Database in sql 2000 Error 5105 Device Activation Error ,The physical file name...
View ArticleLock:Timeout
Hi,I'm using lock:timeout in SQL Profiler and traces and would like to identify moments where the user application stops because a lock:timeout.There is lock:timeout and lock:timeout (>0). Following...
View ArticleSQL Server 2008 SP3 - Enterprise - Database snapshot
Hi All !I want to use database snapshots. I know how to create, drop or use them. But, some questions:- can I restore them on a different sql server ? (I want to use them for my team training)- can I...
View ArticleHow 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 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 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 Article