Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Server stored procedure help
Message
De
06/01/2000 08:46:36
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
00313586
Message ID:
00313841
Vues:
36
John,

You're probably not getting a row back because SQL Server detects that you're doing the variable assignment.

If you're trying to retrieve the account number and name, you'll have to mark the parameters as OUTPUT and call the stored procedure using the ODBC escape syntax.

Make the stored procedure look like this:
CREATE Procedure VerifyLogin
	@userid varchar(50),
	@Password varchar(50),
	@AccountID int OUTPUT,
	@Name varchar(100) OUTPUT
As
Call it like this
LOCAL lnAccount, lcName, lhConn, lnResult
lhConn = SQLCONNECT(...)
lnResult = SQLEXEC(lhConn, "{CALL VerifyLogin ('user', 'password', ?@lnAccount, ?@lcName)}")
-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform