sqlschool.gr logo

articles

Articles of SQLschool.gr Team

The SQL Server Browser service

Antonios Chatzipavlis
Friday 03 February 2012

Αν και είμαι σχεδόν σίγουρος ότι αρκετοί γνωρίζουν το συγκεκριμένο services, εντούτοις έχω εντοπίσει ότι υπάρχουν κενά στην γνώση γύρω από το συγκεκριμένο. Καθημερινά το βλέπω αυτό σε αρκετές εγκαταστάσεις…

Εισαγωγή

Ας ξεκινήσουμε με λίγη ιστορία.

Το συγκεκριμένο service εμφανίστηκε στην έκδοση του SQL Server 2005 σαν επέκταση του SQL Server Resolution Protocol (SSRP) του SQL Server 2000.

Σκοπός του

Ο σκοπός του συγκεκριμένου service είναι να παρέχει πληροφορίες σχετικά με το instance και το port στις εισερχόμενες κλήσεις για σύνδεση σε αυτό (instance).

Ο Ρόλος του

Παίζει σημαντικότατο ρόλο στις περιπτώσεις που έχουμε περισσότερα από ένα instance στην ίδια μηχανή.

Πώς το ξεκινάω/σταματώ

Το συγκεκριμένο service μπορώ να το βρω και να το ξεκινήσω / σταματήσω μέσα από το γνωστό Service.mmc αλλά και από command line.Tο προτεινόμενο όμως είναι να χρησιμοποιούμε τον SQL Server Configuration Manager.

Τι επιπτώσεις θα έχω αν το συγκεκριμένο service είναι σταματημένο;

Ανάλογα με την περίπτωση.

Εάν για παράδειγμα έχεις μόνο το default instance και στo default port (1433) είναι αδιάφορο αν θα είναι σταματημένο ή ξεκινημένο.

Συνάντηση με την κυρία Μαρία (από το δεν περνάς κυρά Μαρία δεν περνάς) θα έχεις στις εξής περιπτώσεις όπου το service είναι σταματημένο:

  • Όταν στο connection string δίνεις <servername>\<instancename>
  • Όταν στο connection string δίνεις <server ip>\<instancename>

Σε αυτή την περίπτωση για να μην δεις τη κυρά Μαρία θα πρέπει να δώσεις <server ip>,<port number>

Επίσης εάν στα instances έχεις πει να χρησιμοποιούν dynamic port το συγκεκριμένο service χρειάζεται για να γίνει η σύνδεση αλλιώς θα πας να πιεις καφέ με την κυρά Μαρία.

Τέλος αν είναι σταματημένο τα named instances δεν γίνονται publish στο δίκτυο. Αυτό σε κάποιους θα αρέσει!

Μερικές χρήσιμες συμβουλές

Εάν έχεις μόνο το default instance το οποίο ακούει στην 1433, τότε κλείστο, δεν υπάρχει νόημα να τρέχει ένα service που δεν κάνει τίποτα.

Εάν έχει οποιοδήποτε firewall. Θα πρέπει να έχεις βάλει την UDP 1434 στην exception list. Αυτή είναι η πόρτα που ακούει το εν λόγω service.

Εάν στην ίδια μηχανή έχεις SQL Server 2000 & SQL Server 2005/2008/2008 R2. Θα πρέπει να έχεις βάλει στον SQL Server 2000 τουλάχιστον SP3 για να μπορείς να παίξεις τον SQL Server 2000 με το SQL Server Browser service.

Εάν είσαι σε Cluster θα πρέπει να είναι ξεκινημένο σε όλα τα cluster nodes και μάλιστα με τις ίδιες ρυθμίσεις.

Το συγκεκριμένο service θα πρέπει να τρέχει πάντα με λογαριασμούς που έχουν τα ελάχιστα δικαιώματα. Αντιγράφω από τα BOL

  • Deny access to this computer from the network
  • Deny logon locally
  • Deny logon as a batch job
  • Deny logon through Terminal Services
  • Log on as a service
  • Read and write the SQL Server registry keys related to network communication (ports and pipes)

Ελπίζω με όλα τα παραπάνω να μπήκαν κάπως τα πράγματα σε μια σειρά

/*
Keep Rocking with SQL Server
antonch
*/

Antonios Chatzipavlis

Antonios Chatzipavlis

Antonios is a Data Solutions Consultant and Trainer. He has been working in IT since 1988. In his career, he has worked as senior developer, IT Manager, Solutions Architect and IT Consultant. Since 1995 he has been devoted on new technologies and software development tools, mainly by Microsoft, either by training company staff and colleagues or assisting them in design, development and implementation as a consultant or chief developer. He has focused in Databases and Data Science since 1995. He specialized in Microsoft SQL Server since version 6.0 in areas like SQL Server Internals, Database Design and Development, Business Intelligence and in 2010 he has started working with Azure Data Platform, NoSQL databases, Big Data Technologies and Machine Learning. He is an active member of many IT communities in Greece, answering colleagues' questions and writing articles in his web site. He is the owner of SQLschool.gr which is a community portal with a lot of information about Microsoft SQL Server. He has been a Microsoft Certified Trainer (MCT) since 2000. Microsoft honored him as MVP on Data Platform due to his activities in SQL Server since 2010. He holds a large number of Microsoft Certifications and Microsoft SQL Server Certifications since version 6.5.

Episode

Working with Delta Lake tables in Microsoft Fabric

image

More Episodes...

Tip

Refresh Intellisence in SSMS

Για να κάνουμε refresh το intellisence μέσα στο SSMS αρκεί να πατήσουμε Ctrl+Shift+R

More Tips...

Become a member

If you want to receive updates from us become a member to our community.

Connect

Explore

Learn


sqlschool.gr © 2010-2023 All rights reserved

This site uses cookies for operational and analytics purposes only. By continuing to browse this site, you agree to their use.