DEV Community

WanjohiChristopher
WanjohiChristopher

Posted on • Edited on

4 1

SQL SERVER REMOTE CONFIGURATIONS ON LINUX

1.Connecting Remotely to SQL Server on Linux
Checking the ports running.

-To enable these connections remotely you will need to open the Linux firewall to accept traffic on those ports

-This action will depend on the type of firewall you are running on Linux. If you are not running any firewall, then you don't need to do anything since all traffic will be allowed by default.

 #### FIREWALLS ON UBUNTU
Enter fullscreen mode Exit fullscreen mode

There are two widely used firewalls that run on Ubuntu.
1.Uncomplicated Firewall (UFW) 
2. firewalld which is a separate package that requires installation. These two firewall packages run on different distros.

FINDING WHICH FIREWALL IS RUNNING ON LINUX

Let's find out if any of them are running:

NB/:if firewalld is not found check this documentation.[here] to install it.

NB:User Datagram Protocol (UDP) – a communications protocol that facilitates the exchange of messages between computing devices in a network. It's an alternative to the transmission control protocol (TCP). In a network that uses the Internet Protocol (IP), it is sometimes referred to as UDP/IP.

NB:The Transmission Control Protocol is one of the main protocols of the Internet protocol suite. It originated in the initial network implementation in which it complemented the Internet Protocol. Therefore, the entire suite is commonly referred to as TCP/IP.

Enable SQL Server Dedicated Administrator Connection(DAC)

2.Using DAC with SQLCMD

You need to be a member of the sysadmin fixed server role in order to use this feature. The "-A" switch is used to specify that the user is trying to connect to SQL Server using the Dedicated Administrator Connection.
The syntax to use DAC is mentioned below.
SQLCMD -S [SQL Server Name] -U [User Name] -P [Password] -A
NB: FOR MORE CHECK ON THE LINK ABOVE!
NB:ALSO check this link.[2]its interesting
CHEERS !!
Happy learning

API Trace View

How I Cut 22.3 Seconds Off an API Call with Sentry 👀

Struggling with slow API calls? Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more →

Top comments (0)

Postgres on Neon - Get the Free Plan

No credit card required. The database you love, on a serverless platform designed to help you build faster.

Get Postgres on Neon

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay