Hi,
In my current SQL Server database we have multiple DB users (who could have SPs in the same name).
e.g.:
User1.SP1 Param1,Param2
User2.SP1 Param1,Param2
We use a version of EntLib that uses the SqlCommandBuilder.DeriveParameters() method that will retrieve the parameter count for an SP.
Whats happening now is when the DeriveParameters() method is invoked for "SP1", it returns the count for both the users! Therefore even though SP1 has only 2 parameters it returns 4 (2 for User1 and 2 for User2). This causes an error in our application (Parameter count mismatch error).
Is there anyway by which i can make DeriveParameters() to recognise user Schema (user name will be available in the connection string)?
We are currently using .NET 1.1...
Known is handfull, Unknown is worldfull
In my current SQL Server database we have multiple DB users (who could have SPs in the same name).
e.g.:
User1.SP1 Param1,Param2
User2.SP1 Param1,Param2
We use a version of EntLib that uses the SqlCommandBuilder.DeriveParameters() method that will retrieve the parameter count for an SP.
Whats happening now is when the DeriveParameters() method is invoked for "SP1", it returns the count for both the users! Therefore even though SP1 has only 2 parameters it returns 4 (2 for User1 and 2 for User2). This causes an error in our application (Parameter count mismatch error).
Is there anyway by which i can make DeriveParameters() to recognise user Schema (user name will be available in the connection string)?
We are currently using .NET 1.1...
Known is handfull, Unknown is worldfull