Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Problem Installing Forum..
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem Installing Forum..

 Post Reply Post Reply Page  12>
Author
masson View Drop Down
Newbie
Newbie
Avatar

Joined: 06 May 2003
Location: United States
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote masson Quote  Post ReplyReply Direct Link To This Post Topic: Problem Installing Forum..
    Posted: 01 May 2009 at 8:39pm
I'm attempting to install the MS SQL version of the forum, but am getting an error upon running msSQL_server_setup.asp. I'm using SQL 2005 Express. I've added "webwizforums" to my SQL database.

Here's the error:
Error Connecting to database on SQL Server
Check the following is set up and correct:- 
SQL Server User Name
SQL Server Password
Name of the SQL Server
Database name set up by you on the server
Empty Database set up by you on the SQL Server
Check also that you have entered the correct details in the file 'database_connection.asp' found in the 'database' directory.
Detailed Error Message: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
Error Details: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.

database_connection.asp looks like this
strSQLServerName = "NT02/SQLEXPRESS" 
strSQLDBUserName = "administrator"
strSQLDBPassword = "password"
strSQLDBName = "webwizforums" 

I've also tried
strSQLServerName = "192.168.1.3" 

Any ideas? Thanks!
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote 123Simples Quote  Post ReplyReply Direct Link To This Post Posted: 02 May 2009 at 12:39pm
I'm not sure if I am reading this right but you need a blank database, so delete the database you have done, unless of course you have something else on it, then start again and setup a new one

Procedure is to setup a new blank database on your server in which case you choose your username and password, and database name (which you can call that anything you want normally - it could be a mixture of letters, numbers but with no spaces)

Be sure that you have the correct details such as your server name, then you should transfer this information into your database_connection.asp file
Upload the files and then run the msSql_server_setup.asp file again and input the correct information
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 02 May 2009 at 3:06pm
By default SQL Server Express only allows local trusted connections.

To be able to talk to the database from ASP (which web wiz forums is written in), you need to install SQL Server in mixed mode with TCP/IP connections enabled.

If the SQL Server resides on another machine then you also need to allow remote connections to the SQL Server.
Back to Top
masson View Drop Down
Newbie
Newbie
Avatar

Joined: 06 May 2003
Location: United States
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote masson Quote  Post ReplyReply Direct Link To This Post Posted: 04 May 2009 at 4:39pm
I did not install the forum in muli-mode, so I re-installed it in multi-mode and enabled TCP-IP. But still I'm getting the same message.  

Do I need to install using a windows username or one local to the SQL Server? I created a couple local to the sql server, gave them access to the database, but still no luck. I've tried every combination I can think of. When I login with a windows username, should it be domain name/username or username@domainname.com or just the username? Again I've tried all of the combinations I can think of and nothing.

Here's a shot of my db setup: www.advlaser.net/temp/wiz1.jpg 
Here's a shot of my user setup: www.advlaser.net/temp/wiz2.jpg 
Here's a shot of protocols: www.advlaser.net/temp/wiz3.jpg
I also made sure to add my windows users as role: sysadmin, and mapped the user to the db as well.

My current database_connection.asp looks like: 
strSQLServerName = "192.168.1.3" 
strSQLDBUserName = "ADVLASER/admin"
strSQLDBPassword = "password"     ' I am using the right password
strSQLDBName = "webwizforumsomear"    ' changed the name when I created a new one

Any help would be great. I'm new to sql server. I'm sure it will be great once I get it working.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 04 May 2009 at 5:05pm
You need to use an SQL Server user to login, not a windows account.

Create a new SQL Server user in SQL Server using SQL login not windows authentication. Then give that user DBO rights over the database.

If you still get stuck please give the exact error message.
Back to Top
masson View Drop Down
Newbie
Newbie
Avatar

Joined: 06 May 2003
Location: United States
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote masson Quote  Post ReplyReply Direct Link To This Post Posted: 04 May 2009 at 6:48pm
OK I added another sql local user. On the DBO, do I set this up through the user mappings as here (www.advlaser.net/temp/wiz4.jpg) or is it somewhere else? And should the server role for the user be sys admin? Thanks!

Here's the error message, same as before..
Error Connecting to database on SQL Server

Check the following is set up and correct:- 

SQL Server User Name
SQL Server Password
Name of the SQL Server
Database name set up by you on the server
Empty Database set up by you on the SQL Server

Check also that you have entered the correct details in the file 'database_connection.asp' found in the 'database' directory.

Detailed Error Message:
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.

Error Details:
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
Back to Top
Jono View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 18 September 2006
Location: United Kingdom
Status: Offline
Points: 100
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jono Quote  Post ReplyReply Direct Link To This Post Posted: 04 May 2009 at 7:44pm
Hi Masson,
 
You got your SQL user account to have db_denydatareader and db_denydatawriter, so... you can't read or write to your database... Just have db_owner ticked, untick everything else.
 
Also you appear to have used forward slashes "/" e.g. ADVLASER/admin  -  These should be back slashes "\".
 
Hope this helps.
 
Edit: Oh, and it shouldn't need the SysAdmin role.
Back to Top
masson View Drop Down
Newbie
Newbie
Avatar

Joined: 06 May 2003
Location: United States
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote masson Quote  Post ReplyReply Direct Link To This Post Posted: 04 May 2009 at 8:42pm
Ok,  I've update user to Database owner only checked www.advlaser.net/temp/wiz5.jpg

and I've changed both of them have no roles checked (unchecked sysadmin)

My error is still Error Connecting to database on SQL Server.

Is there a way to get a better error?
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.