If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Pervasive.SQL > ODBC tutorial

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-08-06, 14:39
cdt cdt is offline
Registered User
 
Join Date: Aug 2005
Posts: 10
ODBC tutorial

Hi All,

Is there any tutorial / sample code is available to learn SQL and ODBC API of pervasive V8.x or V9 versions.

Dynamically create Database , DSN
create DDFs
set connection to server or to workgroup computer.
create tables, modify tables, drop tables
create indexes, foreign keys.
Drop index


I develop packages using C++
(Compiler dev-c++ or Borland commandline 5-5 free compiler.)
I do not have expertise in MFC or c++Builder.
I have working knowledge of btrieve 6.x API., and, I want to rewrite my existing packages for client-server architecture under Windows 2003 OS (GUI +SQL)
Pl help...

THANKS in advance
-C.D.Tamhankar (India)
Reply With Quote
  #2 (permalink)  
Old 03-08-06, 15:59
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
ODBC API is a Microsoft Standard. There are a number of tutorials on the web showing how to do ODBC API calls. The syntax of the SQL statements might be a little difference.
For the rest of the operations:
Dynamically create Database , DSN -- Look at DTI PvCreateDatabase, PvCreateDSN, and SqlConfigDatasource
create DDFs --PvCreateDatabase can do this.
set connection to server or to workgroup computer. --This is done in the ODBC DSN (from a SQL perspective) based on the type of DSN (Engine or Client) used.
create tables, modify tables, drop tables -- Look at CREATE TABLE, ALTER TABLE, and DROP TABLE in the SQL Language Reference in the docs.
create indexes, foreign keys. -- Look in the SQL Language Reference.
Drop index -- Look in the SQL Language Reference.
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On