简体   繁体   中英

UniDac doesnt find stored procedure schema

I have used UniDac VCL components for Delphi for a year now but recently started quite a big project with SQL Server 2012 and I want to separate the tables and stored procedures in different schemes my whole logic is in stored procedures so no query's in the program only the stored procedure names and parameters.

The problem is that when I change my stored procedure schema from dbo to let's say SchemaA and then try to run it from Delphi the TUniStoredProc component finds it as ProcedureName and not as SchemaA.ProcedureName which throws the exception of not finding the stored procedure on execute.

I can't assign different schemas to different users as their default schemes because there are users that use from 4-6 schemes depending on the permissions. What I tried already is manually entering SchemaA.ProcedureName and that works perfectly but doing so for ~150 components would take a lot of time so I'm searching for a better solution.

Any thoughts?

I don't know how many forms or modules those components are on but if they are centralized then open the Form(s) in text mode and do a replace.

UniDac's Macros may come in handy here, one could use {MySchema}.ProcedureName and set the MySchema name in the connection Macros.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM