Logo Search packages:      
Sourcecode: maxdb-7.5.00 version File versions  Download package

vcn80.cpp File Reference


Detailed Description

: "1998-06-24 10:45"

: "utility and sql access" : 7.1.0.0

See also:
: "-.-"
: (c) 1998-2004 SAP AG"

==================================================================

responsible: Martin Reinecke (D024853 - Martin.Reinecke@SAP-AG.de) Bernd Vorsprach (D025588 - Bernd.Vorsprach@SAP-AG.de)

created: 1998-03-19 by Martin Reinecke

purpose: utility connect/execute/release

==================================================================

========== licence begin GPL Copyright (c) 1998-2005 SAP AG

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ========== licence end

Definition in file vcn80.cpp.

#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include "vsp001.h"
#include "vsp009c.h"
#include "heo02.h"
#include "hsp02.h"
#include "hcn20.h"
#include "hcn31.h"
#include "hcn51.h"
#include "hcn53.h"
#include "hcn80.h"
#include "hcn90.h"
#include "DBM/Srv/KernelAccess/ServiceDB/DBMSrvKnlSrv_ConnectInfo.hpp"

Go to the source code of this file.

Defines

#define PARAM_RECOVER   "RECOVER"
#define SESSION_SERVICE   3
#define SESSION_SQLUSER   1
#define SESSION_UTIL   2
#define SQL_CHAR_FIELDSEP   ';'
#define SQL_CHAR_RECSEP   '\n'
#define SQL_CHAR_STRINGDEL   '\''
#define SQL_SELECT   "SELECT"

Functions

static bool cn80_CheckCreateInstance (const char *szStatement)
static tcn00_Error cn80_Connect (char *replyData, int *replyLen, tin01_sql_session *pSession, const char *szDatabase, const char *szUsername, const char *szPassword, int nMode)
static void cn80_FreeSession (VControlDataT *vcontrol, int nMode)
static tcn00_Error cn80_InternConnect (VControlDataT *vcontrol, CommandT *command, char *replyData, int *replyLen, int replyLenMax, int nMode)
tcn00_Error cn80_Release (VControlDataT *vcontrol, CommandT *command, char *replyData, int *replyLen, int replyLenMax, int nMode)
static tcn00_Error cn80_Session (VControlDataT *vcontrol, char *replyData, int *replyLen, tin01_sql_session **pSession, int nMode)
static void cn80_SetSession (VControlDataT *vcontrol, tin01_sql_session *pSession, int nMode)
static tcn00_Error cn80_SQLExecSQL (char *replyData, int *replyLen, int replyLenMax, tin01_sql_session *pSession, const char *szStatement)
bool cn80CheckVerify (const char *szStatement, const char *&pAction)
tcn00_Error cn80ConnectSQL (const char *dbName, const char *userName, const char *userPassword, tin01_sql_session *sqlSession)
tcn00_Error cn80ConnectSQL (const tsp00_DbNamec szDBName, const cn50DBMUser &aUser, tin01_sql_session *pSQLSession, char *replyData, int *replyLen)
tcn00_Error cn80ConnectSQL (const cn50DBMUser &aUser, tin01_sql_session *pSQLSession, char *replyData, int *replyLen)
tcn00_Error cn80ConnectSQL (const tsp00_DbNamec szDBName, tin01_sql_session *pSQLSession, char *replyData, int *replyLen, int nUserType)
tcn00_Error cn80ConnectUtil (const tsp00_DbNamec szDBName, tin01_sql_session *pUtilSession, char *replyData, int *replyLen)
tcn00_Error cn80DBActivate (VControlDataT *vcontrol, CommandT *command, char *replyData, int *replyLen, int replyLenMax)
tcn00_Error cn80DBActivateRequest (VControlDataT *vcontrol, CommandT *command, char *replyData, int *replyLen, int replyLenMax)
tcn00_Error cn80ExecuteSQL (tin01_sql_session *pSQLSession, const _TCHAR *szStatement, _TCHAR *replyData, int replyLenMax, int &replyLen)
tcn00_Error cn80ExecuteSQL (const cn50DBMUser &aUser, const _TCHAR *szStatement, _TCHAR *replyData, int replyLenMax, int &replyLen)
tcn00_Error cn80ExecuteSQL (const cn50DBMUser &aUser, const _TCHAR *szStatement)
tcn00_Error cn80ExecuteSQL (const tsp00_DbNamec szDBName, const _TCHAR *szStatement, _TCHAR *replyData, int replyLenMax, int &replyLen)
tcn00_Error cn80ExecuteSQL (const tsp00_DbNamec szDBName, const _TCHAR *szStatement)
tcn00_Error cn80ExecuteUtil (tin01_sql_session *pSession, const char *szStatement, char *replyData, int *replyLen)
tcn00_Error cn80ExecuteUtil (const tsp00_DbNamec szDBName, const _TCHAR *szStatement, char *replyData, int *replyLen)
void cn80FreeServiceSession (VControlDataT *vcontrol)
void cn80FreeSQLUserSession (VControlDataT *vcontrol)
void cn80FreeUtilSession (VControlDataT *vcontrol)
void cn80ReleaseSQL (tin01_sql_session *pSQLSession, bool bWithCommit)
void cn80ReleaseUtil (tin01_sql_session *pUtilSession, bool bWithCommit)
tcn00_Error cn80ServiceConnect (VControlDataT *vcontrol, CommandT *command, char *replyData, int *replyLen, int replyLenMax)
tcn00_Error cn80ServiceRelease (VControlDataT *vcontrol, CommandT *command, char *replyData, int *replyLen, int replyLenMax)
tcn00_Error cn80ServiceSession (VControlDataT *vcontrol, char *replyData, int *replyLen, tin01_sql_session **pUtilSession)
tcn00_Error cn80SQLUserConnect (VControlDataT *vcontrol, CommandT *command, char *replyData, int *replyLen, int replyLenMax)
tcn00_Error cn80SQLUserExecute (VControlDataT *vcontrol, CommandT *command, char *replyData, int *replyLen, int replyLenMax)
tcn00_Error cn80SQLUserFetch (VControlDataT *vcontrol, CommandT *command, char *replyData, int *replyLen, int replyLenMax)
tcn00_Error cn80SQLUserInfo (VControlDataT *vcontrol, CommandT *command, char *replyData, int *replyLen, int replyLenMax)
tcn00_Error cn80SQLUserRelease (VControlDataT *vcontrol, CommandT *command, char *replyData, int *replyLen, int replyLenMax)
tcn00_Error cn80SQLUserSession (VControlDataT *vcontrol, char *replyData, int *replyLen, tin01_sql_session **pSQLUserSession)
tcn00_Error cn80UtilConnect (VControlDataT *vcontrol, CommandT *command, char *replyData, int *replyLen, int replyLenMax)
tcn00_Error cn80UtilExecute (VControlDataT *vcontrol, CommandT *command, char *replyData, int *replyLen, int replyLenMax)
tcn00_Error cn80UtilRelease (VControlDataT *vcontrol, CommandT *command, char *replyData, int *replyLen, int replyLenMax)
tcn00_Error cn80UtilSession (VControlDataT *vcontrol, char *replyData, int *replyLen, tin01_sql_session **pUtilSession)


Generated by  Doxygen 1.6.0   Back to index