sql server print time with milliseconds

Posted 齐文宣

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql server print time with milliseconds相关的知识,希望对你有一定的参考价值。

print convert(varchar, getdate(), 121)

declare @callID as int
declare @errCode as int
declare @msg as nvarchar(200)

exec [sp_Test_alwayRetTrue] @callID,@errCode out,@msg out

print @msg
print convert(varchar, getdate(), 121)

 

 

output   : 

 

2017-04-07 09:12:22.707
success to create ongoingcall
2017-04-07 09:12:25.710

 






以上是关于sql server print time with milliseconds的主要内容,如果未能解决你的问题,请参考以下文章

[TroubleShooting]Neither the partner nor the witness server instance for database is availble

SQL Server ->> Revert表达式

Skype for Business Server 2015 后端数据库配置镜像见证(mirroring witness)

SQL Server time类型存储为int后如何转换

MySQLjava.sql.SQLException: The server time zone value

[SQL] mysql报错 The server time zone value...