I am trying to insert into a datefield in the SQL Server but i get this error Microsoft OLE DB Provider for ODBC Drivers error '80040e07' [Microsoft][SQL Native Client][SQL Server]Operand type clash: text is incompatible with date /admin/news.asp, line 96 the value of my date is 9/2/2009
Its hard to say without looking at the code, but it seems like there is a mismach between date formats. Check what date format is outputed by the code and check what date format is required by the database and make sure they are correct
Well you can always format the date into any format you prefer...for example myDate.ToString("yyyy-MM-dd") would give you something like "2009-09-28"
Try formatting the date into dd/MMM/yyyy format, (eg - 28/Sep/2009) before you insert it into the SQL Server. That way, no matter how you have your dates set up in MSSQL (Date/Month/Year or Month/Day/Year) the insert will work.
Looks like a formatting error. Have a look at cast and convert. Google it and there are plenty of resources
just use the GETDATE() internal method in sql server - as in your sql string would be "INSERT INTO TBL (NAME, DATE) VALUES ('Bob Barker', GETDATE())"