SqlDataReader implementation of the stored procedure with Datetime type of encounter

I ran into a problem, debugging for a long time.

-----------------------
DECLARE @ P1 int
SET @ = NULL P1
DECLARE @ P2 nvarchar (512)
SET @ = NULL P2
DECLARE @ P3 nvarchar (512 )
SET @ = NULL P3

Exec dbo.pr_Role_OpObjectRead
@ = @ ErrorNumber Output P1,
@ = @ ErrorProcedure Output P2,
@ P3 Output the ErrorMessage = @,
@ = GUID N'DB489F8C-3C11-46CA-8313-353B41617E64 ',
@ = opUserID default,
@rddt = '' 2006-03-12 00: 44 is: 36: 127 ''

SELECT @ P1, @ P2, @ P3
-------------------- -
this is my copy of SQL Server Profiler inside.
@rddt out of the question
is correct: @ rddt = '2006-03-12 00: 44: 36: 127'
But here it is @rddt = '' 2006-03-12 00: 44 : 36: 127 ''




[System.Data.SqlClient.SqlParameter]            {@rddr }
the DbType the DateTime
...
the ParameterName "@rddt"
the Value} {2006-3-12 0:44:36


-------------- -------------------------------------------------- -------------------

prawn help me find my brother commissioning of the Xiangtiao Lou.

Tools: MS Sql Server 2005 and VS 2005 and C # 2.0

Reproduced in: https: //www.cnblogs.com/dagecc/archive/2006/03/12/348184.html

Guess you like

Origin blog.csdn.net/weixin_34143774/article/details/93829579