Dim i as integer
For i = 0 to 365
sqlinsert.InsertCommand="insert into cashdate (date) values (getdate()+'" & i & "')"
sqlinsert.Insert()
Next
getdate is a function in the database that returns the datetime of now
i have an error that says conversion failed when converting date or time from character string
what to do now ??
You are implicit casting the
GETDATE()to a varchar like this:You probably want to have
Instead of: