17.06.2013 Views

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

FREETEXTTABLE<br />

The FREETEXTTABLE function is used in full-text queries. The syntax is as follows:<br />

FREETEXTTABLE (, { | *}, ‘’)<br />

OPENDATASOURCE<br />

The OPENDATASOURCE function provides ad hoc connection information. The syntax is as follows:<br />

OPENDATASOURCE (, )<br />

The provider_name is the name registered as the ProgID of the OLE DB provider used to access the<br />

data source. The init_string should be familiar to VB programmers, as this is the initialization string<br />

to the OLE DB provider. For example, the init_string could look like:<br />

“User Id=wonderison;Password=JuniorBlues;DataSource=My<strong>Server</strong>Name”<br />

OPENQUERY<br />

The OPENQUERY function executes the specified pass-through query on the specified linked_server.<br />

The syntax is as follows:<br />

OPENQUERY(, ‘’)<br />

OPENROWSET<br />

The OPENROWSET function accesses remote data from an OLE DB data source. The syntax is as follows:<br />

OPENROWSET(‘’<br />

{<br />

‘’;’’;’’<br />

| ‘’<br />

},<br />

{<br />

[][]<br />

| ‘’<br />

})<br />

Apendix A: System Functions<br />

The provider_name parameter is a string representing the friendly name of the OLE DB provided as<br />

specified in the registry. The data_source parameter is a string corresponding to the required OLE DB<br />

data source. The user_id parameter is a relevant username to be passed to the OLE DB provider. The<br />

password parameter is the password associated with the user_id.<br />

The provider_string parameter is a provider-specific connection string and is used in place of the<br />

datasource, user_id, and password combination.<br />

The catalog parameter is the name of catalog/database that contains the required object. The schema<br />

parameter is the name of the schema or object owner of the required object. The object parameter is the<br />

object name.<br />

629

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!