FoxDataObjects

Object-Relational Mapping Tool for Visual FoxPro®

 DataSourceLookupMode   Property

 

 

Determines how the Session.Connect method searches for a valid datasource object to use for database connection.

 Session.DataSourceLookupMode [=nValue]

 

Property Values

 

nValue

 
  The settings for the DataSourceLookupMode property are:
Setting Description
0 DSLOOKUPMODE_DISABLED A valid datasource object must be passed as a parameter to the Session.Connect method in order to connect to a data store.
1 DSLOOKUPMODE_SCHEMAFILE Session.Connect method will search on the active mapping schema for a valid Datasource definition marked as default.
2 DSLOOKUPMODE_SERVER Session.Connect method will use the Server.DefaultDataSource object.
3 DSLOOKUPMODE_SCHEMAFILEANDSERVER Session.Connect method will first try to find a valid datasource definition marked as default on the active mapping schema, if no one is found, it will use the Server.DefaultDataSource object.

Remarks

 

The Session.DataSourceLookupMode is used by the Session.Connect method when no datasource object is passed as a parameter. If a valid datasource object is passed to the Session.Connect method, it is used regardless of the Session_DataSourceLookupMode property value.

See Also

Server.NewSession method | Session.Connect method | Session.DataSource property

Applies to: Session object

 

 

 

Send feedback on this topic to RunAhead Technologies

For Technical support and product issues please contact us at support@foxdataobjects.com or visit http://www.foxdataobjects.com

Copyright (c) 2000-2005 RunAhead Technologies