Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error Calling SQL Proc From VFP
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01274675
Message ID:
01274748
Views:
9
>This code:
>
>
>
>iResult = SQLEXEC(._iSQLConnHandle, [EXEC sp_GetVehicle @vehiclekey=1], sTableName)
>
>
>generates the error "Could not find stored procedure 'EXEC sp_GetVehicle @vehiclekey=1'"
>

Not directly related, but generally using sp_ as a prefix on your stored procedures is discouraged. SQL Server uses that for it's own stored procs and will search its list of SP if it sees "sp_" first. If it can't find it, it will then look in the user defined listed of stored procs. That means you'll pay a performance hit on every call (since it has to check to see if it's an internal SP first).
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform