0

I am trying to bind a structure with Rowset binding ala:

http://msdn.microsoft.com/en-us/library/aa215456(v=sql.80).aspx

THIS IS AN MSDN TYPO!

1 Answer 1

1

It's in sqlext.h, so:

 #include "sqlext.h"

Unless you wish to have the difference between sql.h and sqlext.h as your specialist subject in a quiz program, you are better off always #including both of them, without thinking.

5
  • Hmmm... its not in MS SDK v5.0 of that header file (or sql.h). perhpas you could just post its hex/decimal value? Apr 25, 2011 at 5:58
  • @Mike It is there in v7.0 of the SDK, which is current. It's part of ODBC 3.0 - it sounds like you have an extremely old development environment - you should really upgrade. For what it's worth, its decimal value is 20.
    – user2100815
    Apr 25, 2011 at 7:37
  • I installed v6 last year which put v5 in the same folder. I will look for v7. Many thanks Apr 25, 2011 at 18:13
  • @Mike Actually, I just noticed that your question title and text don't match. SQL_ATTR_ROW_STATUS_PTR has the value 25. There is no SQL_ATTR_PARAMS_STATUS_PTR, it is SQL_ATTR_PARAM_STATUS_PTR.
    – user2100815
    Apr 25, 2011 at 19:02
  • Yes that's a long night artifact! I just realized this is an MSDN Typo (see the link). Thank you so much for the help. Apr 26, 2011 at 7:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.