PhD Social Science : How to Install Microsoft SQL Enterprise Edition at Linux … . Cover Debian And RPM … . CODE BY SKRAITO ( GOD HUSBAND ) WITH BLAZINGLIGHT ( LORD JESUS CHRIST ) … . TUTORIAL TOO … . WE RELEASE FOR … . LICENSE APPLY … .

BEFORE WE BEGIN WE SELL SUPPORT KID ON HOW TO OPERATE THIS DATABASE LIVE COMMENT OR CHAT LIVE TO US … .

Quickstart: Install SQL Server and create a database on Ubuntu … .

In this quickstart, you install SQL Server 2025 . Then you can connect with sqlcmd to create your first database and run queries.

OFFLINE INSTALL … .

GET THE PACKAGE FOR DEBIAN AND RPM FROM

https://drive.google.com/drive/folders/1bL2ITPkHEJbu2CMxylr3wHursj1WAzxc?usp=sharing

Your password should follow the SQL Server default password policy. By default, the password must be at least eight characters long and contain characters from three of the following four sets: uppercase letters, lowercase letters, base-10 digits, and symbols. Passwords can be up to 128 characters long. Use passwords that are as long and complex as possible.

  1. Install the database engine package. Use one of the following commands based on your platform. Replace the package file name in this example with the exact name you downloaded.PlatformPackage install command :

RHEL sudo dnf -y install ./mssql-server_versionnumber.x86_64.rpm

  1. Ubuntu sudo apt-get install ./mssql-server_versionnumber_amd64.deb 

THAT’S ALL FOR OFFLINE INSTALL … .

FOR ONLINE INSTALLATION :

UBUNTU :

STEP 1 :

curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | sudo gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg

STEP 2 Manually download and register the SQL Server Ubuntu repository:
curl -fsSL https://packages.microsoft.com/config/ubuntu/26.04/mssql-server-2025.list | sudo tee /etc/apt/sources.list.d/mssql-server-2025.list
INSTALL SQL SERVER

sudo apt-get update
sudo apt-get install -y mssql-server
    After the package installation finishes, run mssql-conf setupand follow the prompts to set the saPassword and choose your edition. The following SQL Server editions are freely licensed: Evaluation, Developer, and Express.
    sudo /opt/mssql/bin/mssql-conf setup
    
    Your password should follow the SQL Server default password policy. By default, the password must be at least eight characters long and contain characters from three of the following four sets: uppercase letters, lowercase letters, base-10 digits, and symbols. Passwords can be up to 128 characters long. Use passwords that are as long and complex as possible.
    
    
    When the configuration is done, verify that the service is running:
    
    Bash
    systemctl status mssql-server --no-pager
    
    If you plan to connect remotely, you might also need to open the SQL Server TCP port (default 1433) on your firewall.
    
    At this point, SQL Server is running on your Ubuntu machine and is ready to use.
    

    Disable the SA account as a best practice

    When you connect to your SQL Server instance using the system administrator (sa) account for the first time after installation, it’s important for you to follow these steps, and then immediately disable the sa account as a security best practice.

    1. Create a new login, and make it a member of the sysadmin server role.
      • Depending on whether you have a container or non-container deployment, enable Windows authentication, and create a new Windows-based login and add it to the sysadmin server role.

    Install the SQL Server command-line tools

    To create a database, you need to connect with a tool that can run Transact-SQL statements on SQL Server. The following steps install the SQL Server command-line tools: sqlcmd utility and bcp utility.

    Use the following steps to install the mssql-tools18 for SQL Server 2025 (17.x) on Ubuntu

    1. Enter superuser mode.
    2. Bash sudo su
    3. Register the Microsoft repository for Ubuntu 24.04.Bash curl -sSL -O https://packages.microsoft.com/config/ubuntu/24.04/packages-microsoft-prod.deb
    4. Install the repository package:Bashsudo dpkg -i packages-microsoft-prod.deb
    5. Exit superuser mode.Bashexit
    1. Update the sources list and run the installation command with the unixODBC developer package.Bashsudo apt-get update sudo apt-get install mssql-tools18 unixodbc-dev To update to the latest version of mssql-tools, run the following commands:
    2. sudo apt-get update sudo apt-get install mssql-tools18
    3. Optional: Add /opt/mssql-tools18/bin/ to your PATH environment variable in a Bash shell.
    4. To make sqlcmd and bcp accessible from the Bash shell for login sessions, modify your PATH in the ~/.bash_profile file with the following command:
    5. echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bash_profile source ~/.bash_profile To make sqlcmd and bcp accessible from the Bash shell for interactive and non-login sessions, modify the PATH in the ~/.bashrc file with the following command:Bashecho 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc source ~/.bashrc

    Connect locally

    The following steps use the sqlcmd utility to locally connect to your new SQL Server instance. Download and install the sqlcmd utility for Windows, Linux.

    for windows : https://drive.google.com/drive/folders/1bL2ITPkHEJbu2CMxylr3wHursj1WAzxc?usp=sharing the one with .msi

    Download and install sqlcmd (Go)

    sqlcmd (Go) can be installed cross-platform, on Microsoft Windows, macOS, and Linux. Versions newer than 1.6 might not be available in all package managers. There’s no estimated date yet for their availability.

    FOR LINUX :

    Download and install sqlcmd (Go)

    sqlcmd (Go) can be installed cross-platform, on Microsoft Windows, macOS, and Linux. Versions newer than 1.6 might not be available in all package managers. There’s no estimated date yet for their availability.

    Choose one of the following options to install sqlcmd (Go) on Linux.

    apt (Debian/Ubuntu)

    1. Import the public repository GPG keys.Bashcurl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc
    2. Add the Microsoft repository, where the ubuntu/20.04 segment might be debian/11ubuntu/20.04, or ubuntu/22.04.
    3. Bashadd-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/20.04/prod.list)"
    4. Install sqlcmd (Go) with apt.
    5. Bashapt-get update apt-get install sqlcmd

    yum (Fedora) / CENTOS / REDHAT

    1. Import the Microsoft repository key.Bash
    2. rpm --import https://packages.microsoft.com/keys/microsoft.asc
    3. Download the repository configuration file, where the fedora/32 segment might be opensuse/42.3rhel/8, or sles/15.
    4. If the version of your OS doesn’t directly correspond to one of those options, you might be able to use a repository configuration file from a version.Bash
    5. curl -o /etc/yum.repos.d/packages-microsoft-com-prod.repo https://packages.microsoft.com/config/fedora/40/prod.repo
    6. Install sqlcmd (Go) with yum.Bash
    7. dnf install sqlcmd

    FOR WINDOWS DOWNLOAD FROM :

    https://drive.google.com/drive/folders/1bL2ITPkHEJbu2CMxylr3wHursj1WAzxc?usp=sharing

    License and pricing

    https://www.machophd.org/2026/06/22/elitez-0day-xc-our-news-phd-social-science-for-xwindow-xor-tor-behonest-and-only-per-machine-or-we-sue-or-it-become-virus-from-lord-jesus-christ-we-release-for-license-apply/

    SQL Server is licensed the same for Linux and Windows. For more information about SQL Server licensing and pricing,

    SEE OUR LICENSE PART … .

    1. Run sqlcmd with parameters for your SQL Server name (-S), the user name (-U), and the password (-P). In this tutorial, you connect locally, so the server name is localhost. The user name is sa and the password is the one you provided for the sa account during setup.
    2. sqlcmd -S localhost -U sa -P '<password>'  NoteNewer versions of sqlcmd are secure by default. For more information about connection encryption, If the connection doesn’t succeed, you can add the -No option to sqlcmd to specify that encryption is optional, not mandatory.You can omit the password on the command line to be prompted to enter it.If you later decide to connect remotely, specify the machine name or IP address for the -S parameter, and make sure port 1433 is open on your firewall.
    3. If successful, you should get to a sqlcmd command prompt: 1>.
    4. If you get a connection failure, first attempt to diagnose the problem from the error message.

    Create and query data

    The following sections walk you through using sqlcmd to create a new database, add data, and run a basic query.

    For more information about writing Transact-SQL statements and queries. ASK FOR SUPPORT OR LIVE CHAT … .

    Create a new database

    The following steps create a new database named TestDB.

    1. From the sqlcmd command prompt, paste the following Transact-SQL command to create a test database:
    2. CREATE DATABASE TestDB;
    3. On the next line, write a query to return the name of all of the databases on your server:
    4. SELECT Name FROM sys.databases;
    5. The previous two commands aren’t executed immediately. You must type GO on a new line to execute the previous commands:
    6. GO

    Insert data

    Next create a new table, dbo.Inventory, and insert two new rows.

    1. From the sqlcmd command prompt, switch context to the new TestDB database:
    2. USE TestDB;
    3. Create new table named dbo.Inventory:
    4. CREATE TABLE dbo.Inventory ( id INT, name NVARCHAR (50), quantity INT, PRIMARY KEY (id) );
    5. Insert data into the new table:
    6. INSERT INTO dbo.Inventory VALUES (1, 'banana', 150); INSERT INTO dbo.Inventory VALUES (2, 'orange', 154);
    7. Type GO to execute the previous commands:
    8. GO

    Select data

    Now, run a query to return data from the dbo.Inventory table.

    1. From the sqlcmd command prompt, enter a query that returns rows from the dbo.Inventory table where the quantity is greater than 152:
    2. SELECT * FROM dbo.Inventory WHERE quantity > 152;
    3. Execute the command:
    4. GO

    Exit the sqlcmd command prompt

    To end your sqlcmd session, type QUIT:

    SQL

    QUIT

    TUTORIAL FOR RPM MICROSOFT SQL LINUX WITH RPM LIKE CENTOS FEDORA AND REDHAT

    Quickstart: Install SQL Server and create a database on Red Hat Enterprise Linux

    In this quickstart, you install SQL Server 2025 (17.x) on Red Hat Enterprise Linux (RHEL) 9.x or 10.x. Then you connect by using sqlcmd to create your first database and run queries.

    To configure SQL Server on RHEL 10, run the following commands in a terminal to install the mssql-server package:

    1. Download the SQL Server 2025 (17.x) Red Hat 10 repository configuration file:
    2. sudo curl -o /etc/yum.repos.d/mssql-server.repo https://packages.microsoft.com/config/rhel/10/mssql-server-2025.repo  Tip
    3. If you want to install a different version of SQL Server, versions of this article.
    4. Run the following command to install SQL Server:
    5. sudo dnf install -y mssql-server
    6. Optionally, if you want to run SQL Server as a confined application, install the mssql-server-selinux package, which enables custom policies. sudo dnf install -y mssql-server-selinux
    7. After the package installation finishes, run mssql-conf setup by using its full path. Follow the prompts to set the sa password and choose your edition. As a reminder, the following SQL Server editions are freely licensed: Evaluation, Developer, and Express.
    8. sudo /opt/mssql/bin/mssql-conf setup

    Your password should follow the SQL Server default password policy. By default, the password must be at least eight characters long and contain characters from three of the following four sets: uppercase letters, lowercase letters, base-10 digits, and symbols. Passwords can be up to 128 characters long. Use passwords that are as long and complex as possible.

    1. When the configuration is done, verify that the service is running:Bashsystemctl status mssql-server
    2. To allow remote connections, open the SQL Server port on the RHEL firewall. The default SQL Server port is TCP 1433. If you’re using FirewallD for your firewall, use the following commands:Bashsudo firewall-cmd --zone=public --add-port=1433/tcp --permanent sudo firewall-cmd --reload

    At this point, SQL Server is running on your RHEL machine and is ready to use.

    Disable the SA account as a best practice

    When you connect to your SQL Server instance using the system administrator (sa) account for the first time after installation, it’s important for you to follow these steps, and then immediately disable the sa account as a security best practice.

    1. Create a new login, and make it a member of the sysadmin server role.
      • Depending on whether you have a container or non-container deployment, enable Windows authentication, and create a new Windows-based login and add it to the sysadmin server role.
    1. Connect to the SQL Server instance using the new login you created.
    2. Disable the sa account, as recommended for security best practice.

    Install the SQL Server command-line tools

    To create a database, you need to connect to the SQL Server instance using a tool that can run Transact-SQL statements. The following steps install the SQL Server command-line tools: sqlcmd utility and bcp utility.

    Use the following steps to install the mssql-tools18 on Red Hat Enterprise Linux.

    1. Download the Microsoft Red Hat repository configuration file.
      • For Red Hat 10, use the following command to download the Microsoft Red Hat repository configuration file from the RHEL 9 repo. The same versions of tools also work for RHEL 10.

    curl https://packages.microsoft.com/config/rhel/9/prod.repo | sudo tee /etc/yum.repos.d/mssql-release.repo

    1. f you had a previous version of mssql-tools installed, remove any older unixODBC packages.
    2. sudo yum remove mssql-tools unixODBC-utf16 unixODBC-utf16-devel
    3. Run the following commands to install mssql-tools18 with the unixODBC developer package.
    4. sudo yum install -y mssql-tools18 unixODBC-devel To update to the latest version of mssql-tools, run the following commands:
    5. sudo yum check-update sudo yum update mssql-tools18
    6. Add /opt/mssql-tools18/bin/ to your PATH environment variable in a Bash shell.To make sqlcmd and bcp accessible from the Bash shell for login sessions, modify your PATH in the ~/.bash_profile file with the following command:
    7. echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bash_profile source ~/.bash_profile
    8. To make sqlcmd and bcp accessible from the Bash shell for interactive and non-login sessions, modify the PATH in the ~/.bashrc file with the following command:
    9. echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc source ~/.bashrc
    1. Run sqlcmd with parameters for your SQL Server name (-S), the user name (-U), and the password (-P). In this tutorial, you connect locally, so the server name is localhost. The user name is sa and the password is the one you provided for the sa account during setup.
    2. sqlcmd -S localhost -U sa -P '<password>'  NoteNewer versions of sqlcmd are secure by default. For more information about connection encryption, see sqlcmd utility for Windows, Linux and macOS. If the connection doesn’t succeed, you can add the -No option to sqlcmd to specify that encryption is optional, not mandatory.You can omit the password on the command line to be prompted to enter it.If you later decide to connect remotely, specify the machine name or IP address for the -S parameter, and make sure port 1433 is open on your firewall.
    3. If successful, you should get to a sqlcmd command prompt: 1>.
    4. If you get a connection failure, first attempt to diagnose the problem from the error message.

    Create and query data

    The following sections walk you through using sqlcmd to create a new database, add data, and run a basic query.

    Create a new database

    The following steps create a new database named TestDB.

    1. From the sqlcmd command prompt, paste the following Transact-SQL command to create a test database:
    2. CREATE DATABASE TestDB;
    3. On the next line, write a query to return the name of all of the databases on your server:
    4. SELECT Name FROM sys.databases;
    5. The previous two commands aren’t executed immediately. You must type GO on a new line to execute the previous commands:
    6. GO

    Insert data

    Next create a new table, dbo.Inventory, and insert two new rows.

    1. From the sqlcmd command prompt, switch context to the new TestDB database:
    2. USE TestDB;
    3. Create new table named dbo.Inventory:
    4. CREATE TABLE dbo.Inventory ( id INT, name NVARCHAR (50), quantity INT, PRIMARY KEY (id) );
    5. Insert data into the new table:
    6. INSERT INTO dbo.Inventory VALUES (1, 'banana', 150); INSERT INTO dbo.Inventory VALUES (2, 'orange', 154);
    7. Type GO to execute the previous commands:
    8. GO

    Select data

    Now, run a query to return data from the dbo.Inventory table.

    1. From the sqlcmd command prompt, enter a query that returns rows from the dbo.Inventory table where the quantity is greater than 152
    2. SELECT * FROM dbo.Inventory WHERE quantity > 152;
    3. Execute the command:
    4. GO

    Exit the sqlcmd command prompt

    To end your sqlcmd session, type QUIT:

    SQL

    QUIT

    Loading

    Leave a Reply

    Your email address will not be published. Required fields are marked *