PreviousOLE DB Provider Guide ( revision 1) Next

Creating a Connection

Show this topic in Library frames

To create a connection, set the Cursor Location, and then either set the ConnectionString and then call Open, or specify the connection string on the Open call.

cn.ConnectionString = "Provider=PervasiveOLEDB;Data 
Source=Demodata" 
cn.CursorLocation = adUseServer 
cn.Open 

or

cn.CursorLocation = adUseServer 
cn.Open "Provider=PervasiveOLEDB;Data Source=Demodata" 

Chapter contents
Publication contents

Prev topic: Setting up Visual Basic for Pervasive.SQL OLE DB Programming
Next topic: Creating a Recordset Using a Named Database