开发者

Assign value from ADODB.Recordset

in VBA I assign variables with values retreived from a recordset like this:

variable1 = rs("column1")
variable2 = rs("column2")

Can I do the same in C开发者_C百科#?


ADODB has been deprecated for years. For data access in .NET, you should use ADO.NET (DbConnection, DbCommand, DbDataReader, DataSet, DataTable, DbDataAdapter...)

If you really must use ADODB, see this question on MSDN.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜