عدم ارتباط با SQL Server بعد گذشت چند روز
باسلام و احترام خدت تمامی اساتید عزیز و گرامی
من روی ویندوز سرور 2016 یک SQL Server 2014 نصب کردم ام ولی مشکلی که وجود داره این هستش که بعد از مثلا 2 الی 3 روز که از روشن بودن ویندوز سرور گذشته، نرم افزارهای مربوطه به آدرس IP سرور پینگ دارند ولی نمی تونند با برنامه SQL Server ارتباط بر قرار بکنند و تنها راه این هستش که ویندوز سرور را یک بار ریستارت بکنیم تا نرم افزارها مجددا بتوانند با SQL Server ارتباط برقرار بکنند.درضمن فایروال ها نیز غیرفعال هستند. علت این مشکل چی می تونه باشه؟
باتشکر فراروان
4 پاسخ
زمانی که با این مشکل دوباره روبرو شدید. cmd رو با admin permission باز کنید و فرمان زیر رو اجرا کنید. Netstat -ba و خروجی رو اینجا ارسال کنید.
سلام وقت شما بخیر
با توجه به اینکه می فرمایید فایروال ها خاموشه و سرویس ها بعد از ریستارت اوکی میشن به احتمال قوی از سرویس ها هست
برید توی
RUN->services.msc
دنبال سرویس های sql server , Sql Server Agent , Sql Server CEIP Services , Sql Server Vss Writer دقت کنید service as type به صورت اتوماتیک باشه در ضمن فایروالتون غیر فعال نکنید به جاش پورت های TCP 1433, 4022, 135, 1434, UDP 1434. که گفته شد exclude کنید .
موفق و پیروز باشید.
سلام دوست عزیز،زمانی که به این مشکل برخوردید در قسمت Services ، سرویس های مربوط به SQL رو لطفا چک کنید و اگر غیر فعال شده باشن باید استارت کنید و تب Log On رو هم چک بفرمایید
باسلام
کد ها این هستش
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.
C:\Users\Administrator>netstat -ba
Active Connections
Proto Local Address Foreign Address State
TCP 0.0.0.0:80 MainServer:0 LISTENING
Can not obtain ownership information
TCP 0.0.0.0:88 MainServer:0 LISTENING
[lsass.exe]
TCP 0.0.0.0:135 MainServer:0 LISTENING
RpcSs
[svchost.exe]
TCP 0.0.0.0:389 MainServer:0 LISTENING
[lsass.exe]
TCP 0.0.0.0:445 MainServer:0 LISTENING
Can not obtain ownership information
TCP 0.0.0.0:464 MainServer:0 LISTENING
[lsass.exe]
TCP 0.0.0.0:593 MainServer:0 LISTENING
RpcEptMapper
[svchost.exe]
TCP 0.0.0.0:636 MainServer:0 LISTENING
[lsass.exe]
TCP 0.0.0.0:1801 MainServer:0 LISTENING
[mqsvc.exe]
TCP 0.0.0.0:2103 MainServer:0 LISTENING
[mqsvc.exe]
TCP 0.0.0.0:2105 MainServer:0 LISTENING
[mqsvc.exe]
TCP 0.0.0.0:2107 MainServer:0 LISTENING
[mqsvc.exe]
TCP 0.0.0.0:3268 MainServer:0 LISTENING
[lsass.exe]
TCP 0.0.0.0:3269 MainServer:0 LISTENING
[lsass.exe]
TCP 0.0.0.0:5985 MainServer:0 LISTENING
Can not obtain ownership information
TCP 0.0.0.0:9050 MainServer:0 LISTENING
[TinyHIDService513.exe]
TCP 0.0.0.0:9389 MainServer:0 LISTENING
[Microsoft.ActiveDirectory.WebServices.exe]
TCP 0.0.0.0:47001 MainServer:0 LISTENING
Can not obtain ownership information
TCP 0.0.0.0:49664 MainServer:0 LISTENING
Can not obtain ownership information
TCP 0.0.0.0:49665 MainServer:0 LISTENING
EventLog
[svchost.exe]
TCP 0.0.0.0:49666 MainServer:0 LISTENING
Schedule
[svchost.exe]
TCP 0.0.0.0:49667 MainServer:0 LISTENING
PolicyAgent
[svchost.exe]
TCP 0.0.0.0:49668 MainServer:0 LISTENING
[lsass.exe]
TCP 0.0.0.0:49670 MainServer:0 LISTENING
[lsass.exe]
TCP 0.0.0.0:49671 MainServer:0 LISTENING
[lsass.exe]
TCP 0.0.0.0:49673 MainServer:0 LISTENING
[spoolsv.exe]
TCP 0.0.0.0:49676 MainServer:0 LISTENING
[mqsvc.exe]
TCP 0.0.0.0:49678 MainServer:0 LISTENING
Can not obtain ownership information
TCP 0.0.0.0:49685 MainServer:0 LISTENING
[dns.exe]
TCP 0.0.0.0:49691 MainServer:0 LISTENING
[DFSRs.exe]
TCP 0.0.0.0:49692 MainServer:0 LISTENING
[sqlservr.exe]
TCP 127.0.0.1:53 MainServer:0 LISTENING
[dns.exe]
TCP 169.254.254.117:139 MainServer:0 LISTENING
Can not obtain ownership information
TCP 192.168.14.250:53 MainServer:0 LISTENING
[dns.exe]
TCP 192.168.14.250:139 MainServer:0 LISTENING
Can not obtain ownership information
TCP 192.168.14.250:49692 PNGJ-PC21:49152 ESTABLISHED
[sqlservr.exe]
TCP 192.168.14.250:49692 PNGJ-PC21:49770 ESTABLISHED
[sqlservr.exe]
TCP 192.168.14.250:49692 PNGJ-PC21:65534 ESTABLISHED
[sqlservr.exe]
TCP 192.168.14.250:49692 PNGJ-PC20:10188 ESTABLISHED
[sqlservr.exe]
TCP 192.168.14.250:49692 PNGJ-PC20:10189 ESTABLISHED
[sqlservr.exe]
TCP 192.168.14.250:49692 PNGJ-PC20:14344 ESTABLISHED
[sqlservr.exe]
TCP 192.168.14.250:49692 192.168.14.191:9720 ESTABLISHED
[sqlservr.exe]
TCP 192.168.14.250:49692 192.168.14.191:9722 ESTABLISHED
[sqlservr.exe]
TCP 192.168.14.250:49692 192.168.14.191:13934 ESTABLISHED
[sqlservr.exe]