Git Product home page Git Product logo

sql-server-port's Introduction

How to know SQL Server Port

Step 1

  • Open your SQL Management Studio
  • Right Click in you SQL connection
  • Click in New Query
  • Paste and execute :
USE master
GO
xp_readerrorlog 0, 1, N'Server is listening on',N'', NULL, NULL, N'asc'
GO

it should show you the SQL Server Port. If this dont show you the port, do the next.

Step 2

  • Use Windows key(start) + R
  • Paste SQLServerManager15.msc and Enter
  • Select SQL Server Network Configuration
  • Select your SQL Server Instance
  • Right Click in TCP/IP and select enable
  • Do click again and select properties
  • Select IP Addresses tab and go to the end
  • If you know what port is free for use write it in TCP Port, apply changes and save, leap the next step and go to the end step.

How to know what Port is free

Step 3

  • Use Windows key(start) + q
  • find cmd and execute it with admin privileges.
  • write netstat -ano | findstr *PORT*, replace *PORT* for a por number, default SQl use 4033 or 4034, try this port
  • if dont appear a process listening in the console you can use it port in the previous step. Otherwise try another port.
  • Do the previous step again and use that port in TCP Port

Restart SQL Server

Step 4

  • Use Windows key(start) + R
  • Paste SQLServerManager15.msc and Enter
  • Select SQL Server Services and restar SQL Server and SQL Server Browser
  • all ready, that is your SQL Server Port and you can use step 1 again.

sql-server-port's People

Contributors

mextermin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.