G
Guest
I am developing an ASP application. Development using the followings:
Mashine Windows XP SP2
Database SQL Server 2000 Developer Edition
Connection using DSN - ODBC
Problem
One of my table is used to keep transaction including the date of
transaction - data type datetime. When I tried to quey the table using a
date as a condition I got this message:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E07)
[Microsoft][ODBC SQL Server Driver][SQL Server]The conversion of a char data
type to a datetime data type resulted in an out-of-range datetime value.
/zakatnet/laporanHarianRingkasan.asp, line 12
This is my asp statement:
........................
<%
if request.form("tarikh")="" then
response.Redirect("laporanharianGetdate.asp")
tarikh=CDate(request.form("tarikh"))
sqlstmt = "select * from Penyata where TarikhBayaran= '" & (tarikh) & "'"
set byr = conn.execute(sqlstmt)
%>
...............
Note: When I used anothr machine - using Windows 2000 Pro and sama db
Server, it work.s
Need help on this.
Mashine Windows XP SP2
Database SQL Server 2000 Developer Edition
Connection using DSN - ODBC
Problem
One of my table is used to keep transaction including the date of
transaction - data type datetime. When I tried to quey the table using a
date as a condition I got this message:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E07)
[Microsoft][ODBC SQL Server Driver][SQL Server]The conversion of a char data
type to a datetime data type resulted in an out-of-range datetime value.
/zakatnet/laporanHarianRingkasan.asp, line 12
This is my asp statement:
........................
<%
if request.form("tarikh")="" then
response.Redirect("laporanharianGetdate.asp")
tarikh=CDate(request.form("tarikh"))
sqlstmt = "select * from Penyata where TarikhBayaran= '" & (tarikh) & "'"
set byr = conn.execute(sqlstmt)
%>
...............
Note: When I used anothr machine - using Windows 2000 Pro and sama db
Server, it work.s
Need help on this.