dbTalk Databases Forums  

ADO.NET Connection fails on Server

sybase.public.ase.nt sybase.public.ase.nt


Discuss ADO.NET Connection fails on Server in the sybase.public.ase.nt forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Paul Vero [Sybase]
 
Posts: n/a

Default Re: ADO.NET Connection fails on Server - 12-19-2008 , 04:39 PM






Hi Chris

Is your ASE host named mxproddb.mlp.com ?

Then the connection string should be:

connectionString="Data
Quote:
Source='mxproddb.mlp.com';Port='5000';UID='INSTAL' ;PWD='XXX';Database='repproddb'"
I'm saying this cause I assume your ASE is on that host, listening to that
port.
The Provider doesn't use an external API (Open Client) that SQL Advantage
uses
to connect to the ASE, so the host, port combination must match.

You can also try replacing Data Source with Server. (Both should work but
just making sure)

-Paul


"Chris Beels" wrote in message news:494bca6a.35ad.1681692777 (AT) sybase (DOT) com...
Quote:
I am trying to connect to mxproddb.mlp.com from a Win2003
Server using C#. I am using the exact same code that works
on my local XP box. I am able to connect on the server
using SYBASE > SQL Advantage after setting up the resource
in dsedit. There are no resources in dsedit when I first
bring it up, which leads me to believe that the DataSources
have not been properly configured on this box. Any ideas?

The error is

Client unable to establish a connection
at Sybase.Data.AseClient.AseConnection.Open()

and the connection string looks like

add name="REPPRODDB"
providerName="Sybase.Data.AseClient"
connectionString="Data
Source='mxdrdb.mlp.com';Port='5000';UID='INSTAL';P WD='XXX';Database='repproddb'"
/

Thanks,
Chris


Reply With Quote
  #12  
Old   
Paul Vero [Sybase]
 
Posts: n/a

Default Re: ADO.NET Connection fails on Server - 12-19-2008 , 04:39 PM






Hi Chris

Is your ASE host named mxproddb.mlp.com ?

Then the connection string should be:

connectionString="Data
Quote:
Source='mxproddb.mlp.com';Port='5000';UID='INSTAL' ;PWD='XXX';Database='repproddb'"
I'm saying this cause I assume your ASE is on that host, listening to that
port.
The Provider doesn't use an external API (Open Client) that SQL Advantage
uses
to connect to the ASE, so the host, port combination must match.

You can also try replacing Data Source with Server. (Both should work but
just making sure)

-Paul


"Chris Beels" wrote in message news:494bca6a.35ad.1681692777 (AT) sybase (DOT) com...
Quote:
I am trying to connect to mxproddb.mlp.com from a Win2003
Server using C#. I am using the exact same code that works
on my local XP box. I am able to connect on the server
using SYBASE > SQL Advantage after setting up the resource
in dsedit. There are no resources in dsedit when I first
bring it up, which leads me to believe that the DataSources
have not been properly configured on this box. Any ideas?

The error is

Client unable to establish a connection
at Sybase.Data.AseClient.AseConnection.Open()

and the connection string looks like

add name="REPPRODDB"
providerName="Sybase.Data.AseClient"
connectionString="Data
Source='mxdrdb.mlp.com';Port='5000';UID='INSTAL';P WD='XXX';Database='repproddb'"
/

Thanks,
Chris


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.