|
|
|
|
¹ÙºÎ / 2000-11-24 / ¿ÀÀü 10:44:42 / 210.111.23.100
Á¶È¸¼ö : 127
|
[Áú¹®] 俵´Ô help...me
|
> Microsoft OLE DB Provider for ODBC Drivers error '80040e07'
>
> [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.
>
> /bb/cc/input_check.asp, line 14
>
>
> ÀÌ·±¿¡·¯°¡ ¼Ò½º´Â ÀÌ°ÍÀÔ´Ï´Ù.
>
>
> <%
>
> title = Request("title")
> poll1 = Request("poll1")
> poll2 = Request("poll2")
> poll3 = Request("poll3")
> poll4 = Request("poll4")
>
> sql = "INSERT INTO POLLRESULT (title, poll1, poll2, poll3, poll4, result1, result2, result3, result4, polldate) VALUES"
> sql = sql & "('" & title & "','" & poll1 & "','" & poll2 & "','" & poll3 & "','" & poll4 & "'," & 1 & "," & 0 & "," & 0 & "," & 0 & ",'" & date() & "')"
>
>
> dbCon.Execute sql
> Response.Redirect("poll.asp")
>
> %>
>
>
-----------------------------------------------------------
polldate¶ó´Â Çʵ尡 ¾î¶»°Ô µÇ¾îÀÖ³ª¿ä??
À§¿¡·¯(out-of-range) ´Â µ¥ÀÌÅÍ Çü½ÄÀÌ ¸ÂÁö ¾Ê¾Æ¼ ³ª¿À´Â ¿¡·¯ÀÔ´Ï´Ù..(¹üÀ§¸¦ ¹þ¾î³µ´Ù´Â...)
polldate¶ó´Â Çʵ带 smalldatetimeÇü½ÄÀ» Áຸ¼¼¿ä..
¾Æ´Ï¸é.. date()·Î inputÇÏÁö ¸»°í.. getdate()·Î insertÇغ¸¼¼¿ä..
¾Æ´Ï¸é ³¯Â¥¸¦ now()·Î ¹Þ¾Æ¼ insertÇغ¸½Ã´ø°¡..
|
|
|
|