|
Procedure parameter is nvarchar
In addition, such an interesting phenomenon was found during the monitoring of sql server profiler:
Asp.net's built-in controls query the database, when the stored procedure is executed, the database will automatically add N to the parameter whose parameter type is nvarchar during execution, so the above problems will not be encountered.
This means that when the stored procedure I wrote is executed, the database will remove the N that should be added, so it will cause garbled characters.
Theshenmue024brother reminded that the final solution was to compose a SQL statement in the website program, add N to the statement, and then execute it.
However, the problem is still to be studied. |
|