473,508 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Please help with ConnectionString to SQLAnywhere 5.0

Hi all,

i have a client with an old working app. in PowerBuilder for which i
need to create new modules.
The db is sqlanywhere 5.0.4
The db is configured in ODBC.
Now, i don't seem to be able to connect to this db.

Can anyone help me with the connectionstring and maybe references to
add?

string connectionString = "Data Source=Ghoenix;uid=dba;pwd=gerling";
Conn = new OdbcConnection(connectionString);

try{Conn.Open();}
catch(Exception ex){MessageBox.Show(ex.ToString());};

He keeps giving : datasource & driver not found...

Help would greatly be appreciated,
Oswald
Nov 16 '05 #1
2 2168
i found it myself
SQLAnywhere 5.0 is supported by ODBC 2.x instead of 3.x
And this string worked just fine!

For everybody's information (if ever needed):
---------------------------------------------
String ConnectionString =
"Provider=MSDASQL;DSN=Ghoenix;userid=dba;password= gerling";
OdbcConnection myConnection = new OdbcConnection(ConnectionString);
myConnection.Open();

os**************@skynet.be (oswald verlinden) wrote in message news:<1c**************************@posting.google. com>...
Hi all,

i have a client with an old working app. in PowerBuilder for which i
need to create new modules.
The db is sqlanywhere 5.0.4
The db is configured in ODBC.
Now, i don't seem to be able to connect to this db.

Can anyone help me with the connectionstring and maybe references to
add?

string connectionString = "Data Source=Ghoenix;uid=dba;pwd=gerling";
Conn = new OdbcConnection(connectionString);

try{Conn.Open();}
catch(Exception ex){MessageBox.Show(ex.ToString());};

He keeps giving : datasource & driver not found...

Help would greatly be appreciated,
Oswald

Nov 16 '05 #2
Still had problems with security issues, but this one is a winner :

String ConnectionString = "Provider=MSDASQL;DSN=Ghoenix;UID=dba;PWD=gerling" ;
os**************@skynet.be (oswald verlinden) wrote in message news:<1c**************************@posting.google. com>...
Hi all,

i have a client with an old working app. in PowerBuilder for which i
need to create new modules.
The db is sqlanywhere 5.0.4
The db is configured in ODBC.
Now, i don't seem to be able to connect to this db.

Can anyone help me with the connectionstring and maybe references to
add?

string connectionString = "Data Source=Ghoenix;uid=dba;pwd=gerling";
Conn = new OdbcConnection(connectionString);

try{Conn.Open();}
catch(Exception ex){MessageBox.Show(ex.ToString());};

He keeps giving : datasource & driver not found...

Help would greatly be appreciated,
Oswald

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
2946
by: Siemel Naran | last post by:
Hi. I have a table of products and versions, and these 2 columns are the unique key. My challenge is to write a SQL statement to find the latest version of each product. My solutions below...
5
4588
by: trint | last post by:
Ok, Everything connects correctly and loads properly in this WebApplication. I have four buttons and all work correctly except one (the NEXT RECORD button). PREVIOUS, FIRST and LAST all work...
1
1446
by: Esteban Felipe | last post by:
Hi, thanks for reading. I hope to find some help here before I commit suicide because this is driving me crazy. Please excuse me if this looks like a long post, but I hope that a complete...
3
3427
by: Shapper | last post by:
Hello, I have created 3 functions to insert, update and delete an Access database record. The Insert and the Delete code are working fine. The update is not. I checked and my database has all...
1
1304
by: davidman73 | last post by:
Hello, I have VS 2005 with SQL Server Express in the same machine, but need to connect to a remote SQL Server 2000. I'm getting this error: An error has occurred while establishing a...
1
3189
by: teddymeu | last post by:
hi guys I posted the other day regarding a solution i needed to design, im new to development an asp,net and built a local post office search tool using asp.net 2. vb in visual studio, using an...
0
1039
by: Radu | last post by:
Hi. On the first page of my website the user selects one document which can be in either English or French. I store that choice in a class, and I can extract it with:...
1
3738
by: Brad Isaacs | last post by:
I am working with ASP.NET 2.0 and using an SQL Server 2000 database. I am using Visual Studio 2005 and developing on my Local machine. I am working with Login controls ASP.Configuration, I...
4
2203
by: Brad Isaacs | last post by:
I am working with ASP.NET 2.0 and using an SQL Server 2000 database. I am using Visual Studio 2005 and developing on my Local machine. I am working with Login controls ASP.Configuration, I...
0
7231
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7133
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7336
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7405
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7066
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7504
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5059
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4724
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1568
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.