Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Sybase > VBA / Sybase

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-23-04, 13:11
ykverma ykverma is offline
Registered User
 
Join Date: Aug 2003
Posts: 7
VBA / Sybase

I am trying to connect to a sybase db in Excel using VBA / ADO. I would like to use NT authentication. I would be grateful if someone could provide me the connection string parameters.
In the sql ini file I use named pipe protocol.

Thanks in advance

Yogesh
Reply With Quote
  #2 (permalink)  
Old 06-27-04, 20:46
willy_and_the_ci willy_and_the_ci is offline
Registered User
 
Join Date: Feb 2002
Location: Willy is on vacation
Posts: 1,208
Integrated logins has to be set on the server side using;
http://sybooks.sybase.com/onlinebook...hf=0;pt=9701#X

The connection string then would be;
oConn.Open "Provider=Sybase.ASEOLEDBProvider;" & _
"Srvr=myASEServer,5000;" & _
"Catalog=myDBName;" & _
"User Id=myUserName"
Where:
- The Sybase ASE OLE DB provider from the Sybase 12.5 client CD
- 5000 is the port number for Sybase.

Notice you only need the User Id parameter, don't need the password parameter. The server should have access to the NT LAN Manager.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On