Quickstart: Install SQL Server and create a database on Ubuntu

https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-ubuntu?view=sql-server-linux-2017 Install SQL Server To configure SQL Server on Ubuntu, run the following commands in a terminal to install the mssql-server package. Important If you have previously installed a CTP or RC release of SQL Server 2017, you must first remove the old repository before registering one of the GA repositories. For more information, see Change repositories from […]

MSQL backup on linux

/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -Q “BACKUP DATABASE [MYDATABASE_DEV] TO DISK = N’/var/opt/mssql/data/MYDATABASE-20180615.bak’ WITH NOFORMAT, NOINIT, NAME = ‘MYDATABASE_STD50_DEV’, SKIP, NOREWIND, NOUNLOAD, STATS = 10”

MSQL on linux : Fix locale::facet::_S_create_c_locale name not valid

https://github.com/Microsoft/mssql-docker/issues/163 https://github.com/Creepsky/creepMiner/issues/122 First, this report is not just about issue with mssql-docker but I suspect it is related to about mssql-tools for Linux in general, more specifically the sqlcmd. (Not sure where would be better and more accessible by others place to report it.) I run docker container based on ubuntu:latest image and I install the mssql-tools in order to be able […]

MSQL Pssdiag/Sqldiag Manager

https://blogs.msdn.microsoft.com/sqlcat/2017/08/11/collecting-performance-data-with-pssdiag-for-sql-server-on-linux/ https://github.com/Microsoft/DiagManager https://github.com/Microsoft/DiagManager/tree/master/LinuxPSSDiag What is Pssdiag/Sqldiag Manager? Pssdiag/Sqldiag Manager is a graphic interface that provides customization capabilities to collect data for SQL Server using sqldiag collector engine. The data collected can be used by SQL Nexus tool which help you troubleshoot SQL Server performance problems. This is the same tool Microsoft SQL Server support engineers use to […]

Using some best practices for SQL Server in Azure VM (IaaS) to get MAX performance

https://sqlwithmanoj.com/2016/06/30/using-some-best-practices-for-sql-server-in-azure-vm-iaas-to-get-max-performance/ I was setting up an environment on Azure Premium Storage (G-Series) server for my Project, and was not getting the performance I was expecting. The comparison was against an existing Database Server setup on an On-Premise VM. Microsoft Azure Premium Storage delivers high-performance, low-latency disk support for VMs running I/O-intensive workloads. Uses SSD (Solid State Drives) to store your data and Caching capability to provides highest throughput […]


http://cloudbasic.net/documentation/rds-sql-server-backup-restore-s3/ Backup database to S3 Under RDS Dashboard create a new option group with “SQLSERVER_BACKUP_RESTORE” option. Update your RDS instance to use the newly created option. Open SQL Management Studio, connect to RDS database and execute the following to kick off the backup: USE [msdb] GO DECLARE   @return_value int EXEC  @return_value = [dbo].[rds_backup_database]       @source_db_name […]

Best Practices for SQL Server in Azure

http://www.oakwoodsys.com/best-practices-sql-server-azure/ Most of the typical items that DBAs will hit in tuning out a server for SQL Server hold true in Azure. The three major spots you will usually focus on are OS configurations, storage configurations, and SQL Server instance configurations.  These are generalizations and, as your workload demands, there may be variations that are […]

How can I recover my MSQL sa Password?

http://www.itprotoday.com/microsoft-sql-server/q-how-can-i-recover-my-sa-password Q: I recently ran across a case where a company I worked with had lost their sa password. How can I reset the sa password? Do I need to reinstall SQL Server? A: No. In most cases you won’t have to reinstall SQL Server. If you have access to the Windows Server administrative password […]