Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SP1 not fixed lost ODBC error with TSQL variables set
Message
De
12/10/2003 11:45:40
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
SP1 not fixed lost ODBC error with TSQL variables set
Divers
Thread ID:
00837906
Message ID:
00837906
Vues:
65
Hi,

VFP8 sp1 not fixed this VFP Engine bug
* get a SQL Connection h
text to myCommand noshow
DECLARE @an_Tipo TINYINT
--SET @an_Tipo=1
SELECT * FROM dbo.unknown
endtext
? sqlexec(m.h,m.myCommand)
AERROR(ax)
* you get
* ax [1,1] = 1526
* ax [1,2] = "Connectivity error: [Microsoft][ODBC SQL Server Driver][SQL Server]Il nome di oggetto 'dbo.unknown' non è valido."
* ax [1,3] = "[Microsoft][ODBC SQL Server Driver][SQL Server]Il nome di oggetto 'dbo.unknown' non è valido."
* ax [1,4] = "S0002"
* ax [1,5] = 208
* ax [1,6] = 1
* ax [1,7] = NULL
If you remove the TSQL comment prefix
* get a SQL Connection h
text to myCommand noshow
DECLARE @an_Tipo TINYINT
SET @an_Tipo=1
SELECT * FROM dbo.unknown
endtext
? sqlexec(m.h,m.myCommand)
AERROR(ax)
* you get
* ax [1,1] = 1526
* ax [1,2] = 'Connectivity error: Unable to retrieve specific error information.  Driver is probably out of resources'
* ... null ...
the ODBC error information are hidden by VFP engine error.

I use many DECLARED variables and set it on complex TSQL script!

Fabio
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform