Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Database: MS SQL Server
 Tweaking and tuning - Connection Errors
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Lon2
Junior Member

USA
151 Posts

Posted - 08 January 2009 :  10:06:43  Show Profile
We've been tweaking and tuning-up our site. Upon going through our IIS 6.0 log files, we noticed many errors relating to our Snitz forum, version 3.4.03 upgraded to 3.4.06. The errors look like this:

2009-01-08 03:49:39 W3SVC904 XX.XX.XXX.XXX GET /forum/active.asp |114|80004005|[DBNETLIB][ConnectionOpen_(Connect()).]SQL_Server_does_not_exist_or_access_denied. 80 - XX.XXX.XXX.XXX

There are about a 100 errors per day. They are via any file: topic.asp, pop_profile.asp, default.asp, forum.asp, topic.asp, etc. And all by different IP addresses.

I searched online and ran acrossed Microsoft doc: http://support.microsoft.com/kb/888228

Before I go trying new connection strings, what is the latest-and-greatest connection string for SQL 2005 Express server?

Besides the connection string, could there be anything else causing all the errors on a daily basis?<

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 08 January 2009 :  10:28:26  Show Profile  Visit HuwR's Homepage
quote:
Before I go trying new connection strings, what is the latest-and-greatest connection string for SQL 2005 Express server?
a good start would be to maybe tell us what connection string you are currently using

quote:
Besides the connection string, could there be anything else causing all the errors on a daily basis?

most probably caused by network/server timeout problems<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 08 January 2009 :  10:30:23  Show Profile  Send ruirib a Yahoo! Message
You should contact your host about it. Probably you have a too busy a server, or there are other issues, maybe network related. In any case, you need to contact the host. I also doubt that the connection string has any role on that.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Lon2
Junior Member

USA
151 Posts

Posted - 08 January 2009 :  10:56:48  Show Profile
Thanks for the quick replies! Our current connection string is:

strConnString = "Provider=SQLOLEDB;Data Source=xxxx.server.com,1750;database=clientid_dbname;uid=client_uidname;pwd=password;"

Does this look right?<
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 08 January 2009 :  11:01:15  Show Profile  Visit AnonJr's Homepage
I'm not the SQL Server expert, but I don't see where that would be an issue. I've also seen that the reccomended connection string for SQL Server 2005 is:

Provider=SQLNCLI;server=servernameoraddress;database=databasename;uid=client_uidname;pwd=yourpassword;

Its what I'm using on SQL Server 2005 Express Edition for an internal site. I doubt that's the issue, but it couldn't hurt.<
Go to Top of Page

Lon2
Junior Member

USA
151 Posts

Posted - 08 January 2009 :  12:56:38  Show Profile
Thanks, AnonJr. I found this: http://www.connectionstrings.com/sql-server-2005 but I guess I need to know Native Client and Version, Standard or Trusted Connection, and ODBC or OLEDB.

Another question I have now is: Does Snitz' Admin Server Information (admin_info.asp) report server info based on the actual server or does my connection change some things, like "Provider Friendly Name: Microsoft OLE DB Provider for SQL Server"?<
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 08 January 2009 :  13:18:32  Show Profile  Visit HuwR's Homepage
quote:
Does Snitz' Admin Server Information (admin_info.asp) report server info based on the actual server or does my connection change some things, like "Provider Friendly Name: Microsoft OLE DB Provider for SQL Server"?
yes, your connection string would change what was reported.


your connection string is unlikely to be the cause of the server not found errors.<
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 08 January 2009 :  14:23:58  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
If you're on Windows 2003 it may be the maxports issue. Simply put, the problem is a limit of the operating system to open connections to other servers. The default is about 4,000 (from 1024-5000).

http://support.microsoft.com/kb/328476
http://support.microsoft.com/kb/154628/EN-US/<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

Lon2
Junior Member

USA
151 Posts

Posted - 19 January 2009 :  16:48:31  Show Profile
quote:
Originally posted by AnonJr

I'm not the SQL Server expert, but I don't see where that would be an issue. I've also seen that the reccomended connection string for SQL Server 2005 is:

Provider=SQLNCLI;server=servernameoraddress;database=databasename;uid=client_uidname;pwd=yourpassword;

Its what I'm using on SQL Server 2005 Express Edition for an internal site. I doubt that's the issue, but it couldn't hurt.

AnonJr, have you ever checked your log files to see if your forums produce connection errors? And are your forums pretty active?<
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 19 January 2009 :  20:05:12  Show Profile  Visit AnonJr's Homepage
That particular one is not very active, and there are no connection errors in the log. Its also an in-house server, and I have my own VPS all to my self.<
Go to Top of Page

Lon2
Junior Member

USA
151 Posts

Posted - 20 January 2009 :  15:59:52  Show Profile
Thanks. That's exactly what I wanted to do before I heard ISPs were cracking down on people running web sites on home computers/servers using up ISP bandwidth. Are you getting away with it now? I used to check dslreports.com on that but haven't in a while. You would not believe all the problems we'ave had in the past 10 years with shared hosting and uneducated hosting companies!<
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 20 January 2009 :  22:35:30  Show Profile  Visit AnonJr's Homepage
By in-house I mean for the company, behind the firewall and not accessable to the public.<
Go to Top of Page

Lon2
Junior Member

USA
151 Posts

Posted - 22 January 2009 :  16:43:23  Show Profile
quote:
Originally posted by AnonJr

I'm not the SQL Server expert, but I don't see where that would be an issue. I've also seen that the reccomended connection string for SQL Server 2005 is:

Provider=SQLNCLI;server=servernameoraddress;database=databasename;uid=client_uidname;pwd=yourpassword;

Its what I'm using on SQL Server 2005 Express Edition for an internal site. I doubt that's the issue, but it couldn't hurt.

I changed our connection string to your recommendation and we went from over 100 errors a day to just 1 or 2. I'd say it's workin good now. Thanks for your help, AnonJr! <
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.15 seconds. Powered By: Snitz Forums 2000 Version 3.4.07