Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - SQL server not found error
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SQL server not found error

 Post Reply Post Reply
Author
susi_q2 View Drop Down
Newbie
Newbie


Joined: 04 August 2003
Location: Canada
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote susi_q2 Quote  Post ReplyReply Direct Link To This Post Topic: SQL server not found error
    Posted: 04 August 2003 at 9:43am
I'm very new to ASP but I'm trying to set up a login for my client to enable their customers to book reservations online. Someone else wrote the code for me, another guy again is looking after their database (since it's 600 miles away from where I am) and I'm just the one trying to make it all work! Any help you can give me would be greatly appreciated!!

The guy looking after their server says he's opened a port for me and rewritten the firewall rules to allow access by my server but this is the error message I'm getting when I try to log on:

[Microsoft][ODBC SQL Server Driver][Named Pipes]Specified SQL server not found.-2147467259

ADODB.Recordset error '800a0e7d'

Operation is not allowed on an object referencing a closed or invalid connection.



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: 04 August 2003 at 12:38pm
As you say he opened a port, this would not do much good as you seem to use named pipes as your protocol, if you are using a DSN to connect to SQL, go into Client Configuration and make sure that TCP/IP is selected. Then again the error you specify can have a few sources/ it would help if you post some code here...
Back to Top
susi_q2 View Drop Down
Newbie
Newbie


Joined: 04 August 2003
Location: Canada
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote susi_q2 Quote  Post ReplyReply Direct Link To This Post Posted: 04 August 2003 at 12:53pm
The code that refers to opening the data connection looks like this...

Sub LiveryLogin(username,password)
     Set rs = Server.CreateObject("ADODB.Recordset")
     sql= "SELECT CustomerID,Agent,First_Name,Last_Name,Company FROM customer Where username = '"&UserName&"' and Password='"&Password&"'"
     rs.Open sql, oConn,0,1

I'm using a valid username and password and I've named the database that we're trying to access elsewhere in the routines. I'm sorry but servers and ASP are not my forte... I don't even know which bits of information are relevant to give you to help you answer my question.
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 04 August 2003 at 1:18pm
Are you able the access the SQL server via Enterprise Manager with the information that you have?
Back to Top
susi_q2 View Drop Down
Newbie
Newbie


Joined: 04 August 2003
Location: Canada
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote susi_q2 Quote  Post ReplyReply Direct Link To This Post Posted: 04 August 2003 at 1:47pm
I don't know what a DSN is, and no, I can't access the SQL server other than through this login routine from their web page.

I program in HTML and Javascript primarily but my client bought this ASP reservation system from a third party and has left it up to me to install it.    The company that sold the system to them has no concept of customer support whatsoever so they've been very little help, if any. Usually when I build my sites I just FTP them up to whatever server they're going to be hosted on and everything works fine. In this case, they've had someone else set up their back office system for them and what I'm installing is just the interface that allows their clients to make their reservations online through their existing website.

When my client's tech guy emailed me to say that he had opened the port, he said:

The port is open as described below.

ISA-Created packet filter
"secure.clientsdomain.com"
TCP
BOTH
PORT 9600

???????
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 04 August 2003 at 2:03pm
If you don't know ASP and SQL then find someone who does. They will be able to help you much faster than we can as you will be able to give them everything and just have them fix it.
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: 04 August 2003 at 2:05pm
Also, has SQL been installed on prot 9600? If yes, you need to put that into your connection string as it would default to 1433 otherwise.
Back to Top
susi_q2 View Drop Down
Newbie
Newbie


Joined: 04 August 2003
Location: Canada
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote susi_q2 Quote  Post ReplyReply Direct Link To This Post Posted: 04 August 2003 at 2:17pm
Gee, thanks Jamal! Now why hadn't I thought of that?!?

Michael, good question. Maybe that's all it is. I'll check that out.
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.