开发者

How to Set parameters to formula stored in Database in MSSQl

开发者 https://www.devze.com 2023-03-02 12:21 出处:网络
How to Set parameters to formula stored in table in MSSQl Formula parameter also st开发者_Python百科ored in different tableIf you want to call MSSQL database formula

How to Set parameters to formula stored in table in MSSQl Formula parameter also st开发者_Python百科ored in different table


If you want to call MSSQL database formula

string command = "select dbo.TestFormula({0}, {1}";

string.Format(command, var1, var2);
SqlCommand cmd = new SqlCommand(command, conn);
....

Hope this help

0

精彩评论

暂无评论...
验证码 换一张
取 消