An error occurred during recovery, preventing the database from restarting
We are running SQL Server 2014 Web Edition (64-bit). On three occasions now we have had two of our live secondary log shipping databases become unusable through the log shipping process. We ship logs...
View Articleget last full backup times
I've got the below and have several variation and still cant seem to find a perfect way to query the server to bring back that last full backup per db. I'm shopwing mutilple records in the backup set...
View ArticleI/O Errors
I am new to a job and have noticed the following in the server log, which is sometimes accompanied with the arrival of an email saying a deadlock was avoided, no user action is required."I/O is frozen...
View ArticleFull text search not returning certain results
We are running SQL 2014 SP1. We are using defined Full text indexes on several tables in the database. However, on one specific set of servers, a certain search will not return any data. This exact...
View ArticleThank you to the Forum
It's been a long time since I've posted this so we are long past due.Thank you to everyone who participates on this forum. Although I've been a member for a while, I rarely post. Nevertheless, I cannot...
View ArticleAlwaysOn failover cluster session failover
Hi Expert,I need a advice.1. Once fail over to secondary replica, what will happen to connected session in primary node? can the session fail over to secondary seamlessly or need to re-login. what...
View Articlehow to get XML SCHEMA COLLECTION definition
Hi All,I am trying to copy the table data from db to another db, because some tables has xml column with a schema collection, I would like to get difinition of the xml schema collection and create it...
View ArticleCheck if UNC path exists (It is folder, not file)
usual way to check if file existsDECLARE @File_Exists INT EXEC Master.dbo.xp_fileexist '\\serverB\SQL_Backup\file.bak', @File_Exists OUT print @File_Exists1And if check folder, can use "nul", but it...
View ArticleDrop database on secondary node after removed from Availability Group on...
Hi all,I have an environment with MS-SQL Server 2014 and always-on availability group configured (on 2-nodes).I'm writing a Powershell Script which removes the database from the availability group (on...
View ArticleRequired Permissions to Enable A Mirroring Session
Hi all,I have a permissions issue that I am hoping you can help me with. I have a Windows NT group that is used to delegate certain database responsibilities to other members of staff and I am trying...
View ArticleCursor stop query at specific time
This store procedure will get some executable queries from the select statement, the cursor will fetch each rows to execute the query and insert the queries into table_3 to mark as 'E'. Until 17:00,...
View ArticleEstimated Query Plans
Hi,First post.When viewing an estimated query plan for a stored procedure with multiple query statements, two things stand out to me and I wanted to get confirmation if I'm correct.1. Under...
View ArticleMSDTC
I recently took over an ETL system which uses linked servers to pull data from a number of source databases, which I'm in the process of migrating over to SSIS. We have, on average, about 5 source...
View ArticleEnsuring Upgrade Advisor is running properly?
I have a SQL Server 2008 instance that is running on "LiveServer" our production database (ProdDB) - and we need to upgrade to 2014. In order to do some upgrade testing, I spun up a VM with the same...
View ArticleTempDb on Drive Root
Does anyone know of any documentation that supports the placement of Tempdb files on the root of a drive, i.e T: instead of T:\tempdb. I am positive this is not a best practice, but when challenged...
View ArticleSQL Agent Jobs and Availability Groups
So this is my first foray into setting up AG on 2014, which will contain about 100 + SQL Agent jobs that are being converted from SQL 2008 R2. My plan for handling the converted jobs is as follows1)...
View ArticleHigh Availability / AG error
Hi,We just had to rebuild our listeners and AG groups.Everything is now synching correctly and appears to be fine...when I recieved this message in an eamil:There is currently no Replica defined as an...
View ArticleCan I use different index on main DB and mirror Database?
Hi all,We use SQL server always on feather on my database and we distribute statement on main database server and mirror database server for raise performance.My police for split statement is DML...
View ArticleSQL Server 2012 using SSIS 2014 in Agent Job
Hi there,I don't want to go in the details why, however I have following szenario:Server with SQL Server 2012 DB + Agent + Integration Services 2012 and additionally Integration Services 2014...
View ArticleInstallation Directories Folder
Just a question on an installation as I need to split out the binaries and system databases. I am right in thinking that the instance root directory (instance configuration screen) is for the binaries...
View Article