all groups > sql server connect > october 2005 >
You're in the

sql server connect

group:

SQL Server 2k connect error with hostname


SQL Server 2k connect error with hostname Microlong®
10/13/2005 9:19:00 PM
sql server connect:
I have an application developed by ASP. I use OLE DB to connect Product
Server. I can connect product server with IP address, but failed with
hostname.
Win2k3 sp1 and sql server 2ksp3:
error:
Attempting Connection with Connection String:

Provider=SQLOLEDB;Data Source=Hostname;Initial Catalog=Database;INTEGRATED
SECURITY=SSPI

Microsoft OLE DB Provider for SQL Server error '80004005'

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

/testconn.asp, line 35

--
Developer
QA Dashboard
Re: SQL Server 2k connect error with hostname Jens
10/14/2005 12:18:32 AM
Could it be that your are using a different instance then the default
(e.g. syntax hostname\InstanceName) or another port than the usual one
1433 ? (e.g. syntax hostname,Portnumber)

Try to runa OSQL -L at the comamndline to do a broadcast around the
network to find available sql servers as they are exposed in the
network.

HTH, jens Suessmeyer.
Re: SQL Server 2k connect error with hostname Microlong®
10/14/2005 12:33:03 AM
however, the SQL SERVER isn't local and it is production server. Does someone
offer more helps for this issue?
--
Developer
QA Dashboard
Microsoft China Development Centre


[quoted text, click to view]
Re: SQL Server 2k connect error with hostname Sue Hoegemeier
10/15/2005 10:22:40 AM
If you can connect by IP but not by server name then it's
often related to a name resolution, network issue.
Try pinging by server name and try pinging by ip to verify
the issue.
You should be able to create an alias with the client
network utility to work around the issue.

-Sue

On Fri, 14 Oct 2005 00:33:03 -0700, "Microlong®"
[quoted text, click to view]
AddThis Social Bookmark Button