Solved

SQL Server 2005 connection problems

Posted on 2010-08-24
6
626 Views
Last Modified: 2012-05-10
Hello!

I am having problems connecting to SQL server time to time.
In event log I keep getting msg like this:
Login failed for user 'sa'. [CLIENT: 192.168.x.x]

The user name is different in other msgs.

When I check the settings all is ok...all ports are enabled, all agents started...
Sometimes the problem goes away in few seconds. Sometimes the only thing to make it work is to reboot the WIN server and then its ok again.

I also checked log file for SQL server and I see errors like:
Message
[165] ODBC Error: 0, Driver's SQLAllocHandle on SQL_HANDLE_ENV failed [SQLSTATE IM004]
Message
[382] Logon to server 'SERVER' failed (SaveAllSchedules)

I am using Windows Small Business Server 2003 Premium Edition with SQL Server 2005 standard.

Thanks for suggestions!
0
Comment
Question by:celjan79
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 12

Expert Comment

by:mcv22
ID: 33508978
It appears to be unauthorized access attempts to the SQL server. If this machine is externally accessible using public IP, consider using a firewall and blocking ports 1443, 1444 on that server from the external network.
0
 

Author Comment

by:celjan79
ID: 33509044
I dont allow external access to SQL and I do block all this ports.
0
 
LVL 12

Expert Comment

by:mcv22
ID: 33509117
Try running a SQL profiler trace to audit login events and try to see what applications/processes are trying to login to your server from those IPs.
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 

Author Comment

by:celjan79
ID: 33509156
I know which apps are trying to login because thats why the problem was found. When you try to run app you get run time error and login failed to SQL. Sometimes I get error that maybe SQL server isnt avaliable.

But if I wish to check other logins - how is this SQL profiler trace setting done?
0
 
LVL 12

Expert Comment

by:mcv22
ID: 33509295
More info about SQL Profiler here : http://msdn.microsoft.com/en-us/library/ms187929%28v=SQL.90%29.aspx

The events you should be capturing can be found under Security Audit. Audit login and Audit login failed.
0
 

Accepted Solution

by:
celjan79 earned 0 total points
ID: 33797463
The problem was in one software which was running in background.
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I work for a company that primarily works with small businesses as their outsourced IT vendor. As such the majority of these customers utilize some version of Small Business Server. Due to the economics of running a small business, many of these cus…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question