Error: Could not find stored procedure !!

Hi,
Error: Could not find stored procedure.
I Installed the SQL Server SP2 and the error still occurs when ever I call the stored procedure from my windows app!!
Any Help ?

I run this query:
select uid,
left ([name], 30) as [name]
from sysobjects
where [name] like 'ThisMonthRecords%'
the result is:
1 ThisMonthRecords

Similar Messages

  • Error Could not find stored procedure 'SP_DATA1FINANCE'.;CommitTrans::Send

    Hi,
    We are getting the following error when trying to send data via Input schedule or via Data Manager.:
              - Error Message -
    ExecuteSQL::Could not find stored procedure 'SP_DATA1FINANCE'.;CommitTrans::Send through SendGovernor failed;
    This same error is happening in every application, for example we have an application called Ventas, and the error occurs as follows:
              - Error Message -
    ExecuteSQL::Could not find stored procedure 'SP_DATA1FINANCE'.;CommitTrans::Send through SendGovernor failed;
    We did not have problems before when using version 5.1, this error is appearing now that we migrate to version 7.0-
    Do you have any idea what could be the cause of this error? We already tried Re-Processing Applications but still the same problem.
    Thanks
    Ana

    After you upgrade you have to save all applications.
    Bacause in V7 there are other stored procedures then in V5.
    Kind regards,
    Sam

  • Error Could not find stored procedure dbo.proc_GetFollowableLists

    I am troubleshooting a FIM installation and I am getting this error:
    The Execute method of job definition Microsoft.Office.Server.UserProfiles.LMTRepopulationJob (ID 9f556bbb-1796-4dee-9a73-f283b7874aeb) threw an exception. More information is included below.
    Could not find stored procedure 'dbo.proc_GetFollowableLists'.
    I don't get a single hit on that when searching the forums or webs. Any ideas? is it related to FIM Install?

    Hi,
    Please perform the steps below:
    Launch Services.msc on your servers and ensure that the SharePoint Timers Service is started and that its Startup Type is Automatic.
    Go to Central Administration > Monitoring > Configure usage and health data collection, see if Enable usage data collection and Enable health data collection are checked. If they are already checked, disable them firstly, then enable them again. Remember
    to perform IISReset and restart the service in the step 1.
    Please refer more information via:
    http://social.technet.microsoft.com/wiki/contents/articles/24492.sharepoint-2013-the-execute-method-of-job-definition-microsoft-office-server-userprofiles-lmtrepopulationjob-id-threw-an-exception.aspx
    http://www.mysharepointadventures.com/2012/10/event-6398-could-not-find-stored-procedure-dbo-search_getrecentstats/
    http://spjoel.wordpress.com/2012/08/06/could-not-find-stored-procedure-dbo-search_getrecentstats/
    http://www.marc-lognoul.me/itblog-en/sharepoint-2010-event-id-5586-and-6398-could-not-find-stored-procedure-dbo-search_getrecentstats-revisited/
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • Could not find stored procedure

    Dear gurus,
    I am working, for the first time, on a SAP BPC ( MS ) demo.
    I have created a new input schedule based on a dynamic template, with some modifications.
    However when I try to submit data, it gives an error:
    "Could not find stored procedure 'dbo.up_ConcurrentLockDEL_HR'.;"
    DEL_HR is my application and is based on a existing one "FINANCE", but I have added new dimensions and deleted another ones.
    I can not understand this message because I don't know where I define stored procedures. I also commented all script logics that this application had.
    Could you help me on this?
    Best regards,
    Vitor Ramalho

    Hi Vitor,
    You need to login to the server, where SQL has been installed. You can login to that system using remote desktop connection.
    Once you login to the SQL server, under the databases, you will find your application set. Expand it and navigate to Programmability and then to Stored Procedures. Here, you will get all the stored procedures.
    The above statements will guide you to find the stored procedures. However, the problem, we are looking at is little different. Usually, with every application, a stored procedure with the name, "dbo.up_ConcurrentLockappname" gets created automatically. However, I am guessing that this stored procedure is not available for your application. Search for the stored procedure just to make sure that its available or not. If its not available, search for dbo.up_ConcurrentLockFinance. I am asking to search for the Finance one since your application is copy of the Finance application. So, just to make sure that the source application is fine. If this stored procedure is present but the stored procedure for your application is not present, then I would suggest you to create the application once again. Process it properly.
    Hope this helps.

  • Central Administraion Internal server error 500 | event id 5586 sharepoint foundation unknown sql exception 2812 could not find stored procedure dbo.proc_gettimerlock

    Hi,
    We have two SharePoint 2010 SP2 servers with one SQL 2012 Backend.
    Recently we cannot open the central administration, getting 500 internal server error and multiple SQL errors in event viewer:
    event id 5586 sharepoint foundation unknown sql exception 2812 could not find stored procedure dbo.proc_gettimerlock
    event id 5586 sharepoint foundation unknown sql exception 2812 occured could not find stored procedure 'proc_fetchdocforhttpget'
    Also I cannot run SharePoint configuration wizard, getting this error: sharepoint 2010 failed to resgister sharepoint services
    In the log file, I found this error "an exception of type microsoft.sharepoint.spexception was thrown 0x80131904"
    Any ideas?
    Thanks, Shehatovich

    As You can see below stored procedure has its specific Permission's, check user who is performing action as well as CentralAdministation Pool has right permission and their permissions are not modified from SQL Server.
    -Samar
     =
    Sr. Software engineer

  • [Microsoft][ODBC SQL Server Driver][SQL Server]Could not find stored procedure 'dbo.sp_SPNAMEHERE'.

    OK, something seemed to have changed with my system because this error is NEW. It might be related to my system upgrade from Vista to Win7, but just guessing here.
    I run a database on a corporate MS Sql Server (2005) and an ASP application that connects via ODBC. The real world application works fine, however when I attempt to access Stored Procedures from Dreamweaver (on my development machine)  I am getting the following error:
    [Microsoft][ODBC SQL Server Driver][SQL Server]Could not find stored procedure 'dbo.sp_SPNAMEHERE'.
    This only seems to happen on Stored procedures that RETURN a recordset.
    system:
    Win7
    Dreamweaver CS4
    Code: VBScript/Classic ASP
    SQL Server 2005
    Connecting via ODBC: MM_MY_STRING = "Driver={SQL Server};Server=wscxxxxxxxxx;Database=dbsystem;Uid=username;Pwd=XXXXXXXXXXXX"
    Stored procedures that do not return a recordset are not an issue.... this has put my development work at a standstill!!
    Thanks in advance!

    Well, I hate bumps, but I am really running out of solutions. I have now tried to use a system DSN on my development machine and that didnt solve the problem. I just un-installed DW and re-installed it and that didnt solve my problem either.
    This is very frustrating, because I cannot use any stored procs that return recordsets... I am stuck... can anybody think of a relatively easy work-around to working in DW w/ recordsets that come from SPs when you cant actually access them?
    The really weird thing is, when I build the command, and choose the stored proc, and give it valid input variables, and TEST it from the TEST button, everything works and data is returned as expected. Once I click "OK" and actually add it to the ASP page the recordset that should be visible isnt... and when I click the plus sign in the bindings window I get the error...
    Help!!

  • Could not find stored procedure 'DataRefresh.GetSchedule'.

    When I try to fresh a powerpivot workbook that is published on SharePoint. It always give me an error. When I look in the ULS log it says
    Following error occured while trying to execute a sql query: System.Data.SqlClient.SqlException (0x80131904): Could not find stored procedure 'DataRefresh.GetSchedule'.     at System.Data.SqlClient.SqlConnection.OnError(SqlException exception,
    Boolean breakConnection, Action`1 wrapCloseInAction)     at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)     at System.Data.SqlClient.TdsParser.TryRun(RunBehavior
    runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)     at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()    
    at System.Data.SqlClient.SqlDataReader.get_MetaData()     at System.Data.Sq... 31a41e9c-44c3-409b-3f57-f575019b7830
    05/24/2013 15:48:58.33* w3wp.exe (0x1DCC)                        0x2720 PowerPivot Service           
     Data Refresh                   97 Medium   ...lClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)    
    at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite)     at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior
    cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)     at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior,
    RunBehavior runBehavior, Boolean returnStream, String method)     at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)     at System.Data.S... 31a41e9c-44c3-409b-3f57-f575019b7830
    05/24/2013 15:48:58.33* w3wp.exe (0x1DCC)                        0x2720 PowerPivot Service           
     Data Refresh                   97 Medium   ...qlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)     at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior
    behavior)     at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)     at System.Data.Common.DbDataAdapter.Fill(DataSet
    dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)     at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)     at Microsoft.AnalysisServices.SPAddin.MTSAccessorBase.ExecuteWithResults(String
    commandText, CommandType commandType, SqlParameter[] paramArray)  ClientConnectionId:6e4dd12c-4c00-4d28-810f-979bae03b34d 31a41e9c-44c3-409b-3f57-f575019b7830
    05/24/2013 15:48:58.33  w3wp.exe (0x1DCC)                        0x2720 SharePoint Foundation        
     Monitoring                     b4ly Medium   
    val it: unit=()

    I have this issue in my SharePoint 2013 azure environment. It is unclear what I need to do to overcome this issue. Any help is most appreciated.
    I get the following log messages:
    Following error occured while trying to execute a sql query: System.Data.SqlClient.SqlException (0x80131904):
    Could not find stored procedure 'DataRefresh.GetSchedule'.
    EXCEPTION: NoAvailableStreamingServerException: We cannot locate a server to load the workbook Data Model.
    macrel

  • Event ID 57 - Could not find stored procedure 'dbo.proc_MSS_CrawlAdmin' and Could not find 'dbo.proc_MSS_Crawl'

    Sharepoint Enterprise 2010 - sp1 (feb. 2013 cu) - running enterprise search service
    Running sql. 2012 enterprise
    Event log has constant event ID 57 with A database error occurred. Source: Microsoft SQL Server Native Client 10.0 Code: 2812 occurred 1 time(s) Description: Could not find stored procedure 'dbo.proc_MSS_Crawl'  and along with it another Could not find
    stored procedure 'dbo.proc_MSS_CrawlAdmin'.
    How do I fix this issue?

    Hi there,
    I am seeing this issue (just the "proc_MSS_Crawl" stored procedure, not the other). Did you find a fix for this? Did you try running the configuration wizard to see if this resolved it?
    Regards,
    Ben
    Ben Weeks
    SharePoint Consultant @ Webtechy Ltd
    T: +441223922070 F: +448701315220
    Web: http://www.webtechy.co.uk Blog:
    http://blog.webtechy.co.uk

  • Could not find stored procedure 'mds_getRepositoryVersion'.

    When I start up the BI_Server1 component I get the following error in the logs and the server goes into ADMIN state. Any ideas what may be causing this? I've fixed a previous issue with wrong password in mds-owsm,that error is gone now.
    I've already confirmed I can access the database through SSMS.
    SELECT OBI_REP.BI116_MDS.mds_getRepositoryVersion()
    Result:
    11.1.1.61.63
    OBIEE11g 11.1.1.6
    Sql Server 2008 R2
    Windows Server 2008
    ####<Jul 20, 2012 5:27:18 PM EDT> <Info> <JDBC> <******> <bi_server1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <0000JYaIM1pEgKhwD8icKw1G2SoP000002> <1342819638294> <BEA-001128> <Connection for pool "mds-owsm" closed.>
    ####<Jul 20, 2012 5:27:18 PM EDT> <Error> <JDBC> <WUVW****> <bi_server1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <0000JYaIM1pEgKhwD8icKw1G2SoP000002> <1342819638313> <BEA-001112> <Test "SELECT 1 FROM DUAL" set up for pool "mds-owsm" failed with exception: "java.sql.SQLSyntaxErrorException: [FMWGEN][SQLServer JDBC Driver][SQLServer]Invalid object name 'DUAL'.".>
    ####<Jul 20, 2012 5:27:18 PM EDT> <Error> <JDBC> <WU****> <bi_server1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <0000JYaIM1pEgKhwD8icKw1G2SoP000002> <1342819638315> <BEA-001111> <Unable to verify the test "SELECT 1 FROM DUAL" set up for pool "mds-owsm". Connections will not be tested. The test will not be used by isValid neither.>
    ####<Jul 20, 2012 5:27:18 PM EDT> <Info> <Common> <WU*****> <bi_server1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <0000JYaIM1pEgKhwD8icKw1G2SoP000002> <1342819638318> <BEA-000628> <Created "1" resources for pool "mds-owsm", out of which "1" are available and "0" are unavailable.>
    ####<Jul 20, 2012 5:27:18 PM EDT> <Error> <Deployer> <WU******> <bi_server1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <0000JYaIM1pEgKhwD8icKw1G2SoP000002> <1342819638608> <BEA-149205> <Failed to initialize the application 'bipublisher [Version=11.1.1]' due to error oracle.mds.exception.MDSExceptionList: MDS-01329: unable to load element "persistence-config"
    MDS-01370: MetadataStore configuration for metadata-store-usage "MAR_TargetRepos" is invalid.
    [FMWGEN][SQLServer JDBC Driver][SQLServer]Could not find stored procedure 'mds_getRepositoryVersion'.
    oracle.mds.exception.MDSExceptionList: MDS-01329: unable to load element "persistence-config"
    MDS-01370: MetadataStore configuration for metadata-store-usage "MAR_TargetRepos" is invalid.
    [FMWGEN][SQLServer JDBC Driver][SQLServer]Could not find stored procedure 'mds_getRepositoryVersion'.
         at oracle.mds.config.PConfig.loadFromBean(PConfig.java:953)
         at oracle.mds.config.PConfig.<init>(PConfig.java:758)
         at oracle.mds.config.MDSConfig.loadFromBean(MDSConfig.java:787)
         at oracle.mds.config.MDSConfig.loadFromElement(MDSConfig.java:848)
         at oracle.mds.config.MDSConfig.<init>(MDSConfig.java:491)
         at oracle.mds.config.MDSConfig.<init>(MDSConfig.java:438)
         at oracle.mds.internal.lcm.deploy.DeployManager.deploy(DeployManager.java:516)
         at oracle.mds.internal.lcm.deploy.DeployManager.startDeployment(DeployManager.java:204)
         at oracle.mds.internal.lcm.MDSLifecycleListenerImpl.start(MDSLifecycleListenerImpl.java:215)
         at oracle.mds.lcm.weblogic.WLLifecycleListener.preStart(WLLifecycleListener.java:77)
         at weblogic.application.internal.flow.BaseLifecycleFlow$PreStartAction.run(BaseLifecycleFlow.java:282)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.application.internal.flow.BaseLifecycleFlow$LifecycleListenerAction.invoke(BaseLifecycleFlow.java:199)
         at weblogic.application.internal.flow.BaseLifecycleFlow.preStart(BaseLifecycleFlow.java:62)
         at weblogic.application.internal.flow.HeadLifecycleFlow.prepare(HeadLifecycleFlow.java:283)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
         at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
         at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
         at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:141)
         at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:39)
         at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:191)
         at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
         at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:261)
         at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:246)
         at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
         at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
         at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
         at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused By: oracle.mds.exception.MDSExceptionList: MDS-01329: unable to load element "persistence-config"
    MDS-01370: MetadataStore configuration for metadata-store-usage "MAR_TargetRepos" is invalid.
    [FMWGEN][SQLServer JDBC Driver][SQLServer]Could not find stored procedure 'mds_getRepositoryVersion'.
         at oracle.mds.config.PConfig.loadFromBean(PConfig.java:953)
         at oracle.mds.config.PConfig.<init>(PConfig.java:758)
         at oracle.mds.config.MDSConfig.loadFromBean(MDSConfig.java:787)
         at oracle.mds.config.MDSConfig.loadFromElement(MDSConfig.java:848)
         at oracle.mds.config.MDSConfig.<init>(MDSConfig.java:491)
         at oracle.mds.config.MDSConfig.<init>(MDSConfig.java:438)
         at oracle.mds.internal.lcm.deploy.DeployManager.deploy(DeployManager.java:516)
         at oracle.mds.internal.lcm.deploy.DeployManager.startDeployment(DeployManager.java:204)
         at oracle.mds.internal.lcm.MDSLifecycleListenerImpl.start(MDSLifecycleListenerImpl.java:215)
         at oracle.mds.lcm.weblogic.WLLifecycleListener.preStart(WLLifecycleListener.java:77)
         at weblogic.application.internal.flow.BaseLifecycleFlow$PreStartAction.run(BaseLifecycleFlow.java:282)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.application.internal.flow.BaseLifecycleFlow$LifecycleListenerAction.invoke(BaseLifecycleFlow.java:199)
         at weblogic.application.internal.flow.BaseLifecycleFlow.preStart(BaseLifecycleFlow.java:62)
         at weblogic.application.internal.flow.HeadLifecycleFlow.prepare(HeadLifecycleFlow.java:283)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
         at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
         at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
         at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:141)
         at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:39)
         at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:191)
         at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
         at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:261)
         at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:246)
         at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
         at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
         at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
         at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    >
    Edited by: 844667 on Jul 20, 2012 2:48 PM

    Hi,
    I am getting the same thing and have not been able to find a resolution - would you happen to recall how you resolved this?

  • Could not find stored procedure 'sp_start_job'

    I'm trying to run a ms sql server agent job from within my vb.net code using sp_start_job and getting exception...
    Could not find stored procedure 'sp_start_job'.
    ... so obviously I'm doing something wrong.  My vb code contains is ...
            jobCommand = New SqlCommand("sp_start_job", sqlConn)
            jobCommand.CommandType = CommandType.StoredProcedure
            jobParameter = New SqlParameter("@job_name", SqlDbType.VarChar)
            jobParameter.Direction = ParameterDirection.Input
            jobCommand.Parameters.Add(jobParameter)
            jobParameter.Value = "nameOfServerAgentJob"
            jobCommand.ExecuteNonQuery()
    Can someone show me how to run the SQL Server Agent job properly from my vb code?
    Thanks tonnes for any help, Roscoe

    Or directly redirect the connection upon creation of the connection string to the right database, e.g.
    string ConnectionString = "Data Source=YourServer;Initial Catalog=msdb;Integrated Security=True";
    See more samples of connection strings here:
    http://www.connectionstrings.com/sql-server/
    -Jens
    Jens K. Suessmeyer http://blogs.msdn.com/Jenss

  • Error: Could not find a match for... ?

    Hi,
    I am trying to compile some code using Studio 10/11 which appears to compile cleanly using a bunch of different C++ compilers (xlC, aCC, VC, g++) but is failing using the C++ compiler in both Studio 10 and Studio 11 with:
    "test.cpp", line 18: Error: Could not find a match for MKGeomT::getDistanceSquared<MKGeomT::_DIM, MKGeomT::_TYPE>(const MKGeomT::Segment<MKT::Dim2, MKT::Double>&, const MKGeomT::Point<MKT::Dim2, MKT::Double>&, MKGeomT::Point<MKT::Dim2, MKT::Double>*, double*).
    "test.cpp", line 23: Error: Could not find a match for MKGeomT::getDistanceSquared<MKGeomT::_DIM, MKGeomT::_TYPE>(const MKGeomT::Segment<MKT::Dim3, MKT::Double>&, const MKGeomT::Point<MKT::Dim3, MKT::Double>&, MKGeomT::Point<MKT::Dim3, MKT::Double>*, double*).
    Any ideas on how to get this to compile would be appreciated.
    test.cpp:
    /opt/SUNWspro/bin/CC -library=stlport4 -c test.cpp
    #include "all.h"
    namespace MKGeomT
    template < class DIM, class TYPE >
    double getDistanceSquared(Segment < DIM, TYPE > const &segment,
    Point < DIM, TYPE > const &querypt,
    Point < DIM, TYPE > *closestpoint,
    double *param)
    { return 0.0; }
    template double getDistanceSquared < MKT::Dim2 > (Segment2 const &segment,
    Point2 const &querypt,
    Point2 *closestpoint,
    double *param);
    template double getDistanceSquared < MKT::Dim3 > (Segment3 const &segment,
    Point3 const &querypt,
    Point3 *closestpoint,
    double *param);
    all.h:
    // a.h
    namespace MKGeomT
    template < class DIM, class TYPE > class Point;
    template < class DIM, class TYPE > class Segment;
    template < class DIM, class TYPE >
    double getDistanceSquared(Segment < DIM, TYPE > const &segment,
    Point < DIM, TYPE > const &point,
    Point < DIM, TYPE > closestpoint /= 0*/,
    double *param = 0);
    template < class DIM, class TYPE >
    inline double getDistance(Segment < DIM, TYPE > const &segment,
    Point < DIM, TYPE > const &point,
    Point < DIM, TYPE > *closestpoint = 0)
    return 0.0;
    // b.h
    namespace MKT
    class Dim2 { public: enum { NUM_DIM = 2 }; };
    class Dim3 { public: enum { NUM_DIM = 3 }; };
    class Float { public: typedef float  Stor_t; typedef double Calc_t; };
    class Double { public: typedef double Stor_t; typedef double Calc_t; };
    } // end of namespace MKT
    // c.h
    using MKT::Dim2;
    using MKT::Dim3;
    using MKT::Double;
    namespace MKGeomT
    template < class DIM, class TYPE >
    class PointBase
    template < class DIM, class TYPE > class Point;
    #if 1
    template < class _TYPE >
    class Point < Dim2, TYPE > : public PointBase < Dim2, TYPE >
    template < class _TYPE >
    class Point < Dim3, TYPE > : public PointBase < Dim3, TYPE >
    #endif
    typedef Point < Dim2, Double > Point2;
    typedef Point < Dim3, Double > Point3;
    } // end of namespace MKGeomT
    // d.h
    namespace MKGeomT
    /*! The Segment is a geometry class storing a segment in 3-D. Things
    like the segment vector and length are cached behind the
    scenes so subsequent retrieval is a no-op. */
    template < class DIM, class TYPE = MKT::Double >
    class Segment
    template < class DIM, class TYPE >
    double getDistanceSquared (Segment < DIM, TYPE > const &rkSeg0,
    Segment < DIM, TYPE > const &rkSeg1,
    double* pfSegP0 = 0,
    double* pfSegP1 = 0);
    template < class DIM, class TYPE >
    double getDistanceSquared2(Segment < DIM, TYPE > const &rkSeg0,
    Segment < DIM, TYPE > const &rkSeg1,
    double* pfSegP0 = 0,
    double* pfSegP1 = 0);
    typedef Segment < MKT::Dim2, MKT::Double > Segment2;
    typedef Segment < MKT::Dim3, MKT::Double > Segment3;
    thanks,
    k.m

    Never mind, I see that you intended to include b.h, c.h, and d.h in all.h.
    Many compilers do not look at template code until the code is instantiated. This code consists only of declarations, with little that can be instantiated. It's possible that other compilers would also complain about this code if they got to the point of processing all the template declarations.
    Can you add some instantiations along with template definitions and a main function so that the code can be compiled and linked?

  • BW Monitor error  Could not find code page for receiving system

    Hi All,
    Frequent BW Monitor error  - Could not find code page for receiving system
    I checked SM59 and every setting is fine there. Any other possibility ?
    Regards
    Srinivas

    The log updated in the status tab was:
    Error when updating Idocs in Business Information Warehouse
    Diagnosis
    Errors have been reported in Business Information Warehouse during IDoc update:
    Could not find code page for receiving system
    System Response
    Some IDocs have error status.
    Procedure
    Check the IDocs in Business Information Warehouse . You do this using the extraction monitor.
    Error handling:
    How you resolve the errors depends on the error message you get.

  • Could not execute stored procedure in oracle

    hello experts,
    Problem: I can not execute stored procedures stored in Oracle data base. Error Message: Portal request failed. Could not execute stored procedure.
    My steps:
    i connected my locally installed Oracle data base to the VC. I mapped the data base user to my VC user. I tested connection and it is fine. Further I see the db alias in Visual Composer and i can drop stored procedures to my story board. I can define parameters, but when I am executing procedures I get the error message.
    Further I installed MS SQL Server lokally and connected to the VC and it is working fine. I can do everything.
    Why it is not working for Oracle DB?
    DriverName: com.sap.portals.jdbc.oracle.OracleDriver
    Connect-URL: jdbc:sap:oracle://ip:port;sid=XE
    Any comment is highly appreciated.
    anton.

    Hi,
    Also you can follow this link which explains you the procedure to configure BI JDBC system for visual composer.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6209b52e-0401-0010-6a9f-d40ec3a09424
    Regards
    Inder
    Do reward points if helpful.

  • Eclipse give following error :could not find Java 2 runtime environment

    When I try to start eclipse it is giving me following error could not find Java 2 runtime environment.It was working fine untill I installed a new verson of eclipse although I am not whethar that is the source of problem.
    When i give java -version command in command prompt it shows
    Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
    has value '1.4', but '1.6' is required.
    Error: could not find java.dll
    Error: could not find Java 2 Runtime Environment.
    My java Home ,classpath , and path are all set as I say it was earliar woking fine.
    Please Help.

    I know this is a relatively old post, but some people can stumble on this page when doing a search for this problem.
    Anyway, I ran into this on my PC after I installed Sybase which had an older jre.
    Solution:
    1. Run regedit
    2. Look for Java Runtime Environment
    You may have to do multiple searches. Eventually you'll find one with the version number.
    3. Modify the value and change it to the correct version number. (in your case, you would have changed it from 1.4 to 1.6).
    This is much quicker than reinstalling Java every time installing something that uses an older version of Java hoses up the registry value.

  • Error:could not find Java 2 Runtime Environment

    Greetings,i have a java problem with a game(football manager 2008) installation.I have a hp laptop with windows vista installed and when the installation is on 100%.It appears Error:could not find Java 2 Runtime Environment.I have taken some screenshots to help you understand my problem.
    intallation:
    http://img218.imageshack.us/img218/7945/egkatastashba2.jpg
    the error:
    http://img232.imageshack.us/img232/6388/errorty5.jpg
    Also i tried to join a site which java is required and it appeard the following errors:
    http://img87.imageshack.us/img87/6465/sfalmasp6.jpg
    http://img87.imageshack.us/img87/9337/sfalma2sj1.jpg
    PS:I have installed the java(Java(TM)6 Update 5).I hope to receive a reply with the solution of the problem as soon as possible.Thank you
    Edited by: Cap.George on Mar 7, 2008 8:46 AM
    Edited by: Cap.George on Mar 7, 2008 8:47 AM

    Consider going to a Windows forum
    (or better yet, to Microsoft's web site or to a local book store)
    and learning about Vista's "User Account Control".
    At least do a Google search on it.

Maybe you are looking for

  • How to connect my home Mac at distance

    Please, can someone tell me how process to make a connection between my home Mac et my Macbook pro  when I am outside home? Thank you for the answers

  • Initialize the shared variable

    "From the issue description it seems that the Shared variable needs to be reinitialize. Create a formula to initialize the shared variable value and place it in appropriate section of the Main Report based on the section in which you are displaying s

  • Solaris 10 install on Virtualbox2.1.4 is  32-bit

    HI, I installed Solaris 10 5/08 s10x_u5wos_10 X86 on a PC x86 (Intel Dual CPU E2180 @ 2.00GHz LGA 775) ,it is OK and is 64bit. -bash-3.00$ isainfo -v 64-bit amd64 applications cx16 mon sse3 sse2 sse fxsr mmx cmov amd_sysc cx8 tsc fpu 32-bit i386 appl

  • How do i turn off automatic download and make it stay off

    I use the preferences in ITUNES to turn off automatic down loads and every time i start iTunes it  tries to force me to sign to an ICLOUD account and automatic download. I have tried everything I can find on apple help sites. But you Apple carefully

  • IMessage Sync between devices

    My boyfriend and I have been using iMessage to communicate internationally; he is currently in the Philippines.  It's been awesome for chatting and FaceTime!  I can "text message" him from my phone where ever in the states and he uses wi-fi to receiv