Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL output parameter truncated at 255 char
Message
De
08/12/2003 14:32:33
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
SQL output parameter truncated at 255 char
Divers
Thread ID:
00856917
Message ID:
00856917
Vues:
84
I am calling a SQL stored procedure with an output parameter, which is declared as follows:

CREATE PROCEDURE dbo.PSP_PXGetFilterText
@pPXUserFilterSK uniqueidentifier,
@pFilterText varchar(1000) = '' OUTPUT
AS ...

VFP calls the stored procedure as follows:

lcFilterText = ''
lcSQL = "Exec PSP_PXGetFilterText '" + PXUserFilterSK +"', ?@lcFilterText"
lnRetVal = SQLExec(lnConn, lcSQL)

The stored procedure runs successfully, but lcFilterText only contains the first 255 characters of the output parameter.

Is ODBC truncating to a length of 255?
What can I do to get the full string?

Thanks for the help,
Ted
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform