473,663 Members | 2,705 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to connect to sybase

can you tell me how to connect to sybase database with vb.net? please give
me one
example.thank you!
Nov 19 '05 #1
1 6120
ODBC :
Standard Sybase System 12 (or 12.5) Enterprise Open Client:
"Driver={SY BASE ASE ODBC Driver};Srvr=Ar on1;Uid=usernam e;Pwd=password"

Standard Sybase System 11:
"Driver={SY BASE SYSTEM 11};Srvr=Aron1; Uid=username;Pw d=password;"

Intersolv 3.10:
"Driver={INTERS OLV 3.10 32-BIT Sybase};Srvr=Ar on1;Uid=usernam e;Pwd=password; "

Sybase SQL Anywhere (former Watcom SQL ODBC driver):
"ODBC; Driver=Sybase SQL Anywhere 5.0;
DefaultDir=c:\d bfolder\;Dbf=c: \mydatabase.db; Uid=username;Pw d=password;Dsn= """""

Note! The two double quota following the DSN parameter at the end are escaped quotas (VB
syntax), you may have to change this to your language specific escape syntax. The empty
DSN parameter is indeed critical as not including it will result in error 7778.

AseConnection (.NET)

Standard:
"Data Source='myASEse rver';Port=5000 ;Database='myDB name';UID='user name';PWD='pass word';"

Declare the AseConnection:
C#:
using Sybase.Data.Ase Client;
AseConnection oCon = new AseConnection() ;
oCon.Connection String="my connection string";
oCon.Open();

VB.NET:
Imports System.Data.Ase Client
Dim oCon As AseConnection = New AseConnection()
oCon.Connection String="my connection string"
oCon.Open()


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"xinhuanet. com" <in****@xinhuan et.com> wrote in message
news:Od******** ******@TK2MSFTN GP14.phx.gbl...
can you tell me how to connect to sybase database with vb.net? please give
me one
example.thank you!


Nov 19 '05 #2

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

Similar topics

0
1660
by: Data Goob | last post by:
Hi, I had trouble using FreeTDS with Sybase ASE 12.5.2 DE. I kept getting errors when trying to run a stored procedure, using the PHP program found at the end of this post. php: dblib.c:303: buffer_add_row: Assertion `row_size <= buf->element_size' failed. Aborted
0
3910
by: Vicky | last post by:
Hi, Here it the test perl code to connect to my Sybase database server.... ******************************** use CGI; use DBI; # Connect to database. my $My_dbh =
0
366
by: Dotnet_India | last post by:
Iam trying to connect Sybase through Sybase ASE.NET providers.It is giving error while making the connection like this "System.dllnotfoundexception.....Unable to load dll..." Even though I have taken the Sybase.Data.Aseclient dll reference. I have few doubts before this 1. Is it mandatory to have .net framework 1.1 to work with ASE.NET provider 2. Is it faster comapre to using OLEDB providers for Sybase with Sybase ASE.NEt providers?
1
1666
by: sleepite | last post by:
If I configure PHP with: ../configure --with-mysql --with-apxs2=/www/bin/apxs --with-sybase-ct=/usr/lo cal/freetds --enable-track-vars --with-xml --with-zlib-dir=/rpms/zlib-1.2.3 --with-png --with-jpeg-dir=/rpms/jpeg-6b --with-freetype-dir=/rpms/freetype- 2.1.10 --with-gd=/usr/local --enable-gd-native-ttf GD works perfectly with freetype support and everything but I get: Warning: sybase_connect() : Sybase: Unable to
4
9740
by: Chris Fox via .NET 247 | last post by:
I'm trying to access a Sybase database using Visual .net C# using the code below. I've added the Sybase data provider to the references (DDTek.Sybase) and added them to the program usage. Howver it fails to connect and gives an Unhandled exception of type "DDTek.Sybase.SybaseException' occured in ddtek.sybase.dll I can connect using the sybase SQL advantage with no problems. Cheers
3
3602
by: Alex Murphy | last post by:
As title, Thanks
1
5637
by: mohsin | last post by:
Hi Expert Hope i point to the right grps, I need to connect my access to sybase ASE database and the collect/import the data. I have to use right driver to connect. Questions is, which one? and where can i get it.. I try www.sybase.com but not able to find the link to download the driver,
1
1779
by: sandeep sethi | last post by:
Hi, I m new for VB please some one can tell me how to connect Sybase with VB.please give full information and give all steps..... Thanks Sandeep.
0
8768
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8547
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7368
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6186
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5655
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4181
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4348
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1999
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1754
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.