I am currently using SqlDataAdapter to query a SQL database:
SqlCommand myCommand = new SqlCommand();
myCommand.Connection = myConnection;
string cmd = @"select * from dbo.Table where errordate > '2015-05-29'";
myConnection.Open();
SqlDataAdapter da = new SqlDataAdapter(cmd, sqlConn);
da.Fill(dt);
The query is working fine but the only problem is that The date column does not include milliseconds. When I perform the same query with MS SQL server management studio, the milliseconds are there. Why wouldn't the milliseconds be present in C#?
Thanks