I've query when I run it in the sql server it gives me the correct result ,but I put in my code the result changed?
This is my query
Code:
String data = "SELECT [dat] ,[product_id] FROM [market].[dbo].[product] where dat>='2012-11-1' and dat='2012-11-1'
Code:
SqlConnection con=new SqlConnection (@"Data Source=.\Ahmed;Initial Catalog=Market;Integrated Security=True");