Subject NULL STMT handle
From Adrian Wykrota
Date Wed, 20 Feb 2019 16:40:54 +0100
Newsgroups sqlexpress

I haveproc with get of table columns like this:

LOCAL nThreadId := THREADID()
IF saColumn[nThread] == NIL
  soColumn := SQLListColumns(MyGetCon(nThreadId))
  saColumn[nThread] := soColumn
ELSE
  soColumn := saColumn[nThread]
ENDIF

sometimesmy soColumn object has an error like subject (err no 65534) and of
course soColumn:Handle is null
I use Ms SQL Server - how to reconect to get valid odbc handle ?

Proc MyGetCon returns connection to valid thread.


Best Regards
Adrian Wykrota


Recent messages in this thread
 
-# NULL STMT handle (Current message) Adrian Wykrota 20-Feb-2019 03:40 pm
.-# Re: NULL STMT handle Boris Borzic <bb> 25-Feb-2019 08:34 am
..\# Re: NULL STMT handle Adrian Wykrota 28-Feb-2019 02:21 pm