🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #3473

Re: Ongeldige gebruikersmachtigingen - ODBC driver

#3473
From: Kris De Decker http://www.jerboa...
Date: Sat, 13 Dec 2003 03:06
48 lines
2576 bytes
Bert,
> Ik krijg die error als ik een dataconnectie wil maken in Microsoft
> Visual Interdev
Hopelijk helpen volgende voorbeelden je op de juiste weg. Kijk vooral
naar
UID=user;PWD=password
-------------------------------------------------------------------
Dim cnn As Object
Set cnn = CreateObject("ADODB.Connection")
 
'ODBC with DSN
 cnn.Open "DSN=dsn;UID=user;PWD=password"
 cnn.Open "DSN=dsn", "user", "password"
 
'ODBC DSNless
 cnn.Open "DRIVER=iSeries Access ODBC
driver;SYSTEM=system;UID=user;PWD=password"
 cnn.Open "DRIVER=iSeries Access ODBC driver;SYSTEM=system", "user",
"password"
 
'OLEDB
 cnn.Open "Provider=IBMDA400;Data Source=system;UID=user;PWD=password"
 cnn.Open "Provider=IBMDA400;Data Source=system", "user", "password"
 
'ODBC without user
 cnn.Open "DSN=dsn;prompt=2"
 
... in this last example, if you don't include the prompt=2, at the
first log-in you may
well get this error (this will depend on a multitude of other settings
in Navigator and/or
the DSN):
 
[IBM][iSeries Access ODBC Driver]Communications link failure. comm
rc=8015 - CWBSY1006 -
User ID is invalid, Password length = 0, Prompt Mode = Never, System
IP Address =
xxx.xxx.xxx.xxx
---------------------------------------------------------------
Volledige post >> http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=b4o2qvgs4cg9570ug2k5i5oa1dn0cd0lji%404ax.com&rnum=6&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26q%3Dibm%2Bclient%2Baccess%2Bodbc%2Bdsn


Sukses,

Kris De Decker
______________ 
ps: cruciale bedrijfsinformatie in een overzichtelijk formaat >>
http://www.jerboa.be/blog/Articles/Nytro/infosheets.html
Technical Details
Message-ID: <57388f65.0312121906.3edb1443@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
References: <p40itvseoe0oen0bfkcgppnn22vavnlns8@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcea4,4ac88e1f0020ffae
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2003-12-12 19:06:57 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: kris@jerboa.be (Kris De Decker  http://www.jerboa.be)
Newsgroups: be.comp.programming
Subject: Re: Ongeldige gebruikersmachtigingen - ODBC driver
Date: 12 Dec 2003 19:06:57 -0800
Organization: http://groups.google.com
Lines: 48
Message-ID: <57388f65.0312121906.3edb1443@posting.google.com>
References: <p40itvseoe0oen0bfkcgppnn22vavnlns8@4ax.com>
NNTP-Posting-Host: 203.131.166.62
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1071284817 27105 127.0.0.1 (13 Dec 2003 03:06:57 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sat, 13 Dec 2003 03:06:57 +0000 (UTC)