Connection object, MetaDataConnection object
Returns or sets the non-joined query value of a connection object. If set to true, the application processes queries with non-joined topics.
This example opens a connection file, SQL.oce, sets the user name and password, changes the connection file to support non-joined topics, and connects to the data source:
ActiveDocument.Sections["Query"].DataModel.Connection.Open("c:\\OCEs\\SQL.oce") ActiveDocument.Sections["Query"].DataModel.Connection.Username = "hyperion" ActiveDocument.Sections["Query"].DataModel.Connection.SetPassword("hyperionhyperion") ActiveDocument.Sections["Query"].DataModel.Connection.AllowNonJoinedQueries = true ActiveDocument.Sections["Query"].DataModel.Connection.Connect()