Video Resources for HA/DR (Always On)
Posted: April 6, 2022 Filed under: Uncategorized Leave a commentI have followed Russ Thomas courses on Pluralsight on SQL Admin topics.
The check list he suggested is a good starting point to follow along.
You may not need to memeorize the details for the topic but you can have a place to follow along to get the project done.
From an early video: Practical SQL Server High Availability and Disaster Recovery
https://app.pluralsight.com/library/courses/sql-server-high-availability-disaster-recovery/table-of-contents
A quick list to get the always On implemented along with details of other HA/DR solutions:
Mirrors, Log Shipping, FailOver Clustering.
You can find the Check list from course material:
In the course, he touches many aspects of administrations for SQL Availability Groups. It is a good source to check back when I need more information
or use a a pointer to find other documents for further reading.
Use .bacpac file to export your database in script
Posted: April 5, 2022 Filed under: Uncategorized Leave a commentYou can export your database as a .bacpac(data and schema) file from SSMS.
Right click on your database name>>Tasks>>Export Data-Tier Application (.bacpac file) This file has all your data and schema.
You can import this file as new database if you want to.
“Using the Import Data-tier Application Wizard
To launch the wizard, use the following steps:
Connect to the instance of SQL Server, whether on-premises or in SQL Database.
In Object Explorer, right-click on Databases, and then select the Import Data-tier Application menu item to launch the wizard.
….
“
Datetime or Date and Time in SQL Server
Posted: April 4, 2022 Filed under: Uncategorized Leave a commentA markup test for a blog from
Shift calculations (or same time every day)
Import Excel file(.xlsx) to SQL Server 2019
Posted: April 1, 2022 Filed under: Uncategorized Leave a commentWhen you try to import Excel file from SSMS, you may run into this error:
The ‘Microsoft.ACE.OLEDB.16.0’ provider is not registered on the local machine.
You need to make some changes on your machine to import Excel data.
Here are a few things you need to do:
- Download 64-bit Microsoft Access Database Engine 2016 Redistributable
https://www.microsoft.com/en-us/download/details.aspx?id=54920
accessdatabaseengine_X64.exe
and install it on your 64-bit machine.
- Use SQL Server 2019 Import and Export Data (64-bit) directly from Startup menu:
SQL Server 2019
SQL Server 2019 Import and Export Data (64-bit)
(you can pin the Import and Export Wizard to Start for easy access)Click to launch the app
Import your Excel file with Excel version “Microsoft Excel 2016” option.
Another option is to add an entry from Tools>>External tools to point to this 64-bit version:
C:\Program Files\Microsoft SQL Server\150\DTS\Binn\DTSWizard.exe
For example: I have added one entry ImportExcel64 to point to this 64 bit executable.
You can use this entry to start import Excel from SSMS to launch your import process.