DateTime issue in SQL Server

后端 未结 5 881
我在风中等你
我在风中等你 2021-01-18 22:08

I\'m trying to do an INSERT into an already set DB in MS SQL Server, the DB server is in a shared hosting (godaddy).

And what i\'m trying to achieve is to store an a

5条回答
  •  無奈伤痛
    2021-01-18 22:25

    try DateTime.Now and if its case of textfeild DateTime.Now.ToString(); hope this work.

    It works fine in almost same case i have.

    1/1/0001 12:00:00 AM etc are defaults of sqlServer and in above comment if after deleting the method its doing nothing means that its not updating the reference or something like this.

    Make sure what you want to delete is deleted and if its not then enforce it by changing the properties and refresh + check

提交回复
热议问题