# Calling ADO Stored Procedure from FB script

**URL:** <https://www.finalbuilder.com/forums/t/calling-ado-stored-procedure-from-fb-script/1500>\
**Category:** Discussion\
**Created:** [June 14, 2010, 6:33am UTC](https://www.finalbuilder.com/forums/t/calling-ado-stored-procedure-from-fb-script/1500 "2010-06-14T06:33:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [June 14, 2010, 6:33am UTC](https://www.finalbuilder.com/forums/t/calling-ado-stored-procedure-from-fb-script/1500/1 "2010-06-14T06:33:35Z")

</div>

Hi,

We are using FB 6 (V6.3.0.1506). We use various&nbsp;SP&nbsp;that are defined in our db (SQL 2008). We started to experience&nbsp;following issues:

- sometimes the action&nbsp;'ADO Execute Stored Procedure' failed with error:

```
Error : Parameter '@ResourceId' not found
```

When '@ResourceId' parameter is found and defined in SQL side. Other runnings of the same script with same project with same&nbsp;SP is successfull. This error occurs several times in 400-500 executions.

Please assist,

Rita

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [June 14, 2010, 6:44am UTC](https://www.finalbuilder.com/forums/t/calling-ado-stored-procedure-from-fb-script/1500/2 "2010-06-14T06:44:24Z")

</div>

You will need to provide us with more information, such as the SP definition (does it return a recordset?), SQL Server version and service pack level, client side driver versions, connection string etc.   
  
 I had a look through our code and the error message is not generated on our side, it is caused by the ADO driver throwing the exception.

---

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [June 14, 2010, 8:25am UTC](https://www.finalbuilder.com/forums/t/calling-ado-stored-procedure-from-fb-script/1500/3 "2010-06-14T08:25:35Z")

</div>

HI,   
 The SQL Server version is 10.0.2531 SP1.   
 The SP definition is :   
 ALTER PROCEDURE [dbo].[spDeallocateResource]   
 @ResourceId int ,   
 @RunBuildId bigint   
 AS   
 BEGIN   
 DECLARE @lockRes INT   
 DECLARE @Resource nvarchar(255)   
 …   
 END   
  
 It doesn’t return recordset.   
 How can I obtain the client side driver version?   
  
 Thanks

---

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [June 14, 2010, 8:29am UTC](https://www.finalbuilder.com/forums/t/calling-ado-stored-procedure-from-fb-script/1500/4 "2010-06-14T08:29:55Z")

</div>

HI,   
The SQL Server version is 10.0.2531 SP1.   
The SP definition is :   
ALTER PROCEDURE [dbo].[spDeallocateResource]   
@ResourceId int ,   
@RunBuildId bigint   
AS   
BEGIN   
DECLARE @lockRes INT   
DECLARE @Resource nvarchar(255)   
......   
END   
  
It doesn't return recordset.   
How can I obtain the client side driver version?   
  
Thanks   
&nbsp;
