Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

ASA 6.0 Connection String

2 posts in General Discussion Last posting was on 2004-06-16 14:44:52.0Z
Marios Posted on 2004-06-16 13:18:03.0Z
Sender: 232b.40d04805.1804289383@sybase.com
From: Marios
Newsgroups: ianywhere.public.general
Subject: ASA 6.0 Connection String
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <40d0488b.2335.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 16 Jun 2004 06:18:03 -0700
X-Trace: forums-1-dub 1087391883 10.22.241.41 (16 Jun 2004 06:18:03 -0700)
X-Original-Trace: 16 Jun 2004 06:18:03 -0700, 10.22.241.41
Lines: 3
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.general:3187
Article PK: 6645

I need the connection string to connect ASA 6.0 from VB.NET.

Thanks


Chris Keating (iAnywhere Solutions) Posted on 2004-06-16 14:44:52.0Z
From: "Chris Keating \(iAnywhere Solutions\)" <FightSpam_keating@iAnywhere.com>
Newsgroups: ianywhere.public.general
References: <40d0488b.2335.1681692777@sybase.com>
Subject: Re: ASA 6.0 Connection String
Lines: 49
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
X-Original-NNTP-Posting-Host: keating-xp.sybase.com
Message-ID: <40d05d56$1@forums-2-dub>
X-Original-Trace: 16 Jun 2004 07:46:46 -0700, keating-xp.sybase.com
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 16 Jun 2004 07:41:37 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 16 Jun 2004 07:44:52 -0700
X-Trace: forums-1-dub 1087397092 10.22.108.75 (16 Jun 2004 07:44:52 -0700)
X-Original-Trace: 16 Jun 2004 07:44:52 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.general:3188
Article PK: 6644

1) Download the ODBC.Net driver.
2) Add the ODBC.Net reference
3) Add the following
Imports Microsoft.Data.Odbc

Here is the sample code

Dim conn As New OdbcConnection

Try
conn.ConnectionString = "DSN=ASA 6.0 Sample;UID=dba;PWD=sql"
conn.Open()
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

--

Chris Keating
Sybase Adaptive Server Anywhere Professional Version 8

****************************************************************************
*
Sign up today for your copy of the SQL Anywhere Studio 9 Developer Edition
and try out the market-leading database for mobile, embedded and small to
medium sized business environments for free!

http://www.ianywhere.com/promos/deved/index.html

****************************************************************************
*

iAnywhere Solutions http://www.iAnywhere.com

** Please only post to the newsgroup

** Whitepapers can be found at http://www.iAnywhere.com/developer
** EBFs can be found at http://downloads.sybase.com/swx/sdmain.stm
** Use CaseXpress to report bugs http://casexpress.sybase.com

****************************************************************************
*

<Marios> wrote in message news:40d0488b.2335.1681692777@sybase.com...
> I need the connection string to connect ASA 6.0 from VB.NET.
>
> Thanks