﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » Unable to locate stored procedure</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Fri, 29 May 2026 12:44:24 GMT</lastBuildDate><ttl>20</ttl><item><title>Unable to locate stored procedure</title><link>http://forum.strataframe.net/FindPost21286.aspx</link><description>Hi,&lt;br&gt;
&lt;br&gt;
I'm in the process of determining which data update method I'd like to utilize, and have come across a little confusion.  I've set up a table, and have a select, insert and update stored procedure (labelled like tablename_Insert as per recommendations).  I have a business object which connects to said table.  I've put the BO onto a form, and have a save function on the form.  I set the BO property [i]InsertUsingStoredProcedure [/i]to true.  When I perform a save, the system reports an error with the message that it cannot locate the stored procedure named dbo.tablename_Insert.&lt;br&gt;
&lt;br&gt;
However, if I qualify the BO on the form by setting the InsertStoredProcedureName to databasename.dbo.tablename_Insert, the save functionality works.&lt;br&gt;
&lt;br&gt;
Any ideas?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Doug.</description><pubDate>Thu, 08 Jan 2009 10:35:27 GMT</pubDate><dc:creator>Doug Zapp</dc:creator></item><item><title>RE: Unable to locate stored procedure</title><link>http://forum.strataframe.net/FindPost21445.aspx</link><description>I believe I got this now.  I missed setting the DataSourceKey for each Business Object.  This wasn't pointing to the correct data source.&lt;br&gt;
&lt;br&gt;
Thanks for the help.</description><pubDate>Thu, 08 Jan 2009 10:35:27 GMT</pubDate><dc:creator>Doug Zapp</dc:creator></item><item><title>RE: Unable to locate stored procedure</title><link>http://forum.strataframe.net/FindPost21444.aspx</link><description>Trent,&lt;br&gt;
&lt;br&gt;
This may be a more telling of what my issue is.  I have a stored proc to retrieve my data for the BO.  The BO object is pointing at a table in my production dB.  In debugging, when this stored proc is called, my SqlCommand variable has a ConnectionString as follows:&lt;br&gt;
&lt;br&gt;
"Data Source=mycomputername\\SQLEXPRESS;Initial Catalog=StrataFrame;Integrated Security=True;Persist Security Info=False;Asynchronous Processing=True"&lt;br&gt;
&lt;br&gt;
This has to be the underlying issue.  But why would this be pointing at the StrataFrame dB?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Doug.</description><pubDate>Thu, 08 Jan 2009 10:12:14 GMT</pubDate><dc:creator>Doug Zapp</dc:creator></item><item><title>RE: Unable to locate stored procedure</title><link>http://forum.strataframe.net/FindPost21443.aspx</link><description>No, it relates to the DataSourceKey setup on the BO.&amp;nbsp; I would highly recommend reading through the help as all of this is outlined.&amp;nbsp; It would probably clear some of this up instead of little segments coming from me.</description><pubDate>Thu, 08 Jan 2009 09:56:46 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Unable to locate stored procedure</title><link>http://forum.strataframe.net/FindPost21441.aspx</link><description>Does the naming of the data connections relate to the Project Names set up on the BOM?</description><pubDate>Thu, 08 Jan 2009 09:36:01 GMT</pubDate><dc:creator>Doug Zapp</dc:creator></item><item><title>RE: Unable to locate stored procedure</title><link>http://forum.strataframe.net/FindPost21440.aspx</link><description>Well, this SetDataSources method is where you should be setting up the data sources for your BOs at runtime.&amp;nbsp; You can technically setup the DataSources anywhere prior to actually calling a query on a BO, but the SetDataSources method is where you define all of your connections that will be used at run-time by the BOs.</description><pubDate>Thu, 08 Jan 2009 09:07:11 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Unable to locate stored procedure</title><link>http://forum.strataframe.net/FindPost21439.aspx</link><description>Trent,&lt;br&gt;
&lt;br&gt;
Another naive question.  How does the SetDataSources method in Program.cs relate to the data connections for the Business Objects (if there is a relation at all)?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Doug.</description><pubDate>Thu, 08 Jan 2009 08:04:32 GMT</pubDate><dc:creator>Doug Zapp</dc:creator></item><item><title>RE: Unable to locate stored procedure</title><link>http://forum.strataframe.net/FindPost21434.aspx</link><description>Doug, that is the direction I would go.&amp;nbsp; This whole episode has seemed a bit strange anyway.&amp;nbsp; I cannot even think of what could be causing it past the things mentioned in previous posts.</description><pubDate>Wed, 07 Jan 2009 15:32:50 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Unable to locate stored procedure</title><link>http://forum.strataframe.net/FindPost21416.aspx</link><description>Trent,&lt;br&gt;
&lt;br&gt;
I was attempting to create a sample app and dB (rather than send my production code), and for some reason or other, it works (I don't need to qualify my stored procs or table names).  I don't think I did anything different.&lt;br&gt;
&lt;br&gt;
If I were to create a new project for my BO's and copy my existing BO's to this project, then re-build everything once I've defined the project's properties in the Mapper, could this potentially clean up something I've done?  Or is this more a factor of the entire solution?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Doug.</description><pubDate>Tue, 06 Jan 2009 17:04:10 GMT</pubDate><dc:creator>Doug Zapp</dc:creator></item><item><title>RE: Unable to locate stored procedure</title><link>http://forum.strataframe.net/FindPost21405.aspx</link><description>I assume that you are referring to the BO Mapper.&amp;nbsp; In which case, this is remember by project.&amp;nbsp; So if you have BOs in a solution/project named Doug.Zapp.Business, then you would create a BO Mapper project this assembly.&amp;nbsp; If you create a new solution or move the project into a new solution, that is fine, just select the exiting BO Mapper project instead of creating a new one.&lt;/P&gt;&lt;P&gt;All of the issues you are fighting here sound really strange.&amp;nbsp; You are welcome to post a sample with a database and simple project showing your issue and then we could go from there if this doesn't get you going as the run-time issue you are fighting is going to be unrelated to the design-time.</description><pubDate>Tue, 06 Jan 2009 09:26:34 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Unable to locate stored procedure</title><link>http://forum.strataframe.net/FindPost21403.aspx</link><description>I just noticed something else that may be causing my issues.  I just created a new BO, and upon specifying the BO properties, I noticed that my previous BO's did not have a Profile specified.&lt;br&gt;
&lt;br&gt;
What is this for and if this is in fact an issue, how do I get my original BO's to obtain the Profile?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Doug.&lt;br&gt;</description><pubDate>Tue, 06 Jan 2009 09:03:20 GMT</pubDate><dc:creator>Doug Zapp</dc:creator></item><item><title>RE: Unable to locate stored procedure</title><link>http://forum.strataframe.net/FindPost21392.aspx</link><description>OK.  Thanks.&lt;br&gt;
&lt;br&gt;
My connection string is as follows:&lt;br&gt;
Data Source="my computer name"\SQLEXPRESS;Initial Catalog=TPCShip;Integrated Security=True;Persist Security Info=False;Asynchronous Processing=True&lt;br&gt;
&lt;br&gt;
The only difference between the example and mine is that I have a "named" Data Source, and my Default Structure Settings is set to SQL Server rather than Database Deployment Toolkit.  My Initial Catalog is set (which I presume is correct, since that is the database I want to hit).  &lt;br&gt;
&lt;br&gt;
Is there anything else I should be looking for?</description><pubDate>Mon, 05 Jan 2009 08:18:05 GMT</pubDate><dc:creator>Doug Zapp</dc:creator></item><item><title>RE: Unable to locate stored procedure</title><link>http://forum.strataframe.net/FindPost21379.aspx</link><description>Hi Doug,&lt;/P&gt;&lt;P&gt;Nothing to worry about being newbie :P&lt;/P&gt;&lt;P&gt;To see the connection string do the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Open the BOM&lt;/LI&gt;&lt;LI&gt;Select your BO Library Project&lt;/LI&gt;&lt;LI&gt;Click the "Modify Project Properties" link on the right pane&lt;/LI&gt;&lt;LI&gt;You will have the Project Properties form which has the SQL Server Connection String as below:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/7441afa4-5d61-463e-8de2-cc74.png"&gt;</description><pubDate>Fri, 02 Jan 2009 17:40:04 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Unable to locate stored procedure</title><link>http://forum.strataframe.net/FindPost21378.aspx</link><description>I've got a really naive question, but being a newbie to SF, I hope I'm forgiven.  What's worse, I know exactly what you are talking about in the Connection string.&lt;br&gt;
&lt;br&gt;
My issue is how do I see the connection string in the Business Object Mapper?  I can see that the structure has a selected Class, Database, Table and Schema.  But I see nowhere that I can view the connection string, other than the Connection String Override.&lt;br&gt;
&lt;br&gt;
Help?</description><pubDate>Fri, 02 Jan 2009 17:04:35 GMT</pubDate><dc:creator>Doug Zapp</dc:creator></item><item><title>RE: Unable to locate stored procedure</title><link>http://forum.strataframe.net/FindPost21377.aspx</link><description>Doug, &lt;P&gt;Like Peter and Trent suggest, double check the connection string in the BOM Project Properties form, when you select your SQLExpress server, the connection string should have the "Initial Catalog=" like the sample below of one of my projects:&lt;/P&gt;&lt;P&gt;[quote]Data Source=localhost;&lt;FONT style="BACKGROUND-COLOR: #dddd33" color=#bb3333&gt;Initial Catalog=TranSure_Data&lt;/FONT&gt;;Integrated Security=True;Persist Security Info=False;Asynchronous Processing=True[/quote]</description><pubDate>Fri, 02 Jan 2009 16:38:28 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Unable to locate stored procedure</title><link>http://forum.strataframe.net/FindPost21375.aspx</link><description>Both my procedure naming convention and the initial catalog appear to be correct.  Attached is my Business Object Property dialog.  I have attempted selecting as source both the SQL Server and Database Deployment Toolkit options.&lt;br&gt;
&lt;br&gt;
I have also attempted manually added the connection string.  Are there any differences in using SQL Server Express?&lt;br&gt;
&lt;br&gt;
Thanks.&lt;br&gt;
Doug.</description><pubDate>Fri, 02 Jan 2009 15:25:54 GMT</pubDate><dc:creator>Doug Zapp</dc:creator></item><item><title>RE: Unable to locate stored procedure</title><link>http://forum.strataframe.net/FindPost21301.aspx</link><description>I would double check your names.&amp;nbsp; The default naming schema expected (if not provided) is like you mentioned, TableName_Update, for example.&amp;nbsp; So if this is not being found, then I would wonder if your schema name or initial catalog (like Peter mentioned) does not line up with the sproc name.&amp;nbsp; If you want to see this in action, I would recommend letting the DDT create one of these for you and then you would see exactly how it is defined.</description><pubDate>Fri, 19 Dec 2008 21:43:56 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Unable to locate stored procedure</title><link>http://forum.strataframe.net/FindPost21290.aspx</link><description>Hi Doug,&lt;/P&gt;&lt;P&gt;Just a&amp;nbsp;stab in the dark - I&amp;nbsp;would be double checking the BO Mapper to make sure you have an Initial Catalog in the connection string.&lt;/P&gt;&lt;P&gt;Cheers, Peter</description><pubDate>Fri, 19 Dec 2008 17:32:40 GMT</pubDate><dc:creator>Peter Jones</dc:creator></item></channel></rss>