FoxDataObjects

Object-Relational Mapping Tool for Visual FoxPro®

 SetDefaultSchemaFile  Method

 

 

Sets the Server.DefaultSchemaFile property with the file name string value passed as a parameter

 Server.SetDefaultSchemaFile( cSchemaFile )

 

Return Values

 

Logical

   

Parameters

 

cSchemaFile

 

Specifies the full path and file name for the default mapping schema file.

Remarks

 

The SetDefaultSchemaFile method receives a string parameter with the full schema file name and stores it on the Server.DefaultSchemaFile property.

Returns .T. (True) if the property was set correctly, otherwise it returns .F. (false)

The Server.DefaultSchemaFile property value is used by the Server.NewSession method when no schema file is passed as a parameter.

 

Example

SET PROCEDURE TO FDO ADDITIVE

oServer=CREATEOBJECT("fdoServer")

oServer.SetDefaultSchemaFile(cFileName)
oServer.SetDefaultDataSource("Ms SqlServer")
oServer.DefaultDatasource.Database_Name="MyDatabase"
oServer.DefaultDatasource.ODBC_SRV="192.168.0.1"
oServer.DefaultDatasource.ODBC_UID="sa"
oServer.DefaultDatasource.ODBC_PWD=cPassword

 

oSession=oServer.NewSession()

 

See Also

DataSource class | Server.NewDataSource method | Server.DefaultDataSource property | Session.Connect method | Server.DefaultDataSourceLookupMode property | Server.NewSession method

Applies to: Server 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