Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing expression to SQL Stored Proc
Message
From
03/02/2005 16:40:16
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Passing expression to SQL Stored Proc
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
00983652
Message ID:
00983652
Views:
61
Hi All,

Is it possible to pass an expression to a SQL Stored Procedure? Something to the effect of this:
ScoreExpression=[BETWEEN '950' AND '1135']
ZipExpression=[LIKE '967%']

CREATE PROCEDURE (QueryData @ScoreExpression NVARCHAR(50), @tcZipExpression NVARCHAR(50))
AS
BEGIN
  Select * From Table WHERE 
    Score @tcExpression AND 
    Zip @tcZipExpression
END
GO
Aloha,

James
Next
Reply
Map
View

Click here to load this message in the networking platform