SQL Error
Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=24860
Printed Date: 06 April 2026 at 10:20am Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: SQL Error
Posted By: Flapjack
Subject: SQL Error
Date Posted: 20 November 2007 at 6:03pm
Not sure what happened.... but when I went to log onto our forum today, I got the following error message. I tried restarting all IIS servers, and SQLEXPRESS, but no change...
Server Error in Forum Application An error has occurred while connecting to the database. Please contact the forum administrator.
Support Error Code:- err_SQLServer_db_connection File Name:- common.asp
Error details:- Microsoft OLE DB Provider for SQL Server Invalid connection string attribute
|
Replies:
Posted By: WebWiz-Bruce
Date Posted: 20 November 2007 at 6:14pm
This is a problem with the connection to the database.
Check that the database connection details are correct and check that your SQL Server is allowing TCP/IP connections.
If it is running on a non local server, check that you have enabled remote connections as SQL Server Express has these disabled by default.
You should also note that SQL Express installs with the default instance 'SQLEXPRESS' which needs to be included in the connection string.
------------- https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting
|
Posted By: Flapjack
Date Posted: 20 November 2007 at 6:15pm
The SQL server is on the same box as the forums. It is internal only. This is the first time we've had any issues.
I'll look at the connection details now, though I'm not 100% sure what I'm looking for....
|
Posted By: Flapjack
Date Posted: 20 November 2007 at 6:25pm
-boRg- wrote:
You should also note that SQL Express installs with the default instance 'SQLEXPRESS' which needs to be included in the connection string. |
Forgot to mention, this was exactly how it was set up. There has been no issue until now.
|
Posted By: Flapjack
Date Posted: 20 November 2007 at 6:33pm
-boRg- wrote:
Check that the database connection details are correct and check that your SQL Server is allowing TCP/IP connections. |
Am I doing this in the forums, or in the SQL Config Manager? In SQL, TPC/IP connections are unchanged from the time I set it up (allowed).
As for the forums, I am unable to get into any page on them. Is there a specific address I should use to check the SQL settings there, or do I have to manually edit a file in the directory?
|
Posted By: WebWiz-Bruce
Date Posted: 20 November 2007 at 6:50pm
This is done in SQL Server. If as you mentioned earlier you reinstalled SQL Server you would need to enable TCP/IP connections in SQL Server, as they will go back to their default of not allowing these types of connections.
------------- https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting
|
Posted By: Flapjack
Date Posted: 20 November 2007 at 7:00pm
Not sure from where you thought I reinstalled SQL from, sorry if I wasn't clear. The only thing that has been done to this server since the install of WWF/SQL/ASP is yesterday, our IT director installed MS FTP Server. Not sure how that could've changed anything, but could it have affected IIS in some way??
Under SQL Server Configuration Manager, there is the following structure. I tried enabling TCP/IP under SQL Server 2005 Network Configuration > Protocols for SQLEXPRESS, but the message stayed the same.
Also, there are two areas where TCP/IP is defined:
SQL Server 2005 Network Configuration > Protocols for SQLEXPRESS > TCP/IP > Enabled
and...
SQL Native Client Configuration > Client Protocols > TCP/IP > Order 2, Enabled
  Which connection are you referring to?
-boRg- wrote:
This is done in SQL Server. If as you mentioned earlier you reinstalled SQL Server you would need to enable TCP/IP connections in SQL Server, as they will go back to their default of not allowing these types of connections.
|
|
Posted By: WebWiz-Bruce
Date Posted: 20 November 2007 at 7:06pm
Both should be enabled for 127.0.0.1 if SQL Server Express is installed on the localhost, at least thats how I always run it.
One option I don't know if you have tried yet is reinstalling the MDAC database drivers.
------------- https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting
|
Posted By: Flapjack
Date Posted: 20 November 2007 at 7:16pm
Ok, just tried that, but it didn't make a difference. Also, SQL Server is running, but SQL Server Browser is not. Actually, I'm not sure if it ever has. Should I have that running also?
Gonna try reinstalling MDAC database drivers right now. Do you know if adding an FTP site to IIS could have caused this issue?
-boRg- wrote:
Both should be enabled for 127.0.0.1 if SQL Server Express is installed on the localhost, at least thats how I always run it.
One option I don't know if you have tried yet is reinstalling the MDAC database drivers.
|
|
Posted By: Flapjack
Date Posted: 20 November 2007 at 7:35pm
Argh... the MDAC reinstallation didn't help, either. I'm starting to be really irritated here.
I keep coming back to what could've broken it in the first place. The only thing that changed on the server was MSFTP being installed. We've uninstalled it (not that we should need to), and restarted the box. Still no change.
Is there anywhere else I should be looking besides SQL? Are you 100% that is the issue?
|
Posted By: Flapjack
Date Posted: 20 November 2007 at 7:44pm
Fixed it. I checked under Database_connection.asp and made note of the password for the SQL user running the db. The password had not changed, but I re-entered the user password in the SQL management console, just in case. That did the trick.
Now to figure out how that password got changed, and to make sure it doesn't happen again.
|
Posted By: WebWiz-Bruce
Date Posted: 21 November 2007 at 8:23am
Sounds like then the password expired.
In SQL Server Management Studio right click on the user and select 'Properties'., then in the 'General' sreen make sure that 'Enforce Password Expiration' is not checked, as for some reason this is checked by default if you do not uncheck it when creating a user in SQL Server.
If you do not do this then I would imagine you will have the same issue again in a month or so when the password expires again.
------------- https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting
|
Posted By: Flapjack
Date Posted: 21 November 2007 at 3:43pm
Sure enough, the box was checked. I unchecked it.
Hopefully this thread will help someone else in the future. Thanks for all the help.
|
|