OLE DB Samples

The samples in this section demonstrate how to use OLE DB to retrieve data.

SQL Server samples and sample databases must be downloaded and installed before you can view or work with them. For more information, see Considerations for Installing SQL Server Samples and Sample Databases.

In This Section

  • Readme_Setting Large Data (OLE DB)
    Shows how to set BLOB data, create a table, add a sample record, fetches that record in the rowset, and then set the value of the BLOB field.
  • Readme_Enhanced Date/Time Features Sample (OLE DB)
    Shows how to use the date/time features in OLE DB introduced in SQL Server 2008. The sample uses the four new date and time types (date, time, datetim2, and datetimeoffset) to execute commands with parameters and retrieve rowset results.
  • Readme_Obtaining a FAST_FORWARD Cursor (OLE DB)
    Shows how to set the rowset properties to obtain a FAST_FORWARD cursor. After the properties are set, a SELECT statement is executed to retrieve and display the Name column of the Purchasing.Vendor table in the AdventureWorks database.

See Also

Concepts

Data Access Samples

Other Resources

SQL Server 2008 Native Client (OLE DB)

Help and Information

Getting SQL Server 2008 Assistance