Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SPT and STORED PROC. ON sql 7
Message
De
21/10/2002 09:27:18
 
 
À
21/10/2002 09:11:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00713409
Message ID:
00713471
Vues:
22
Hi,

Also I remowe Print.. I get the same result.
I have changed Stored procedure to use user defined message instead
string

SP_addmessage 500001,16,1, ' entry is nod valid'

CREATE PROCEDURE up_Validate @Field nvarchar(7)
AS
DECLARE @DBID INT
SET @DBID = DB_ID()

DECLARE @DBNAME NVARCHAR(128)
SET @DBNAME = DB_NAME()

Select * from Table1 where X = @Field

IF @@RowCount = 0
BEGIN
RAISERROR (50001, 16,1, @DBID, @DBNAME)
END

In query analyzer both alternatives work without problem
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform