SQL Problem
-
I want to insert a large binary data in to database( SQL server 2000 ) using VC6. First I tried with RFX_Binary, with CByteArray but in that case I was able to insert only 8000 byte of data. After that data trunctaion error occures. Then I tried with CLongBinary but in MFC RBX_LongBinary don't support. As I got assert at
void AFXAPI RFX_LongBinary(CFieldExchange* pFX, LPCTSTR szName, CLongBinary& value) { : : : case CFieldExchange::BindParam: // CLongBinary parameters are not supported ASSERT(FALSE); : : : }
Please suggest any method to try.Regards Anil
-
I want to insert a large binary data in to database( SQL server 2000 ) using VC6. First I tried with RFX_Binary, with CByteArray but in that case I was able to insert only 8000 byte of data. After that data trunctaion error occures. Then I tried with CLongBinary but in MFC RBX_LongBinary don't support. As I got assert at
void AFXAPI RFX_LongBinary(CFieldExchange* pFX, LPCTSTR szName, CLongBinary& value) { : : : case CFieldExchange::BindParam: // CLongBinary parameters are not supported ASSERT(FALSE); : : : }
Please suggest any method to try.Regards Anil
the 'binary' data type itself can only hold 8K bytes. SQL data sizes
image processing toolkits | batch image processing | blogging
-
I want to insert a large binary data in to database( SQL server 2000 ) using VC6. First I tried with RFX_Binary, with CByteArray but in that case I was able to insert only 8000 byte of data. After that data trunctaion error occures. Then I tried with CLongBinary but in MFC RBX_LongBinary don't support. As I got assert at
void AFXAPI RFX_LongBinary(CFieldExchange* pFX, LPCTSTR szName, CLongBinary& value) { : : : case CFieldExchange::BindParam: // CLongBinary parameters are not supported ASSERT(FALSE); : : : }
Please suggest any method to try.Regards Anil
What type of field is the
CByteArray
object mapped to in the SQL table? The char, varchar, binary and varbinary types are limited to 8,000 bytes.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
What type of field is the
CByteArray
object mapped to in the SQL table? The char, varchar, binary and varbinary types are limited to 8,000 bytes.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
the 'binary' data type itself can only hold 8K bytes. SQL data sizes
image processing toolkits | batch image processing | blogging
-
in SQL table its image type. When I write SQL statement in SQL manager I am able to insert more than 8K. Its in the MFC side giving data truncation exception.
Regards Anil
What does your
RFX_Binary()
statement look like?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
What does your
RFX_Binary()
statement look like?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb