473,573 Members | 3,250 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help needed : error in "INSERT INTO"

Hello,

I've serious problem using ASP under WindowsXP sp2.
I get the following reply (sorry it's in french)
Erreur de compilation Microsoft VBScript error '800a0401'

Fin d'instruction attendue

/iisHelp/common/500-100.asp, line 11

Dim objASPError, blnErrorWritten , strServername, strServerIP, strRemoteIP
Dim strMethod, lngPos, datNow, strQueryString, strURL
--------------------------------------------------------------------------^Microsoft
JET Database Engine error '80040e14'

Erreur de syntaxe dans l'instruction INSERT INTO.

/cytiserw/Include/commun.asp, line 49

Here are the instructions in vbscript :

'============== =============== =============== =========
Public sub OuvreConnexion( nomcomplet,strM otdePasse)
Dim Connstr
Set Conn = Server.CreateOb ject("ADODB.Con nection")
Set Comm = Server.CreateOb ject("ADODB.Com mand")
Connstr = "Provider=Micro soft.Jet.OLEDB. 4.0;" & _
"Data Source=" & nomcomplet &";" & _
"Jet OLEDB:Database Password=" & strMotdePasse
Response.Write( Connstr)
Conn.Open Connstr
Set Comm.ActiveConn ection = Conn
end sub
'============== =============== =============== =========
Public Sub FermeConnexion( )
Set Rec_Set = Nothing
Set Comm = Nothing
Conn.Close
Set Conn = Nothing
End Sub
'============== =============== =============== =========
Public Sub MAJ_BaseIP()
dim ip,str,sql
str=""
call OuvreConnexion( session("chemin ")&Utilisateurs ,MotdePasseBdd)
ip=Request.Serv erVariables("RE MOTE_ADDR")
Response.Write( ip)
sql="insert numIP into visites Values('"&ip&"' )"
conn.execute sql
call FermeConnexion
end sub
*************** *************** *************** *************** *************** *****

It worked perfectly well before sp2.

Where's the bug (if any) in my lines ?
Thanks for your help.

Lu
Jul 22 '05 #1
9 2422
Sorry

Hre's ethe good line :

sql="insert into visites (numIP) Values('"&ip&"' )"

"Luc Dal" <da*@sped.ucl.a c.be> a écrit dans le message de news:
d0**********@ai l.sri.ucl.ac.be ...
Hello,

I've serious problem using ASP under WindowsXP sp2.
I get the following reply (sorry it's in french)
Erreur de compilation Microsoft VBScript error '800a0401'

Fin d'instruction attendue

/iisHelp/common/500-100.asp, line 11

Dim objASPError, blnErrorWritten , strServername, strServerIP, strRemoteIP
Dim strMethod, lngPos, datNow, strQueryString, strURL
--------------------------------------------------------------------------^Microsoft
JET Database Engine error '80040e14'

Erreur de syntaxe dans l'instruction INSERT INTO.

/cytiserw/Include/commun.asp, line 49

Here are the instructions in vbscript :

'============== =============== =============== =========
Public sub OuvreConnexion( nomcomplet,strM otdePasse)
Dim Connstr
Set Conn = Server.CreateOb ject("ADODB.Con nection")
Set Comm = Server.CreateOb ject("ADODB.Com mand")
Connstr = "Provider=Micro soft.Jet.OLEDB. 4.0;" & _
"Data Source=" & nomcomplet &";" & _
"Jet OLEDB:Database Password=" & strMotdePasse
Response.Write( Connstr)
Conn.Open Connstr
Set Comm.ActiveConn ection = Conn
end sub
'============== =============== =============== =========
Public Sub FermeConnexion( )
Set Rec_Set = Nothing
Set Comm = Nothing
Conn.Close
Set Conn = Nothing
End Sub
'============== =============== =============== =========
Public Sub MAJ_BaseIP()
dim ip,str,sql
str=""
call OuvreConnexion( session("chemin ")&Utilisateurs ,MotdePasseBdd)
ip=Request.Serv erVariables("RE MOTE_ADDR")
Response.Write( ip)
sql="insert numIP into visites Values('"&ip&"' )"
conn.execute sql
call FermeConnexion
end sub
*************** *************** *************** *************** *************** *****

It worked perfectly well before sp2.

Where's the bug (if any) in my lines ?
Thanks for your help.

Lu


Jul 22 '05 #2
Article #2400 Why do I get 80040E14 errors?
http://aspfaq.com/show.asp?id=2400

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"Luc Dal" <da*@sped.ucl.a c.be> wrote in message news:d0******** **@ail.sri.ucl. ac.be...
Sorry

Hre's ethe good line :

sql="insert into visites (numIP) Values('"&ip&"' )"



"Luc Dal" <da*@sped.ucl.a c.be> a écrit dans le message de news:
d0**********@ai l.sri.ucl.ac.be ...
Hello,

I've serious problem using ASP under WindowsXP sp2.
I get the following reply (sorry it's in french)
Erreur de compilation Microsoft VBScript error '800a0401'

Fin d'instruction attendue

/iisHelp/common/500-100.asp, line 11

Dim objASPError, blnErrorWritten , strServername, strServerIP, strRemoteIP
Dim strMethod, lngPos, datNow, strQueryString, strURL
--------------------------------------------------------------------------^Microsoft
JET Database Engine error '80040e14'

Erreur de syntaxe dans l'instruction INSERT INTO.

/cytiserw/Include/commun.asp, line 49

Here are the instructions in vbscript :

'============== =============== =============== =========
Public sub OuvreConnexion( nomcomplet,strM otdePasse)
Dim Connstr
Set Conn = Server.CreateOb ject("ADODB.Con nection")
Set Comm = Server.CreateOb ject("ADODB.Com mand")
Connstr = "Provider=Micro soft.Jet.OLEDB. 4.0;" & _
"Data Source=" & nomcomplet &";" & _
"Jet OLEDB:Database Password=" & strMotdePasse
Response.Write( Connstr)
Conn.Open Connstr
Set Comm.ActiveConn ection = Conn
end sub
'============== =============== =============== =========
Public Sub FermeConnexion( )
Set Rec_Set = Nothing
Set Comm = Nothing
Conn.Close
Set Conn = Nothing
End Sub
'============== =============== =============== =========
Public Sub MAJ_BaseIP()
dim ip,str,sql
str=""
call OuvreConnexion( session("chemin ")&Utilisateurs ,MotdePasseBdd)
ip=Request.Serv erVariables("RE MOTE_ADDR")
Response.Write( ip)
sql="insert numIP into visites Values('"&ip&"' )"
conn.execute sql
call FermeConnexion
end sub
*************** *************** *************** *************** *************** *****

It worked perfectly well before sp2.

Where's the bug (if any) in my lines ?
Thanks for your help.

Lu





Jul 22 '05 #3
Thanks,
But now i've the following error: (sorry, it' in french)
Erreur de compilation Microsoft VBScript error '800a0401'

Fin d'instruction attendue

/iisHelp/common/500-100.asp, line 16

If Response.Buffer Then Response.Clear Response.Status = "500 Erreur interne
du serveur" Response.Conten tType = "text/html" Response.Expire s = 0 End If
-----------------------------------------------------------------------------------------^Microsoft
JET Database Engine error '80004005'

L'opération doit utiliser une requête qui peut être mise à jour.

/cytiserw/Include/commun.asp, line 49

*************** *************** *************** *************** ***********

"Steven Burn" <so*******@in-time.invalid> a écrit dans le message de news:
OL************* *@TK2MSFTNGP12. phx.gbl...
Article #2400 Why do I get 80040E14 errors?
http://aspfaq.com/show.asp?id=2400

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"Luc Dal" <da*@sped.ucl.a c.be> wrote in message
news:d0******** **@ail.sri.ucl. ac.be...
Sorry

Hre's ethe good line :

sql="insert into visites (numIP) Values('"&ip&"' )"

"Luc Dal" <da*@sped.ucl.a c.be> a écrit dans le message de news:
d0**********@ai l.sri.ucl.ac.be ...
Hello,

I've serious problem using ASP under WindowsXP sp2.
I get the following reply (sorry it's in french)
Erreur de compilation Microsoft VBScript error '800a0401'

Fin d'instruction attendue

/iisHelp/common/500-100.asp, line 11

Dim objASPError, blnErrorWritten , strServername, strServerIP,
strRemoteIP
Dim strMethod, lngPos, datNow, strQueryString, strURL
--------------------------------------------------------------------------^Microsoft
JET Database Engine error '80040e14'

Erreur de syntaxe dans l'instruction INSERT INTO.

/cytiserw/Include/commun.asp, line 49

Here are the instructions in vbscript :

'============== =============== =============== =========
Public sub OuvreConnexion( nomcomplet,strM otdePasse)
Dim Connstr
Set Conn = Server.CreateOb ject("ADODB.Con nection")
Set Comm = Server.CreateOb ject("ADODB.Com mand")
Connstr = "Provider=Micro soft.Jet.OLEDB. 4.0;" & _
"Data Source=" & nomcomplet &";" & _
"Jet OLEDB:Database Password=" & strMotdePasse
Response.Write( Connstr)
Conn.Open Connstr
Set Comm.ActiveConn ection = Conn
end sub
'============== =============== =============== =========
Public Sub FermeConnexion( )
Set Rec_Set = Nothing
Set Comm = Nothing
Conn.Close
Set Conn = Nothing
End Sub
'============== =============== =============== =========
Public Sub MAJ_BaseIP()
dim ip,str,sql
str=""
call OuvreConnexion( session("chemin ")&Utilisateurs ,MotdePasseBdd)
ip=Request.Serv erVariables("RE MOTE_ADDR")
Response.Write( ip)
sql="insert numIP into visites Values('"&ip&"' )"
conn.execute sql
call FermeConnexion
end sub
*************** *************** *************** *************** *************** *****

It worked perfectly well before sp2.

Where's the bug (if any) in my lines ?
Thanks for your help.

Lu


Jul 22 '05 #4
For the first one;

http://aspfaq.com/show.asp?id=2363
http://aspfaq.com/show.asp?id=2414

........ and for the second (a very common but mis-interpreted error)

http://aspfaq.com/search.asp?q=80004...Days=0&order=1

Apologies for not being more helpful (my French is somewhat lacking... hopefully if the above does not help, one of the experts will come along and help (Bob, Aaron... where the heck are ya!))

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"Luc Dal" <da*@sped.ucl.a c.be> wrote in message news:d0******** **@ail.sri.ucl. ac.be...
Thanks,
But now i've the following error: (sorry, it' in french)


Erreur de compilation Microsoft VBScript error '800a0401'

Fin d'instruction attendue

/iisHelp/common/500-100.asp, line 16

If Response.Buffer Then Response.Clear Response.Status = "500 Erreur interne
du serveur" Response.Conten tType = "text/html" Response.Expire s = 0 End If
-----------------------------------------------------------------------------------------^Microsoft
JET Database Engine error '80004005'

L'opération doit utiliser une requête qui peut être mise à jour.

/cytiserw/Include/commun.asp, line 49



*************** *************** *************** *************** ***********

"Steven Burn" <so*******@in-time.invalid> a écrit dans le message de news:
OL************* *@TK2MSFTNGP12. phx.gbl...
Article #2400 Why do I get 80040E14 errors?
http://aspfaq.com/show.asp?id=2400

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"Luc Dal" <da*@sped.ucl.a c.be> wrote in message
news:d0******** **@ail.sri.ucl. ac.be...
Sorry

Hre's ethe good line :

sql="insert into visites (numIP) Values('"&ip&"' )"

"Luc Dal" <da*@sped.ucl.a c.be> a écrit dans le message de news:
d0**********@ai l.sri.ucl.ac.be ...
Hello,

I've serious problem using ASP under WindowsXP sp2.
I get the following reply (sorry it's in french)
Erreur de compilation Microsoft VBScript error '800a0401'

Fin d'instruction attendue

/iisHelp/common/500-100.asp, line 11

Dim objASPError, blnErrorWritten , strServername, strServerIP,
strRemoteIP
Dim strMethod, lngPos, datNow, strQueryString, strURL
--------------------------------------------------------------------------^Microsoft
JET Database Engine error '80040e14'

Erreur de syntaxe dans l'instruction INSERT INTO.

/cytiserw/Include/commun.asp, line 49

Here are the instructions in vbscript :

'============== =============== =============== =========
Public sub OuvreConnexion( nomcomplet,strM otdePasse)
Dim Connstr
Set Conn = Server.CreateOb ject("ADODB.Con nection")
Set Comm = Server.CreateOb ject("ADODB.Com mand")
Connstr = "Provider=Micro soft.Jet.OLEDB. 4.0;" & _
"Data Source=" & nomcomplet &";" & _
"Jet OLEDB:Database Password=" & strMotdePasse
Response.Write( Connstr)
Conn.Open Connstr
Set Comm.ActiveConn ection = Conn
end sub
'============== =============== =============== =========
Public Sub FermeConnexion( )
Set Rec_Set = Nothing
Set Comm = Nothing
Conn.Close
Set Conn = Nothing
End Sub
'============== =============== =============== =========
Public Sub MAJ_BaseIP()
dim ip,str,sql
str=""
call OuvreConnexion( session("chemin ")&Utilisateurs ,MotdePasseBdd)
ip=Request.Serv erVariables("RE MOTE_ADDR")
Response.Write( ip)
sql="insert numIP into visites Values('"&ip&"' )"
conn.execute sql
call FermeConnexion
end sub
*************** *************** *************** *************** *************** *****

It worked perfectly well before sp2.

Where's the bug (if any) in my lines ?
Thanks for your help.

Lu





Jul 22 '05 #5
sql="insert into visites (numIP) Values('"&ip&"' )"
response.write sql
response.end

do you get what you expected?

--
--Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com

"Luc Dal" <da*@sped.ucl.a c.be> wrote in message
news:d0******** **@ail.sri.ucl. ac.be...
Sorry

Hre's ethe good line :

sql="insert into visites (numIP) Values('"&ip&"' )"

"Luc Dal" <da*@sped.ucl.a c.be> a écrit dans le message de news:
d0**********@ai l.sri.ucl.ac.be ...
Hello,

I've serious problem using ASP under WindowsXP sp2.
I get the following reply (sorry it's in french)
Erreur de compilation Microsoft VBScript error '800a0401'

Fin d'instruction attendue

/iisHelp/common/500-100.asp, line 11

Dim objASPError, blnErrorWritten , strServername, strServerIP, strRemoteIP
Dim strMethod, lngPos, datNow, strQueryString, strURL
--------------------------------------------------------------------------^Microsoft
JET Database Engine error '80040e14'

Erreur de syntaxe dans l'instruction INSERT INTO.

/cytiserw/Include/commun.asp, line 49

Here are the instructions in vbscript :

'============== =============== =============== =========
Public sub OuvreConnexion( nomcomplet,strM otdePasse)
Dim Connstr
Set Conn = Server.CreateOb ject("ADODB.Con nection")
Set Comm = Server.CreateOb ject("ADODB.Com mand")
Connstr = "Provider=Micro soft.Jet.OLEDB. 4.0;" & _
"Data Source=" & nomcomplet &";" & _
"Jet OLEDB:Database Password=" & strMotdePasse
Response.Write( Connstr)
Conn.Open Connstr
Set Comm.ActiveConn ection = Conn
end sub
'============== =============== =============== =========
Public Sub FermeConnexion( )
Set Rec_Set = Nothing
Set Comm = Nothing
Conn.Close
Set Conn = Nothing
End Sub
'============== =============== =============== =========
Public Sub MAJ_BaseIP()
dim ip,str,sql
str=""
call OuvreConnexion( session("chemin ")&Utilisateurs ,MotdePasseBdd)
ip=Request.Serv erVariables("RE MOTE_ADDR")
Response.Write( ip)
sql="insert numIP into visites Values('"&ip&"' )"
conn.execute sql
call FermeConnexion
end sub
*************** *************** *************** *************** *************** *****

It worked perfectly well before sp2.

Where's the bug (if any) in my lines ?
Thanks for your help.

Lu


Jul 22 '05 #6
Yes but what I want it to execute the lines :

sql="insert into visites([numIP]) Values('"&cstr( ip)&"')"
conn.execute(sq l)

And i get always the same reply (in french, sorry)
L'opération doit utiliser une requête qui peut être mise à jour.

I don't understand why (it worked well before the sp2)

Luc
"Mark Schupp" <no******@email .net> a écrit dans le message de news:
ul************* *@TK2MSFTNGP12. phx.gbl...
sql="insert into visites (numIP) Values('"&ip&"' )"
response.write sql
response.end

do you get what you expected?

--
--Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com

"Luc Dal" <da*@sped.ucl.a c.be> wrote in message
news:d0******** **@ail.sri.ucl. ac.be...
Sorry

Hre's ethe good line :

sql="insert into visites (numIP) Values('"&ip&"' )"

"Luc Dal" <da*@sped.ucl.a c.be> a écrit dans le message de news:
d0**********@ai l.sri.ucl.ac.be ...
Hello,

I've serious problem using ASP under WindowsXP sp2.
I get the following reply (sorry it's in french)
Erreur de compilation Microsoft VBScript error '800a0401'

Fin d'instruction attendue

/iisHelp/common/500-100.asp, line 11

Dim objASPError, blnErrorWritten , strServername, strServerIP,
strRemoteIP
Dim strMethod, lngPos, datNow, strQueryString, strURL
--------------------------------------------------------------------------^Microsoft
JET Database Engine error '80040e14'

Erreur de syntaxe dans l'instruction INSERT INTO.

/cytiserw/Include/commun.asp, line 49

Here are the instructions in vbscript :

'============== =============== =============== =========
Public sub OuvreConnexion( nomcomplet,strM otdePasse)
Dim Connstr
Set Conn = Server.CreateOb ject("ADODB.Con nection")
Set Comm = Server.CreateOb ject("ADODB.Com mand")
Connstr = "Provider=Micro soft.Jet.OLEDB. 4.0;" & _
"Data Source=" & nomcomplet &";" & _
"Jet OLEDB:Database Password=" & strMotdePasse
Response.Write( Connstr)
Conn.Open Connstr
Set Comm.ActiveConn ection = Conn
end sub
'============== =============== =============== =========
Public Sub FermeConnexion( )
Set Rec_Set = Nothing
Set Comm = Nothing
Conn.Close
Set Conn = Nothing
End Sub
'============== =============== =============== =========
Public Sub MAJ_BaseIP()
dim ip,str,sql
str=""
call OuvreConnexion( session("chemin ")&Utilisateurs ,MotdePasseBdd)
ip=Request.Serv erVariables("RE MOTE_ADDR")
Response.Write( ip)
sql="insert numIP into visites Values('"&ip&"' )"
conn.execute sql
call FermeConnexion
end sub
*************** *************** *************** *************** *************** *****

It worked perfectly well before sp2.

Where's the bug (if any) in my lines ?
Thanks for your help.

Lu



Jul 22 '05 #7
Thanks for your assistance, but unfortunaltely, it does'nt help me ...:)

Luc
"Steven Burn" <so*******@in-time.invalid> a écrit dans le message de news:
eN************* *@TK2MSFTNGP15. phx.gbl...
For the first one;

http://aspfaq.com/show.asp?id=2363
http://aspfaq.com/show.asp?id=2414

........ and for the second (a very common but mis-interpreted error)

http://aspfaq.com/search.asp?q=80004...Days=0&order=1

Apologies for not being more helpful (my French is somewhat lacking...
hopefully if the above does not help, one of the experts will come along and
help (Bob, Aaron... where the heck are ya!))

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"Luc Dal" <da*@sped.ucl.a c.be> wrote in message
news:d0******** **@ail.sri.ucl. ac.be...
Thanks,
But now i've the following error: (sorry, it' in french)
Erreur de compilation Microsoft VBScript error '800a0401'

Fin d'instruction attendue

/iisHelp/common/500-100.asp, line 16

If Response.Buffer Then Response.Clear Response.Status = "500 Erreur
interne
du serveur" Response.Conten tType = "text/html" Response.Expire s = 0 End If
-----------------------------------------------------------------------------------------^Microsoft
JET Database Engine error '80004005'

L'opération doit utiliser une requête qui peut être mise à jour.

/cytiserw/Include/commun.asp, line 49

*************** *************** *************** *************** ***********

"Steven Burn" <so*******@in-time.invalid> a écrit dans le message de news:
OL************* *@TK2MSFTNGP12. phx.gbl...
Article #2400 Why do I get 80040E14 errors?
http://aspfaq.com/show.asp?id=2400

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"Luc Dal" <da*@sped.ucl.a c.be> wrote in message
news:d0******** **@ail.sri.ucl. ac.be...
Sorry

Hre's ethe good line :

sql="insert into visites (numIP) Values('"&ip&"' )"

"Luc Dal" <da*@sped.ucl.a c.be> a écrit dans le message de news:
d0**********@ai l.sri.ucl.ac.be ...
Hello,

I've serious problem using ASP under WindowsXP sp2.
I get the following reply (sorry it's in french)
Erreur de compilation Microsoft VBScript error '800a0401'

Fin d'instruction attendue

/iisHelp/common/500-100.asp, line 11

Dim objASPError, blnErrorWritten , strServername, strServerIP,
strRemoteIP
Dim strMethod, lngPos, datNow, strQueryString, strURL
--------------------------------------------------------------------------^Microsoft
JET Database Engine error '80040e14'

Erreur de syntaxe dans l'instruction INSERT INTO.

/cytiserw/Include/commun.asp, line 49

Here are the instructions in vbscript :

'============== =============== =============== =========
Public sub OuvreConnexion( nomcomplet,strM otdePasse)
Dim Connstr
Set Conn = Server.CreateOb ject("ADODB.Con nection")
Set Comm = Server.CreateOb ject("ADODB.Com mand")
Connstr = "Provider=Micro soft.Jet.OLEDB. 4.0;" & _
"Data Source=" & nomcomplet &";" & _
"Jet OLEDB:Database Password=" & strMotdePasse
Response.Write( Connstr)
Conn.Open Connstr
Set Comm.ActiveConn ection = Conn
end sub
'============== =============== =============== =========
Public Sub FermeConnexion( )
Set Rec_Set = Nothing
Set Comm = Nothing
Conn.Close
Set Conn = Nothing
End Sub
'============== =============== =============== =========
Public Sub MAJ_BaseIP()
dim ip,str,sql
str=""
call OuvreConnexion( session("chemin ")&Utilisateurs ,MotdePasseBdd)
ip=Request.Serv erVariables("RE MOTE_ADDR")
Response.Write( ip)
sql="insert numIP into visites Values('"&ip&"' )"
conn.execute sql
call FermeConnexion
end sub
*************** *************** *************** *************** *************** *****

It worked perfectly well before sp2.

Where's the bug (if any) in my lines ?
Thanks for your help.

Lu



Jul 22 '05 #8
http://www.aspfaq.com/show.asp?id=2062

You definitely have a permissions problem. You IUSR account must have Change
(Modify) permissions on the folder containing your database.

Luc Dal wrote:
Yes but what I want it to execute the lines :

sql="insert into visites([numIP]) Values('"&cstr( ip)&"')"
conn.execute(sq l)

And i get always the same reply (in french, sorry)
L'opération doit utiliser une requête qui peut être mise à jour.

I don't understand why (it worked well before the sp2)

Luc
"Mark Schupp" <no******@email .net> a écrit dans le message de news:
ul************* *@TK2MSFTNGP12. phx.gbl...
sql="insert into visites (numIP) Values('"&ip&"' )"
response.write sql
response.end

do you get what you expected?

--
--Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com

"Luc Dal" <da*@sped.ucl.a c.be> wrote in message
news:d0******** **@ail.sri.ucl. ac.be...
Sorry

Hre's ethe good line :

sql="insert into visites (numIP) Values('"&ip&"' )"

"Luc Dal" <da*@sped.ucl.a c.be> a écrit dans le message de news:
d0**********@ai l.sri.ucl.ac.be ...
Hello,

I've serious problem using ASP under WindowsXP sp2.
I get the following reply (sorry it's in french)
Erreur de compilation Microsoft VBScript error '800a0401'

Fin d'instruction attendue

/iisHelp/common/500-100.asp, line 11

Dim objASPError, blnErrorWritten , strServername, strServerIP,
strRemoteIP
Dim strMethod, lngPos, datNow, strQueryString, strURL
----------------------------------------------------------------------- ---^Microsoft JET Database Engine error '80040e14'

Erreur de syntaxe dans l'instruction INSERT INTO.

/cytiserw/Include/commun.asp, line 49

Here are the instructions in vbscript :

'============== =============== =============== =========
Public sub OuvreConnexion( nomcomplet,strM otdePasse)
Dim Connstr
Set Conn = Server.CreateOb ject("ADODB.Con nection")
Set Comm = Server.CreateOb ject("ADODB.Com mand")
Connstr = "Provider=Micro soft.Jet.OLEDB. 4.0;" & _
"Data Source=" & nomcomplet &";" & _
"Jet OLEDB:Database Password=" & strMotdePasse
Response.Write( Connstr)
Conn.Open Connstr
Set Comm.ActiveConn ection = Conn
end sub
'============== =============== =============== =========
Public Sub FermeConnexion( )
Set Rec_Set = Nothing
Set Comm = Nothing
Conn.Close
Set Conn = Nothing
End Sub
'============== =============== =============== =========
Public Sub MAJ_BaseIP()
dim ip,str,sql
str=""
call OuvreConnexion( session("chemin ")&Utilisateurs ,MotdePasseBdd)
ip=Request.Serv erVariables("RE MOTE_ADDR")
Response.Write( ip)
sql="insert numIP into visites Values('"&ip&"' )"
conn.execute sql
call FermeConnexion
end sub
*************** *************** *************** *************** *************** *
****
It worked perfectly well before sp2.

Where's the bug (if any) in my lines ?
Thanks for your help.

Lu


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 22 '05 #9
Thanks a lot !
I could solve my problem using the link you gave me !!!!

Luc
"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> a écrit dans le message de
news: OI************* ***@TK2MSFTNGP1 2.phx.gbl...
http://www.aspfaq.com/show.asp?id=2062

You definitely have a permissions problem. You IUSR account must have
Change
(Modify) permissions on the folder containing your database.

Luc Dal wrote:
Yes but what I want it to execute the lines :

sql="insert into visites([numIP]) Values('"&cstr( ip)&"')"
conn.execute(sq l)

And i get always the same reply (in french, sorry)
L'opération doit utiliser une requête qui peut être mise à jour.

I don't understand why (it worked well before the sp2)

Luc
"Mark Schupp" <no******@email .net> a écrit dans le message de news:
ul************* *@TK2MSFTNGP12. phx.gbl...
sql="insert into visites (numIP) Values('"&ip&"' )"
response.write sql
response.end

do you get what you expected?

--
--Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com

"Luc Dal" <da*@sped.ucl.a c.be> wrote in message
news:d0******** **@ail.sri.ucl. ac.be...
Sorry

Hre's ethe good line :

sql="insert into visites (numIP) Values('"&ip&"' )"

"Luc Dal" <da*@sped.ucl.a c.be> a écrit dans le message de news:
d0**********@ai l.sri.ucl.ac.be ...
> Hello,
>
> I've serious problem using ASP under WindowsXP sp2.
> I get the following reply (sorry it's in french)
> Erreur de compilation Microsoft VBScript error '800a0401'
>
> Fin d'instruction attendue
>
> /iisHelp/common/500-100.asp, line 11
>
> Dim objASPError, blnErrorWritten , strServername, strServerIP,
> strRemoteIP
> Dim strMethod, lngPos, datNow, strQueryString, strURL
> ----------------------------------------------------------------------- ---^Microsoft> JET Database Engine error '80040e14'
>
> Erreur de syntaxe dans l'instruction INSERT INTO.
>
> /cytiserw/Include/commun.asp, line 49
>
> Here are the instructions in vbscript :
>
> '============== =============== =============== =========
> Public sub OuvreConnexion( nomcomplet,strM otdePasse)
> Dim Connstr
> Set Conn = Server.CreateOb ject("ADODB.Con nection")
> Set Comm = Server.CreateOb ject("ADODB.Com mand")
> Connstr = "Provider=Micro soft.Jet.OLEDB. 4.0;" & _
> "Data Source=" & nomcomplet &";" & _
> "Jet OLEDB:Database Password=" & strMotdePasse
> Response.Write( Connstr)
> Conn.Open Connstr
> Set Comm.ActiveConn ection = Conn
> end sub
> '============== =============== =============== =========
> Public Sub FermeConnexion( )
> Set Rec_Set = Nothing
> Set Comm = Nothing
> Conn.Close
> Set Conn = Nothing
> End Sub
> '============== =============== =============== =========
> Public Sub MAJ_BaseIP()
> dim ip,str,sql
> str=""
> call OuvreConnexion( session("chemin ")&Utilisateurs ,MotdePasseBdd)
> ip=Request.Serv erVariables("RE MOTE_ADDR")
> Response.Write( ip)
> sql="insert numIP into visites Values('"&ip&"' )"
> conn.execute sql
> call FermeConnexion
> end sub
> *************** *************** *************** *************** *************** *
****>
> It worked perfectly well before sp2.
>
> Where's the bug (if any) in my lines ?
> Thanks for your help.
>
> Lu


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Jul 22 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
5620
by: newbie_mw | last post by:
Hi, I need urgent help with a novice problem. I would appreciate any advice, suggestions... Thanks a lot in advance! Here it is: I created a sign-up sheet (reg.html) where people fill in their first name, last name, email, etc. The data are then sent to a PHP script (reg.php). The data are then inserted into a table (reg) in MS SQL server....
0
1894
by: newbie_mw | last post by:
Hi Ian, Thanks for help! The columns and variables are exactly matched so it shouldn't be the problem. Actually the original html and php files are pretty long. But I guess a more detailed script should help you diagnose the problem. The error message to the below script is: --------------------------------- call someoneDB Error:...
1
4529
by: newbie_mw | last post by:
Seems my post was buried in more cries for help :-) I will try again. It's probably a very novice question so please take a look! Thanks! ----------------------------------------------------------------- I created a sign-up sheet (reg.html) where people fill in their first name, last name, email, etc. The data are then sent to a PHP script...
4
2061
by: hao | last post by:
Hi, all When I use ASP to insert an record to a database, I got some errors and can not insert any value with Chinese Char. The only way I can do that is use "rst1.Addnew...rst1.update". Anyone know why? thx
20
18323
by: Mark Harrison | last post by:
So I have some data that I want to put into a table. If the row already exists (as defined by the primary key), I would like to update the row. Otherwise, I would like to insert the row. I've been doing something like delete from foo where name = 'xx'; insert into foo values('xx',1,2,...);
13
3173
by: shankindc | last post by:
Hi, I have a data entry form which opens default values each time the form is open. Requirement is that users can edit existing data in the form. When the form is closed, it shouldnt update the existing record but rather insert a new record. On the Form-Beforeupdate function, I first check if the record already exists (Primary keys exist)....
5
4579
by: djsdaddy | last post by:
Good Day All, I have some EEO data in an old dBase4 database that I have converted to an Access table. Since dBase was not a relational database, I didn't create any key fields. I linked all of the tables together on Employees' SSN; therefore, in order to use this data with the current Access database, I need to create a relationship between the...
6
5990
by: ewpatton | last post by:
Good day, I've been trying to work with SQL and an Access database in order to handle custom user profiles. I haven't had any trouble reading from my database, but inserting new entries into it has been troublesome to say the least. My ASP.NET script is supposed to execute an INSERT INTO statement in order to add a user to the...
3
1690
by: Twanne | last post by:
Hi, I've got a table called Aerosol and a table called LinkTabel. Now I do an update to a table from an excell sheet, this table is called ExportAerosol. So far so good, the import works perfect. Now when I want to transfer the data from the ExportAerosol table to the Aerosol table I have to make a unique key. I do this by adding a...
0
7779
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7693
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8202
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7781
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8064
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6418
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5291
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3732
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2208
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.