Samuel David
Member
- Joined
- Nov 29, 2022
- Messages
- 9
- Programming Experience
- Beginner
Hello Everyone,
I have below block of code.
Here I want to see the complete sql command execution with params in sql server code block. How can i check that here(C#)
Thanks,
Sam
I have below block of code.
StoredProcedure with Parameters:
private TData ExecuteReturnData<TData>(string procName, Func<IDataReader, TData> translator, SqlConnection sqlCon, params SqlParameter[] parameters)
{
using var sqlCmd = CreateCommand(procName, sqlCon, parameters);
sqlCmd.CommandTimeout=120;
using var reader = sqlCmd.ExecuteReader();
var elems = translator(reader);
return elems
}
Here I want to see the complete sql command execution with params in sql server code block. How can i check that here(C#)
Thanks,
Sam