Re: Reading BLOBs from SQL Server 2000
- From: v-mingqc@xxxxxxxxxxxxxxxxxxxx (Michael Cheng [MSFT])
- Date: Fri, 09 Dec 2005 10:55:04 GMT
Hi Arnie,
Thanks for your patience.
I setup a sample on my side to try to reproduce it on my side as below
if (retcode == SQL_SUCCESS)
{
while (TRUE)
{
retcode = SQLFetch(hstmt);
if (retcode == SQL_ERROR || retcode == SQL_SUCCESS_WITH_INFO)
{
return -1;
}
if (retcode == SQL_SUCCESS || retcode == SQL_SUCCESS_WITH_INFO)
{
/* Get data for columns 1, 2*/
SQLGetData(hstmt, 1, SQL_C_CHAR, szName, NAME_LEN, &cbName);
SQLGetData(hstmt, 2, SQL_C_CHAR, szAge, AGE_LEN, &cbAge);
/* Print the row of data */
} else {
break;
}
}
}
I used Profiler to trace the SQL Server and find there is only one trace in
the Profiler. Would you please generate a sample using Northwind database
that will show this kind of double query of the SQL Server when using ODBC
driver?
Thank you for your patience and cooperation. If you have any questions or
concerns, don't hesitate to let me know. We are always here to be of
assistance!
Sincerely yours,
Michael Cheng
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
Business-Critical Phone Support (BCPS) provides you with technical phone
support at no charge during critical LAN outages or "business down"
situations. This benefit is available 24 hours a day, 7 days a week to all
Microsoft technology partners in the United States and Canada.
This and other support options are available here:
BCPS:
https://partner.microsoft.com/US/technicalsupport/supportoverview/40010469
Others: https://partner.microsoft.com/US/technicalsupport/supportoverview/
If you are outside the United States, please visit our International
Support page: http://support.microsoft.com/common/international.aspx
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- Re: Reading BLOBs from SQL Server 2000
- From: Arnie
- Re: Reading BLOBs from SQL Server 2000
- References:
- Reading BLOBs from SQL Server 2000
- From: Arnie
- RE: Reading BLOBs from SQL Server 2000
- From: Michael Cheng [MSFT]
- Re: Reading BLOBs from SQL Server 2000
- From: Arnie
- Re: Reading BLOBs from SQL Server 2000
- From: Michael Cheng [MSFT]
- Re: Reading BLOBs from SQL Server 2000
- From: Arnie
- Reading BLOBs from SQL Server 2000
- Prev by Date: ODBC System DSN change to SQL Authentication
- Next by Date: Re: Reading BLOBs from SQL Server 2000
- Previous by thread: Re: Reading BLOBs from SQL Server 2000
- Next by thread: Re: Reading BLOBs from SQL Server 2000
- Index(es):
Relevant Pages
|