Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SPT and STORED PROC. ON sql 7
Message
From
21/10/2002 09:27:18
 
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00713409
Message ID:
00713471
Views:
21
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
Previous
Reply
Map
View

Click here to load this message in the networking platform