ODBC
文章平均质量分 63
iteye_10111
这个作者很懒,什么都没留下…
展开
-
SQLBindCol & SQL_ATTR_ROW_ARRAY_SIZE
如果只设置 SQL_ATTR_ROW_ARRAY_SIZE > 1,而在绑定列的时候依然是SQL_ATTR_ROW_ARRAY_SIZE == 1时的缓存大小,在vc运行中将会导致一个HEAP_CORRUPT。在mingw中可能什么也不报,但是程序就停止在读数据的地方。 所以一定要在SQL_ATTR_ROW_ARRAY_SIZE > 1时,设置正确的缓冲区。 70 ...原创 2011-09-10 01:38:52 · 349 阅读 · 0 评论 -
ODBC Cursor
http://msdn.microsoft.com/en-us/library/aa215458%28v=sql.80%29.aspx 写道 To set cursor options Call SQLSetStmtAttr to set or SQLGetStmtAttr to get the statement options that control cursor beha...原创 2011-09-14 15:23:01 · 183 阅读 · 0 评论 -
cautions of SQLGetData
http://msdn.microsoft.com/en-us/library/ms715441.aspx 写道 There are two exceptions to these restrictions and a driver's ability to relax them. First, SQLGetData should never be called for a forward-...原创 2011-09-21 13:03:14 · 119 阅读 · 0 评论 -
[转MSDN]Basic ODBC Application Steps
ODBC应用程序API使用顺序 http://msdn.microsoft.com/en-us/library/ms714078%28v=VS.85%29.aspx原创 2011-10-07 14:41:54 · 67 阅读 · 0 评论 -
ODBC的一个 stack around the variable 'xx' was corrupted
OS:windows7 32bit g++ 4.5.2下编译正常,无错。vs2010下出问题stack around variable 'ac' is corruptted bool Connection::getAutocommit() { SQLSMALLINT ac = 0; SQLRETURN ret = m_handle->getAttribute( S...原创 2011-10-30 23:04:52 · 78 阅读 · 0 评论