BMP v9: Issue with a Stored Procedure in a business object
Hi,
Does anyone know the correct database permission required for Metastorm to use stored procedures in a Business Object.
Using Metastorm v9 SR2.
I have the following scenario.
1) Creating a stored procedure in the Metastorm DB, connecting as DBO .... viola the query type business object can execute and show test results.
2) Using an existing stored procedure on a remote database via a Connection object. Testing the stored procedure returns nothing back, not even column names as it did in 1)
I have executed the stored procedure in SQL Management Studio and it runs perfectly.
I have tested the connection and it connects, and I can write a SQL query that returns results on clicking "Test" --> "Refresh"
So it seems stored procedures in a business object need some special permission that's inbetween the execute permission and full dbo access.
Ideas?
Comments
-
Issue resolved
The issue was the stored procedure on the remote database was inserting into a temporary table before finally selecting out of it once all logic was completed.
In order to execute test on this procedure I had to change the procedure to include "SET NOCOUNT ON" (MSSQL), this then allowed me to run tests with test parameters, however the column names still wouldn't pass back into the Variable name table. Meaning I still couldn't Deploy the solution.
On testing I found any stored procedure with an insert or update statement before the result set select would have this issue.
I'm not a DBA so i'm not sure if there are or SET options available which would have fixed this however, I was able to re-write the stored procedure to no longer use inserts and updates into a temporary table.
Hope this helps someone else out there.
Cheers,
Bill
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 154 General Questions
- 148 Thrust Services
- 57 Developer Hackathon
- 37 Thrust Studio
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 189 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 9 XM Fax
- Follow Categories