I have created a Visual C# SQL CLR database project. I added two stored procedure: test1.cs
and test2.cs
. I have a function in test1.cs
as AddNumber
.
In test2.cs
, I want to have a function with the same name which will do something else, but this is the error I get after I rebuild it:
Type 'StoredProcedures' already defines a member called 'AddNumber' with the same parameter types.
The code for test1 looks like this:
public partial class StoredProcedures {
[Microsoft.SqlServer.Server.SqlProcedure]
public static void test1(string Path) {
// Put your code here
}
private static void AddNumbers(int a, int b) {
}
};
test 2
public partial class StoredProcedures {
[Microsoft.SqlServer.Server.SqlProcedure]
public static void test2(string Path) {
// Put your code here
}
private static void AddNumbers(int a, int b) {
}
};
I do not want to change the names as I have multiple other functions with the same name. Also, there are many variables with the same name in both files, too.