Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

RE: Connection via ODBC / QT3-Plugin: msg#00207

db.maxdb

Subject: RE: Connection via ODBC / QT3-Plugin

Hello Holger,

could you try with user and password in the case they have been
created (i.e. probably use TEST/TEST in your case)?

Regards
Alexander Schröder
SAP DB, SAP Labs Berlin

> -----Original Message-----
> From: Holger Schurig [mailto:hs4233@xxxxxxxxxxxxxxxxxxxx]
> Sent: Monday, December 27, 2004 4:03 PM
> To: maxdb@xxxxxxxxxxxxxxx
> Subject: Connection via ODBC / QT3-Plugin
>
> Two years ago I wrote the sapdb-qt3 database plugin. This
> tool works by
> using libsqlod.so directly, e.g. without unixODBC. Now I
> tried now to do
> this again with and found out that it cannot longer
> connect. I'm wondering why.
>
>
> My connect operation looks like this:
>
> ----------------------------
> QString connQStr = "UID=" + user +
> ";PWD=" + password +
> ";SERVERNODE=" + host +
> ";SERVERDB=" + db +
> ";TRACEFILENAME=test.trc";
> qDebug("connQStr string is %s", connQStr.latin1());
> SWORD cb;
> SQLCHAR connOut[255];
>
> r = SQLDriverConnect( d->hDbc,
> NULL,
> (SQLCHAR*)connQStr.local8Bit().data(),
> SQL_NTS,
> connOut,
> 255,
> &cb,
> SQL_DRIVER_NOPROMPT);
> ----------------------------
>
> So the connection string is
>
> ----------------------------
> UID=test;PWD=test;SERVERNODE=mnz66;SERVERDB=TST;TRACEFILENAME=test.trc
> ----------------------------
>
>
>
> The generated trace file looks like this:
>
> ----------------------------
> PRODUCT : SAP DB C-PreComp Runtime
> VERSION : 7.4.3
> BUILD : 032-121-068-842
>
> DATASOURCE:
> SESSION : 1;
> SQLMODE : INTERN
> SERVERDB : TST
> SERVERNODE: mnz66
> CONNECT "test " IDENTIFIED BY :A ISOLATION LEVEL 1
> SQLCODE: -4008 Unknown user name/password combination
> SQLERRD(INDEX_5) : 1 SEC. FOR STATEMENT
> START : DATE : 2004-12-27 TIME : 0015:48:23
> END : DATE : 2004-12-27 TIME : 0015:48:24
>
> SQCFINISH
> ----------------------------
>
> (my DB server is 7.4.3.32)
>
>
>
> However, I can connect to the database via python or dbmcli:
>
> ----------------------------
> mnz66:/usr/src/sapdb-qt3/2-infos# dbmcli -d TST -u dba,dba
> -uSQL test,test
> dbmcli on TST>sql_execute select * from dual
> OK
> END
> 'a'
>
> ---
> ----------------------------
>
> Any idea of what is wrong here?
>
>
> --
> MaxDB Discussion Mailing List
> For list archives: http://lists.mysql.com/maxdb
> To unsubscribe:
> http://lists.mysql.com/maxdb?unsub=alexander.schroeder@xxxxxxx
>
>
>

--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe: http://lists.mysql.com/maxdb?unsub=gcdm-maxdb@xxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | advertise | OSDir is an inevitable website. super tiny logo