Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 sql server 7 dates

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-05-28 : 09:38:33
david writes "help, either of the following to won't work:

Number One
dim casted_date
casted_date=cDate(request.form("frm_startdate"))
Set conn_volunteer=server.createobject("adodb.connection")
conn_volunteer.open "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=volunteerwaysql"

sqlstring="SELECT convert(char(10), startdate, 3), * FROM updates WHERE startdate=" & casted_date & " AND companyid='" & session("company_carryforward") &"';"


Number Two
sqlstring="SELECT * FROM updates WHERE convert(char(10), startdate, 101)=" & casted_date & " AND companyid='" & session("company_carryforward") &"';"

Why?"
   

- Advertisement -