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 > How to create a db via DTO

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-30-08, 03:42
sanjeewapbss sanjeewapbss is offline
Registered User
 
Join Date: Sep 2008
Posts: 6
How to create a db via DTO

thanks mythill for helping me.

i had pervasive DTO and VB6 one you say. but i am coding using c#. any way i try to do some thing like this. i was able to add a DSN for the existing db.
but i want to create a new db. i think you can help me. whats wrong with the following code segments.


dtoResult result=new dtoResult();
DtoSession My_session = new DtoSession();
// link with the server
result = My_session.Connect("SE-1", "", "");
DtoDatabases databases = new DtoDatabases();

DtoDatabase my_db=new DtoDatabase();
databases = My_session.Databases;
my_db.DdfPath = "D:\\DB FOR IMPORTCOSTING RELEASE VERSION1";
my_db.DataPath = "D:\\DB FOR IMPORTCOSTING RELEASE VERSION1";
result = My_session.Databases.Add(my_db, "ABCD");
Reply With Quote
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