Using SQL Server named parameters with ExecuteStoreQuery and ExecuteStoreCommand

后端 未结 2 1002
野趣味
野趣味 2021-01-11 16:44

I am trying to use SQL Server named parameters with ObjectContext.ExecuteStoreQuery and ObjectContext.ExecuteStoreCommand when calling a stored pro

2条回答
  •  失恋的感觉
    2021-01-11 17:00

    FYI - do not name your stored procedures to start with sp_ as that's how System stored procs are named. The result is that the SQL server will look through all system stored procs first before finding your definition and will seem slower in production with many stored procs and calls of them.

提交回复
热议问题