Error 500022, no idea about error
I have no idea about below error:Error 500022, severity 16, state 1 was raised, but no message with that error number was found in sys.messages. If error is larger than 50000, make sure the...
View ArticleRegional settings is not effecting in SQL Server
Hi All,I made changes to the regional and language (made decimal = ,) of the windows server 2008 R2 Standard but the database still not accepting comma as a decimal point.Tried restarting the SQL...
View ArticleSQL Server Documentation
Hello ExpertsI am new to this SQL Server Documentation process and I have been assigned to document our servers. My question is what information and specifications of the servers should be included in...
View ArticleCheck non-clustered index creation date
Hi all~~ are there any method we can check the creation date of the non-clustered index ??
View ArticleTFS 2012 Database /Project Collection Restore in attached state
My Question is:I consider tfs app server failover scenario:I have backuped attached tfs collections (databases). I cant afford to detach for each backup. If app server will crash I should recover the...
View ArticleAutomatic shrink job
Dear All,I wanted to create a job in SQL which would automatically shrink a Transactional log file or files when the transactional log backup gets to a particular size please?Thank you in advance!
View ArticleWhat is Difference Between Count(), Scope_identity(), @@identity
Dear sir/madam.I have confusing when I am using Count(), Scope_identity(), and @@identity, these all functions have same work to return the last/ maximum value which is produced by the identity column....
View ArticleAd Hoc Distributed Queries
Hello ExpertsI was trying to enable my 'ad hoc distributed queries' using sp_configure 'show advanced options', 1; RECONFIGURE; sp_configure 'Ad Hoc Distributed Queries', 1; RECONFIGURE; GObut I am...
View ArticleHaving trouble while trying to attach an existing database in SQL Sever 2005
I'm getting this error message while I try to get some database file attached which was previously detached from MS SQL Server 2005. Anyone here who can guide me to make a solution for this??Thanks in...
View ArticleTo Find the deadlock
Hi,it is possible to find the DEADLOCK with out using sql profiler and DBCC trace on.if any sql store procedure or any sql server query to find the sql server deadlock.Thanks..,
View ArticleStored Procedure Contents Getting Deleted Randomly
Has anyone had any experience with the contents of a stored procedure getting deleted? The object is still visible in object explorer, but when you go to modify the contents it is empty.I just started...
View ArticleCreate task schedule in SQL job
Hai,I have in windows Task Schedular a task that runs every night. Is it possible to create in sql 2008 a job that will start that Task Schedular task?Can you give me an example how to do that? Is that...
View Articlesecurity patch MS11-049 needed for sql 2008 R2 SP2
My Database engine version is:SQLServer 2008 R2(SP2)- 10.50.4260.0(X64) Jul 11 2012 15:47:13 Copyright(c) Microsoft Corporation Enterprise Edition(64-bit)onWindows NT 6.1<X64>(Build...
View ArticleCannot start SQL Server 2008R2 service on Windows 7 laptop
My SQL Server instance on my laptop was working fine. After bringing my laptop home last weekend and connecting through my work's VPN and then bringing it back to work on Monday, it now cannot start...
View ArticleTransfer data from a table to another table
Hello I want to transfer data from a table in one server to another table in a different server, I want to do this on a nightly job, what will be the best way, please advise, thank you.
View ArticleMerging Suggested Indexes
Good morning,I've been looking at some query plans this morning to try and improve the performance of some of our longer/slower queries.I'm wondering if there's a way to use the information from the...
View ArticleAlwaysOn Async to Sync to Async
Hi all,SQL Server 2012 or 2014, we can have primary replica and secondary replica in asyncronous mode, it is possible to switch from async mode to sync mode on the fly? And then back to Async? I mean...
View ArticleCollation trouble with linked servers.
I have linked a database in a SQLServer2012 (11.03.3128) to a SQLServer 2005 (9.0.3042) databaseThe databases in question use the following collation:2012: Latin1_General_100_CS_AS2005:...
View ArticleSQL Server 2008 R2 Memory Pressure
I have a SQL Server 2008 R2 Standard (x64 bit). It has 64GB of memory, but memoryclerk_sqloptimizer consumes about 36 GB. How should I clear it and identify what cause the growth of...
View ArticleMsg 16943, Level 16, State 4, Line 27: Could not complete cursor operation...
IF EXISTS (SELECT * FROM sysobjects WHERE xtype = 'U' AND name = 'AKG111') BEGIN DROP TABLE AKG111; PRINT 'Table, AKG111 is dropped'; END GO IF EXISTS (SELECT * FROM sysobjects WHERE xtype = 'U' AND...
View Article