Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - SQL server name and other details
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SQL server name and other details

 Post Reply Post Reply Page  12>
Author
snoopdujour View Drop Down
Newbie
Newbie


Joined: 25 January 2006
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote snoopdujour Quote  Post ReplyReply Direct Link To This Post Topic: SQL server name and other details
    Posted: 25 January 2006 at 8:47pm
I am a beginner with SQL so please bare with me.
 
When setting up SQL_server_connection.asp, it asks for the
"SQL Server name, your SQL Server Authentication details, and the name of the empty database you have created for the Forum on the SQL Server."
 I put the following in mine, but it isn't working.  Can someone let me know what the syntax is.
 
 

strSQLServerName = \\MyMachineName\sqlexpress

strSQLDBUserName = "sa"
strSQLDBPassword = ""
strSQLDBName = "forum"
 
When I launch the MSsql_Server_setup.asp file,
then use the account and password as above (odcb driver installed an working fine) I am unable to login.  What am I doing wrong?


Edited by snoopdujour - 26 January 2006 at 12:21am
Back to Top
MadDog View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 01 January 2002
Status: Offline
Points: 3008
Post Options Post Options   Thanks (0) Thanks(0)   Quote MadDog Quote  Post ReplyReply Direct Link To This Post Posted: 25 January 2006 at 10:00pm
What is this for?
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 26 January 2006 at 1:34am
What error message are you getting?

Did you create an empty db before running the server setup?

Are you the sa?

Lead me not into temptation... I know the short cut, follow me.
Back to Top
snoopdujour View Drop Down
Newbie
Newbie


Joined: 25 January 2006
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote snoopdujour Quote  Post ReplyReply Direct Link To This Post Posted: 26 January 2006 at 4:53am
I have created a new database, and SQL Native client ODBC connection.  Do I need to clear out the tables and other items so it is totally empty (blank)?
 
I am the SA.  I am trying to initialize the setup of my forum.
 
the error I receive is;
 
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 'SQL_server_connection.asp' found in the admin directory.

Can someone give me an example of the syntax I need for this connection?

Thank you.


Edited by snoopdujour - 26 January 2006 at 5:03am
Back to Top
MadDog View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 01 January 2002
Status: Offline
Points: 3008
Post Options Post Options   Thanks (0) Thanks(0)   Quote MadDog Quote  Post ReplyReply Direct Link To This Post Posted: 26 January 2006 at 6:03am
1) You need to post in the Support forum
2) Make sure you read the documentation that came with the forum.
Back to Top
huwnet View Drop Down
Senior Member
Senior Member


Joined: 30 May 2003
Location: England
Status: Offline
Points: 1375
Post Options Post Options   Thanks (0) Thanks(0)   Quote huwnet Quote  Post ReplyReply Direct Link To This Post Posted: 26 January 2006 at 4:31pm
I am not sure but I think this line:

strSQLServerName = \\MyMachineName\sqlexpress


is wrong. Usually this is an IP address but I might be wrong.
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 26 January 2006 at 6:38pm
If you are using the sqlexpress instance, you need to use
strSQLServerName = "computername\SQLExpress"
don't use UNC identifiers \\
Are you sure that SQL Express was installed in mixed mode? meaning being able to login with sa using sqlcmd? I think by default it installs in Windows Auth only.
Back to Top
snoopdujour View Drop Down
Newbie
Newbie


Joined: 25 January 2006
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote snoopdujour Quote  Post ReplyReply Direct Link To This Post Posted: 26 January 2006 at 7:37pm

Sorry for incorect info in my earlier posts.  This SQLExpress installation is in Mixed mode.  I have also checked the Security\logins for the userID and password. I checked to make sure the user has create/modify rights on the database.

I have edited the SQL_server_connection.asp file with the following

strSQLServerName = "machineID\SQLExpress"
strSQLDBUserName = "UserID" 'Can I use a domain account domain\user

strSQLDBPassword = "Userpass"
strSQLDBName = "forum"
 
I am still getting the error connecting to the SQL database.
 
Have I done everything correct, or am I being a noob and forgot something?
Thanks
 


Edited by snoopdujour - 26 January 2006 at 7:40pm
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.