PreviousOLE DB Provider Guide ( revision 1) Next

Creating a Recordset Using a Path

Show this topic in Library frames

It is not recommended to hard-code paths into your application. However, if your application can retrieve a path from a registry entry or an environment variable and build the string below, using a path is an easy way to access a data store without having to define a named database.

rs.Open "Course", "Provider=PervasiveOLEDB;Data 
Source=C:\Pvsw\Demodata", adOpenDynamic, 
adLockBatchOptimistic, adCmdTableDirect 

Chapter contents
Publication contents

Prev topic: Creating a Recordset Using a Named Database
Next topic: Creating a Recordset Using the Location Parameter