开发者

send sql server Timestamp from C#

Does someone knows how can I send a Timestamp value from C# to my Sql stored procedure which expect to get a timestamp value?

t开发者_开发技巧he sp looks like this

create sp1(@TS Timestamp)

--do do something...

go


MySqlCommand command = new MySqlCommand(); command.CommandText =@"sp1";
command.CommandType = CommandType.StoredProcedure;

command.Parameters.Add("@TS", MySqlType.TimeStamp, 15).Value = DateTime.Now;

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜