Powershell script to generate alert whenever any database properties changes.
Currently in my environment, we do not have any monitoring tool. I would like to deploy a Powershell script to trigger an email alert whenever there will be any manual changes to database properties...
View ArticleSQL Agent jobs to alternately target TST or PRD environments
(Best forum for this?...) Server #1 is PRD SQL 2014 instance running Always On AG Listener. Server #2 is TST SQL 2014 instance running Always On AG Listener. Server #3 is a standalone SQL 2017...
View ArticleBackup/Resotre AG group question
Hi Guy's,I have a question regarding the backup of a DB in Always on group in SQL 2016.We have a single DB in a AG group and everything works correctly. Now we want to setup a backup plan.Normaly we do...
View ArticleUnable to connect to named instance in SQL Server 2017
Just installed two instances of the SQL Server 2017 on a VM. One is a default instance and another is a named instance. I can connect to the default instance fine using the SSMS 2017 from my desktop...
View ArticleSQL Server changes that require a restart
I'm looking for an overview of which SQL Server changes require a restart. This is not about the parameters that are listed in the sys.configurations (here I know that a restart is required if the...
View ArticleAzure VM SQL Server 2016 Diff backups are failing.
Hi All,I have SQL Server 2016 Developer edition on Azure VMÂ and this Instances has Databases as well. 1.We configured Full and Diff backups on those databases. 2.Full backup working always fine...
View ArticleI Get an Error When attempting to Restore .bak file to an Empty Database
I get an Error when I attempt to restore a .bak file to an Empty database. Error belowThe file 'D:\SQL_Server_Database\WSS_Content_SP.mdf' cannot be overwritten. It is being used by database...
View ArticleIncrease performance for current running Stored Procedures?
Hello is there any way by chance to increase performance for currently running Stored Procedures on Production without changing the code within Stored Procedures?I know it sounds almost impossible but...
View ArticleMinimal permissions to tune indexes?
Hello a developer requested to have permissions to run SQL Profiler.From my understanding user needs to be within sysadmin role or be granted ALTER trace permission which sounds too high to grant.What...
View ArticleSET STATISTICS impact not setting to OFF ?
Hello if I use one of the SET STATISTICS commands like:Â SET STATISTICS IO ONAnd not setting back to OFF...are there any negative impacts?Like will other Developer users or queries on the entire SQL...
View ArticleSSMS stops working in SQL 2016 when clicking permissions
Hi All,After installing Microsoft SQL 2016 from scratch , we noticed that SSMS stop working when clicking permission tab(Attached)I tried to install SQL 2016 SP1 with no effect.Any IdeasThanks
View ArticleChange 'Allow Snapshot' for tempdb itself?
Ok, so we have a database 'AAA' with Read Committed snapshot On, as per general advice regarding blocking issues.We were then approached to put another vendor's database 'BBB' on the same server.The...
View ArticleSQL 2016 CXCONSUMER wait type ?
Hello one of our Developers complains their query/process is slow and notice it's SPID currently running has CXCONSUMER wait type listed.I briefly researched that this is a new wait type and might be...
View ArticleAdd feature: Disable outlining globally
Feel free to move this to the proper forum.Add feature: Disable outlining globallyThere is not enough space between outlining and the query if we enable line numbers.When clicking at the front of the...
View ArticleMerge Confusion Help please.
Ok so i have an ETL process that right now im Importing 5 days worth of data and then putting that in a temp table, deleting from the production table where the record exists in the temp table and then...
View ArticleCreate new indexes and rebuild/reorg indexes maintenance during active user...
Hello, is it possible to create new indexes at the same time while users are actively running select queries and not block them (SQL 2016) ?Also during rebuild/reorg indexes maintenance same time users...
View Articleunable to backup/restore database with SQL Server 2019 - works ok with 2016
We have an application which is currently deployed using SQL Server 2016.As part of its features a user connected to a Support website is able to backup and restore the database.The webservice relays...
View ArticleSQL Server backups and mirror backup files.
Hi,Currently, I am using, REDGATE backup and it supports, mirroring backup files to the network foldersSQL Server T-SQLÂ also supports backup with mirroring, I don't see mirror option in...
View ArticleSSMS does not take the Entered password while running as a Different user
We need to run SSMS with our Elevated accounts. but, the password keeps changing every 24 hours.So, if run SSMS with the latest password now and close it after using today.I cannot run SSMS with the...
View ArticleAfter large delete on table - Table Fragmentation ?
Hello, App team is planning on deleting millions or rows in a large table.Table has Foreign Keys/Constraints/Indexes but no Nonclustered index.After they disable Foreign Keys/Constraints is there such...
View Article