오랜만이군요.바니님.
SQL을 한번 살펴보십시요.
null값이 들어갈수 없게 해논것 같군요..
라인 35번째에 있는 변수중 하나입니다...
보기엔 폰1,2,3중하나같은데요...
한번 살펴보세요.
그리고 님이 실수하는건 거의 다 SQL문에서 그렇군요.
책을 사서 보세요.
그럼 내공이 증진될겁니다.
그럼 바이...
: Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
:
: [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot insert the value NULL into column 'idnumber', table 'bbs.dbo.userinfo'; column does not allow nulls. INSERT fails.
:
: /6/login/userinfo.asp, line 35
:
: 이것이 에러 메시지입니다.
:
: 그리고 소스는
: <%@ Language=VBScript %><% Response.Buffer=true %>
:
: <%
: id=Request.Form("id")
: password=Request.Form("password")
: set dbconn=server.CreateObject("adodb.connection")
: dbconn.Open "DSN=iam1k4;uid=sarang0107;pwd=asp2000"
:
: set rcdst = Server.CreateObject("ADODB.Recordset")
: idcf = "Select * From userinfo Where userID = '"& id &"'"
: rcdst.Open idcf,dbconn,1
:
: set rcdst_num1 = Server.CreateObject ("ADODB.RecordSet")
: num1 = "Select * From userinfo Where firstNumber = '" & firstNumber & "'"
: rcdst_num1.Open num1,dbconn,1
:
: set rcdst_num2 = Server.CreateObject ("ADODB.RecordSet")
: num2 = "Select * From userinfo Where secondNumber = '" & secondNumber & "'"
: rcdst_num2.Open num2,dbconn,1
:
: if(rcdst.eof or rcdst.bof) then
: if((rcdst_num1.EOF or rcdst_num1.BOF) and (rcdst_num2.EOF or rcdst_num2.BOF)) then
:
: sql = "insert into userinfo"
: sql = sql & " (userID,password,name,"
: sql = sql & " firstNumber,secondNumber,sex,firstPost,secondPost,address,"
: sql = sql & " phone1,phone2,phone3,handphone1,handphone2,handphone3,"
: sql = sql & " email,job,hobby,profile) values('"
: sql = sql & id & "','" & password & "','"
: sql = sql & name & "','" & firstNumber & "','" & secondNumber & "','"
: sql = sql & sex & "','" & post1 & "','" & post2 & "','" & address & "','"
: sql = sql & phone1 & "','" & phone2 & "','" & phone3 & "','"
: sql = sql & handPhone1 & "','" & handPhone2 & "','" & handPhone3 & "','"
: sql = sql & email & "','" & job & "','" & hobby & "','" & profile & "')"
: dbconn.execute(sql)
: Response.Redirect("result.asp?id="&Request.Form("id")&"")
: else
: %>
:
: <%
: end if
: else
: %>
:
: <%
: end if
: set rcdst=nothing
: %>
:
:
:
: 죄송합니다 ... 제가 아직 잘 몰라서 그래요... 양해 부탁드립니다.