Hi to everybody,
I´m trying to connect with a database in Sybase, if I connect in local no problem, the problem is when I´m try to connect from other computer and the
program C# give me this
error:
Message "Invalid connection string. Error parsing connection parameter string\r\nNombre del parámetro: connectionString" string
This is my code:
using iAnywhere.Data.AsaClient;
private AsaConnection
_conn;
private void btnConnect_Click(object sender, System.EventArgs e){
string connStr = "Host=192.30.3.83;Port=2638;User ID=DBA;Password=SQL;Database Name=prisma1";
try{
_conn = new AsaConnection(connStr );
_conn.Open();
}
catch( AsaException ex ){
MessageBox.Show(ex.Message,"Failed to connect");
}
}
As well I have tried with this string:
string connStr = "server=192.30.3.83;user id=DBA; password=SQL; database=mysql; pooling=false";
string connStr "=192.30.3.83;Port=2638;Database=prisma1;UID=DBA;PWD=SQL";
//string connStr = "Host=192.30.3.83;Port=2638;UID='dba';PWD='sql';Database='prisma1';Pooling=false;";
//string connStr = "Data Source = prisma1;UID=DBA;PWD=SQL;";
//string connStr = "Data Source = prisma1;UID=DBA;PWD=SQL;";
//string connStr = "Network Address=192.30.3.83;Port=2638;UID=DBA;PWD=SQL;DatabaseName=prisma1;";
//string connStr = "Data Source=prisma1;Host=192.30.3.83;PWD=SQL;Port=2638;UID=DBA;DatabaseName=prisma1;";
But C# always return the same error.
Any help ??????? Any code ???????
Thanks in advance.
Yahoo! Photos Showcase holiday pictures in hardcover
Photo Books. You design it and well bind it!
SPONSORED LINKS
| Basic programming language | C programming language | Computer programming languages |
| Programming languages | C programming language | Software programming language |
YAHOO! GROUPS LINKS
- Visit your group "Microsofts_C_Sharp" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
