Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem running a stored Procedure in SQL Server
Message
From
21/02/2006 12:48:43
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01097803
Message ID:
01097805
Views:
11
>Hi all,
>
>I can connect to a SQL server using the following commands
>
>cConnString = "DRIVER={SQL Server};SERVER=xxx.xxx.xx.xx;database=testdb;uid=sa;pwd=password"
>
>nSqlHandle = SQLSTRINGCONNECT(cConnString,.t.)
>
>
>I can also issue a a select statement through sqlexec and get the correct results from the following
>
>? SQLEXEC(nSqlHandle,"select b2b from clients where retailerid='100' and password='password'")
>? b2b
>
>
>the stored procedure
>
>CREATE PROCEDURE dbo.SEL_AllowB2B  AS
>select b2b from clients where retailerid = '100' and password = 'password'
>GO
>
>
>I cannot run a stored procedure I get a -1 returned from the following command
>
>? SQLEXEC(nSqlHandle,'SEL_AllowB2B')
>
>

>I've tried quite a few variations of the previous command with no luck.
>
>Any ideas?
>
>Thank you,
>Paul
? SQLEXEC(nSqlHandle,'EXEC dbo.SEL_AllowB2B')
Previous
Reply
Map
View

Click here to load this message in the networking platform