CatalogNameToUse - CreateCorrectStoredProcedureName fails

Posts   
 
    
Posts: 13
Joined: 30-Mar-2009
# Posted on: 02-Dec-2009 11:41:03   

Start options: Normal catalog name is "Hermes", test catalog name is "Hermes.Client"

Error During Call of


private string CreateCorrectStoredProcedureName(string storedProcedureName)
        {
            DynamicQueryEngine dqe = (DynamicQueryEngine)CreateDynamicQueryEngine();
            string procName = dqe.GetNewPerCallStoredProcedureName(storedProcedureName);
            return DynamicQueryEngine.GetNewStoredProcedureName(procName);
        }

storedProcedureName:"[Hermes].[dbo].[AufgabeList]"

dqe.GetNewPerCallStoredProcedureName(storedProcedureName) returns: "Hermes.Client.[dbo].[AufgabeList]" (= procName in next method call)

DynamicQueryEngine.GetNewStoredProcedureName(procName) returns "Hermes.Client.[dbo]"

The "CallRetrievalStoredProcedure" in DataAccessAdapter.cs fails with this name logically in line "adapter.Fill(tableToFill);"

Error message: Could not find server 'Hermes' in sys.servers. Verify that the correct server name was specified. If necessary, execute the stored procedure sp_addlinkedserver to add the server to sys.servers.

What kind of "CatalogNameToUse-Names" are not supported ? The Use of "sqlServerCatalogNameOverwrites" gets the same result.

Change the "Hermes.Client.[dbo].[AufgabeList]" to "[Hermes.Client].[dbo].[AufgabeList]" manually before calling DynamicQueryEngine.GetNewStoredProcedureName method fixes the error. Also change the Testname to "Hermes_Client"

Thanks

Walaa avatar
Walaa
Support Team
Posts: 14951
Joined: 21-Aug-2005
# Posted on: 02-Dec-2009 14:00:14   

Which runtime library build are you using?

Posts: 13
Joined: 30-Mar-2009
# Posted on: 02-Dec-2009 16:14:23   

Walaa wrote:

Which runtime library build are you using?

The SD.LLBLGen.Pro.ORMSupportClasses.NET20.dll version: 2.6.9.1005

LLBLGenPro Version: 2.6 Final, October 9th, 2009

DB: SQL Server 2005

Walaa avatar
Walaa
Support Team
Posts: 14951
Joined: 21-Aug-2005
# Posted on: 02-Dec-2009 16:34:25   

This was reported before, please check the following thread for an explanation: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=10861

Posts: 13
Joined: 30-Mar-2009
# Posted on: 02-Dec-2009 16:41:24   

Walaa wrote:

This was reported before, please check the following thread for an explanation: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=10861

OK thanks, at the moment this to fix by the described way is no problem...