Author

SQL Jobs takes longer to run via SQL Agent

Issue: SQL Job takes longer to run via SQL Agent. Very fast when run manually but takes a very long time to run via scheduled. Stored Procedure times out when called from app. Stored Procedure runs very fast when ran manually. Resolution: Restart Windows and database server.

Always On Replica Synchronization Status

Database Synchronization Status Synchronized = Secondary Replicas has caught up. No Data Loss. Synchronizing = Secondary Replicas is still catching up. Data Loss. Note: For Always On setup using “Asynchronous commit” Availability Mode, it is normal for the database to be in “Synchronizing” status. For Always On setup using “Synchronous commit” Availability Mode, the database... » read more

Always On Availability Groups transport has detected a missing log block for availability database

Error: DESCRIPTION:   Always On Availability Groups transport has detected a missing log block for availability database “xxxxx”. LSN of last applied log block is (85862:908824:0). Log scan will be restarted to fix the issue. This is an informational message only. No user action is required. Low transaction throughput on Always On Availability Group primary replica... » read more

Purge Sql Job History

Problem: Job history window takes a long time or timeout. Fix: Make sure you purge the sql job history log. SQL Server Agent Properties -> History -> Check the 2 options. Note: “Remove agent history” is an one time event. Have to set the “Limit size of job history log” option to make it a... » read more

SQL Server Trace Flag

Trace flags are switches that adminstrators or developers can use to change the behavior of SQL Server. These are added by the development team, often to help debug or diagnose performance issues, according to BOL, but they are increasingly being used as feature flags to enable behavior that some customers may want, but Microsoft doesn’t want... » read more

Password Protect Excel File

How do I set up a password on Excel files? This method only works with Windows 10 and beyond versions of Excel. Open up the Excel file you want to protect. Go to File. Then click on Info. Go to Protect Workbook. Then click on Encrypt with Password. Enter and confirm the password you want.... » read more

Excel Auto Fill Columns with Numeric Value

Fill a column with a series of numbers Select the first cell in the range that you want to fill. Type the starting value for the series. Type a value in the next cell to establish a pattern. … Select the cells that contain the starting values. … Drag the fill handle. Sources: https://support.microsoft.com/en-us/office/automatically-number-rows-76ce49e3-d8d2-459b-bd85-ee1d3973e6e6

Moving Files in SVN

Use Repo Brower to move files to retain log history of file. Method #1 – Copy files to new folder and delete files in old folder This will not retain history. Method #2 – Move and Drag files to new folder via Repo Brower This will retain history.