Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SPT and STORED PROC. ON sql 7
Message
From
22/10/2002 02:17:48
 
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00713409
Message ID:
00713767
Views:
14
Hi Mike,

Thanks it works.

I have changed stored procedure to this:

CREATE PROCEDURE up_Check @field nvarchar(7)
AS

DECLARE @DBID INT
SET @DBID = DB_ID()

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

IF not EXISTS(Select * from dbo.Table where Table.X = @Field)
BEGIN
RAISERROR (50001, 16,1, @DBNAME, @DBID)
END

Return @@RowCount

Now VFP get proper message. It should work also with SELECT and @@Rowcount, but ?


Toni
Previous
Reply
Map
View

Click here to load this message in the networking platform