Broadly, I think that a DBStmt can go invalid if it has problems
executing
or gets into an invalid intermediate intermediate state. You should
get a
sql error indicating the problem.
If you want to re-use the statement you can try DBStmt.reset().
Or just re-assign it a new stmt.
Corwin
--- In DatabaseTemplateLibrary@yahoogroups.com, "msvenx" <msvenx@...>
wrote:
>
> Hi All,
>
> I am getting this exception with my VC++ client app using DTL 3.5.1
> with MS SQL Server 2005.
>
> Exception type: ValidityException Method: ValidatedObject::validate()
> Error Message: Cannot operate on invalidated object of type class
> dtl::DBStmt! objType: class dtl::DBStmt
>
> Any idea why the DBStmt object may not be a valid object? How does
DTL
> do the validity check & how often? Like, What are some typical
> instances where an object might go invalid?
>
> Thanks in advance.
>