Hello people!
I have a problem with a database... I want to clear all data in a table... I wrote this ASP but the records don't clear... The database is in a network machine... I don't think this would be a problem. The Table has two records, a numeric id and a Memo SQLTxt . The most Larger Memo type, has 290 characters aprox... The table's name is StrIns.
So, If someone can see a problem or has a better idea, please help me. Ah! and It doesn't appear any error..
Thanks.
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<%
Dim Conn2
Dim rs_delete
Dim Sqltxt
Set Conn2 = Server.CreateObject("ADODB.Connection"
Conn2.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=//rcnet3/rcnet/monitoreo/monitor.mdb" & ";Persist Security Info=True"
set rs_delete = server.CreateObject("ADODB.Recordset"
Sqltxt = "Delete * from StrIns"
Conn2.Execute (Sqltxt)
%>
</BODY>
</HTML>
Juanjo
Follow the dark side, so you can reach the light.
I have a problem with a database... I want to clear all data in a table... I wrote this ASP but the records don't clear... The database is in a network machine... I don't think this would be a problem. The Table has two records, a numeric id and a Memo SQLTxt . The most Larger Memo type, has 290 characters aprox... The table's name is StrIns.
So, If someone can see a problem or has a better idea, please help me. Ah! and It doesn't appear any error..
Thanks.
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<%
Dim Conn2
Dim rs_delete
Dim Sqltxt
Set Conn2 = Server.CreateObject("ADODB.Connection"
Conn2.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=//rcnet3/rcnet/monitoreo/monitor.mdb" & ";Persist Security Info=True"
set rs_delete = server.CreateObject("ADODB.Recordset"
Sqltxt = "Delete * from StrIns"
Conn2.Execute (Sqltxt)
%>
</BODY>
</HTML>
Juanjo
Follow the dark side, so you can reach the light.