共用方式為


How to: Fetch Rows from a Result Set (OLE DB)

新增: 2006 年 4 月 14 日

The complete sample code is in the file FetchRowsFromResultSet.cpp. You can download an archive containing the sample from the SQL Server Downloads page on MSDN.

This sample was developed using Microsoft Visual C++ 2005.

Remarks

ms403312.security(zh-tw,SQL.90).gif安全性注意事項:
When possible, use Windows Authentication. If Windows Authentication is not available, prompt users to enter their credentials at run time. Avoid storing credentials in a file. If you must persist credentials, you should encrypt them with the Win32 crypto API.

請參閱

概念

Processing Results (OLE DB)

說明及資訊

取得 SQL Server 2005 協助