Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - SQL Server version install
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SQL Server version install

 Post Reply Post Reply
Author
mark-scott View Drop Down
Newbie
Newbie


Joined: 24 January 2007
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote mark-scott Quote  Post ReplyReply Direct Link To This Post Topic: SQL Server version install
    Posted: 24 January 2007 at 11:43am
I am testing a new version on my own workstation:  Windows XPsp2 with IIS / ASP and SQL 2005 Express edition.
 
I have created the blank database called Forum, SQL 2005 is in mixed mode authentication.   the relevent part of database_connection.asp is:
 
 strSQLServerName = "127.0.0.1" 'Holds the name of the SQL Server (This is the
name/location or IP address of the SQL Server)
 strSQLDBUserName = "sa" 'Holds the user name (for SQL Server Authentication)
 strSQLDBPassword = "xxxxxxxx" 'Holds the password (for SQL Server Authentication)
 strSQLDBName = "Forum"  'Holds the name of the database
 
However, when I run mssql_server_setup.asp and re-enter the same details on the page it comes back with cannot connect.
 
I have changed servername to the DNS name of my PC and also the IP but it still comes back with the error.  I even tried appending SQLEXPRESS to the end (as shown in the management studio) but I cannot seem to connect.  
 
Any ideas? 
Back to Top
iSec View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 February 2005
Status: Offline
Points: 1140
Post Options Post Options   Thanks (0) Thanks(0)   Quote iSec Quote  Post ReplyReply Direct Link To This Post Posted: 24 January 2007 at 11:53am

Replace 127.0.0.1 with localhost ... see if it works.

Back to Top
iSec View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 February 2005
Status: Offline
Points: 1140
Post Options Post Options   Thanks (0) Thanks(0)   Quote iSec Quote  Post ReplyReply Direct Link To This Post Posted: 24 January 2007 at 11:56am
Back to Top
mark-scott View Drop Down
Newbie
Newbie


Joined: 24 January 2007
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote mark-scott Quote  Post ReplyReply Direct Link To This Post Posted: 24 January 2007 at 1:06pm
Embarrassed I have it sorted now apparently my SA account was disabled - the microscopic red arrow at the bottom which I failed to notice.  I logged in as SA then the error box came back as disabled.
 
Re-enabled the SA account and it has now populated the database.
 
Thanks for your help.
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 24 January 2007 at 1:18pm
you can also use
 
servername/SQL Instance
 
as the SQL server path
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 2007 at 4:28am
(for anyone else having problems connection) for SQL Express use ".\SQLExpress" for the server name. This is a default server name when you install it.
Back to Top
 Post Reply Post Reply

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.