Hi all
i use the follwing asp page to delete records from our customer database
<%@ codepage = 1250 LCID = 2055 %>
<% If Session("project6_status") <> "login" Then Response.Redirect "login.asp" %>
<%
Response.expires = 0
Response.expiresabsolute = Now() - 1
Response.addHeader "pragma", "no-cache"
Response.addHeader "cache-control", "private"
Response.CacheControl = "no-cache"
%>
<!--#include file="db.asp"-->
<!--#include file="aspmkrfn.asp"-->
<%
Response.Buffer = True
' Single delete record
key = Request.querystring("key")
If key = "" Or IsNull(key) Then
key = Request.Form("key")
End If
If key = "" Or IsNull(key) Then Response.Redirect "Kundenlist.asp"
sqlKey = sqlKey & "[ID]=" & "" & key & ""
' Get action
a = Request.Form("a")
If a = "" Or IsNull(a) Then
a = "I" ' Display with input box
End If
' Open Connection to the database
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open xDb_Conn_Str
Select Case a
Case "I": ' Display
strsql = "SELECT * FROM [Kunden] WHERE " & sqlKey
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open strsql, conn
If rs.Eof Then
Response.Clear
Response.Redirect "Kundenlist.asp"
Else
rs.MoveFirst
End If
Case "D": ' Delete
strsql = "SELECT * FROM [Kunden] WHERE " & sqlKey
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open strsql, conn, 1, 2
Do While Not rs.Eof
rs.Delete
rs.MoveNext
Loop
rs.Close
Set rs = Nothing
conn.Close
Set conn = Nothing
Response.Clear
Response.Redirect "Kundenlist.asp"
End Select
%>
<!--#include file="header.asp"-->
<p><font class="formtag">Eintrag aus Kunden DB loeschen</font></p>
<p><font class="formtag">WICHTIGER HINWEIS: aufgrund einer technischen Einschränkung ist es zur Zeit nicht möglich auch</font></p>
<p><font class="formtag">verlinkte Pointings, Subdomains oder Synonyme zu löschen</font></p>
<p><font class="formtag">Bitte mit Hilfe der ID überprüfen und ggf von Hand löschen! <br>
<br>
<a href="Kundenlist.asp">Zurueck zur Uebersicht</a></font></p>
<form action="Kundendelete.asp" method="post">
<p>
<input type="hidden" name="a" value="D">
<table border="0" cellspacing="1" cellpadding="4" bgcolor="#CCCCCC">
<tr bgcolor="#0099CC">
<td><font color="#FFFFFF"><font class="formtag">ID </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Domain </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">TLD </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Login Name </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Passwort </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Service </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Kundennummer </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">FK ID Server </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Erfasst am </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">gesperrt </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Reseller </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Reseller nummer </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Anrede best </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Firma best </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Nname best </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Vorname best </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Strasse best </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Postfach best </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">PLZ best </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Ort best </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Telefon best </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Fax best </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Land best </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Email best </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Anrede re </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Firma re </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Nname re </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Vorname re </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Strasse re </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Postfach re </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">PLZ re </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Ort re </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Telefon re </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Fax re </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Land re </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Email re </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Anrede tec </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Firma tec </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Nname tec </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Vorname tec </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Strasse tec </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Postfach tec </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">PLZ tec </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Ort tec </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Telefon tec </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Fax tec </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Land tec </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Email tec </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Kontrolliert </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">erfasst durch </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">MXrecord </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Survey </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">sperrdatum </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Pointing </font></font></td>
</tr>
<%
recCount = 0
Do While Not rs.Eof
recCount = recCount + 1
' Set row color
bgcolor = "#FFFFFF"
%>
<%
' Display alternate color for rows
If recCount Mod 2 <> 0 Then
bgcolor = "#F5F5F5"
End If
%>
<%
x_ID = rs("ID")
x_Domain = rs("Domain")
x_TLD = rs("TLD")
x_LoginName = rs("LoginName")
x_Passwort = rs("Passwort")
x_Service = rs("Service")
x_Kundennummer = rs("Kundennummer")
x_FK_ID_Server = rs("FK_ID_Server")
x_Erfasst_am = rs("Erfasst_am")
x_gesperrt = rs("gesperrt")
x_Bemerkungen = rs("Bemerkungen")
x_alte_infos = rs("alte_infos")
x_alg_infos = rs("alg_infos")
x_best_anm = rs("best_anm")
x_Reseller = rs("Reseller")
x_Reseller_nummer = rs("Reseller_nummer")
x_Anrede_best = rs("Anrede_best")
x_Firma_best = rs("Firma_best")
x_Nname_best = rs("Nname_best")
x_Vorname_best = rs("Vorname_best")
x_Strasse_best = rs("Strasse_best")
x_Postfach_best = rs("Postfach_best")
x_PLZ_best = rs("PLZ_best")
x_Ort_best = rs("Ort_best")
x_Telefon_best = rs("Telefon_best")
x_Fax_best = rs("Fax_best")
x_Land_best = rs("Land_best")
x_Email_best = rs("Email_best")
x_Anrede_re = rs("Anrede_re")
x_Firma_re = rs("Firma_re")
x_Nname_re = rs("Nname_re")
x_Vorname_re = rs("Vorname_re")
x_Strasse_re = rs("Strasse_re")
x_Postfach_re = rs("Postfach_re")
x_PLZ_re = rs("PLZ_re")
x_Ort_re = rs("Ort_re")
x_Telefon_re = rs("Telefon_re")
x_Fax_re = rs("Fax_re")
x_Land_re = rs("Land_re")
x_Email_re = rs("Email_re")
x_Anrede_tec = rs("Anrede_tec")
x_Firma_tec = rs("Firma_tec")
x_Nname_tec = rs("Nname_tec")
x_Vorname_tec = rs("Vorname_tec")
x_Strasse_tec = rs("Strasse_tec")
x_Postfach_tec = rs("Postfach_tec")
x_PLZ_tec = rs("PLZ_tec")
x_Ort_tec = rs("Ort_tec")
x_Telefon_tec = rs("Telefon_tec")
x_Fax_tec = rs("Fax_tec")
x_Land_tec = rs("Land_tec")
x_Email_tec = rs("Email_tec")
x_Kontrolliert = rs("Kontrolliert")
x_erfasst_durch = rs("erfasst_durch")
x_MXrecord = rs("MXrecord")
x_Survey = rs("Survey")
x_sperrdatum = rs("sperrdatum")
x_Pointing = rs("ID_point")
%>
<tr bgcolor="<%= bgcolor %>">
<input type="hidden" name="key" value="<%= key %>">
<td><font class="formtag">
<% Response.Write x_ID %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Domain %>
</font></td>
<td><font class="formtag">
<% Response.Write x_TLD %>
</font></td>
<td><font class="formtag">
<% Response.Write x_LoginName %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Passwort %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Service %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Kundennummer %>
</font></td>
<td><font class="formtag">
<% Response.Write x_FK_ID_Server %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Erfasst_am %>
</font></td>
<td><font class="formtag">
<% If x_gesperrt = True Then %><%= "Yes" %><% Else %><%= "No" %><% End If %>
</font></td>
<td><font class="formtag">
<% If x_Reseller = True Then %><%= "Yes" %><% Else %><%= "No" %><% End If %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Reseller_nummer %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Anrede_best %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Firma_best %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Nname_best %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Vorname_best %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Strasse_best %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Postfach_best %>
</font></td>
<td><font class="formtag">
<% Response.Write x_PLZ_best %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Ort_best %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Telefon_best %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Fax_best %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Land_best %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Email_best %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Anrede_re %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Firma_re %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Nname_re %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Vorname_re %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Strasse_re %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Postfach_re %>
</font></td>
<td><font class="formtag">
<% Response.Write x_PLZ_re %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Ort_re %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Telefon_re %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Fax_re %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Land_re %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Email_re %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Anrede_tec %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Firma_tec %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Nname_tec %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Vorname_tec %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Strasse_tec %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Postfach_tec %>
</font></td>
<td><font class="formtag">
<% Response.Write x_PLZ_tec %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Ort_tec %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Telefon_tec %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Fax_tec %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Land_tec %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Email_tec %>
</font></td>
<td><font class="formtag">
<% If x_Kontrolliert = True Then %><%= "Yes" %><% Else %><%= "No" %><% End If %>
</font></td>
<td><font class="formtag">
<% Response.Write x_erfasst_durch %>
</font></td>
<td><font class="formtag">
<% Response.Write x_MXrecord %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Survey %>
</font></td>
<td><font class="formtag">
<% Response.Write x_sperrdatum %>
</font></td>
</tr>
<td><font class="formtag">
<%Response.Write x_Pointing %>
</font></td>
</tr>
<%
rs.MoveNext
Loop
rs.Close
Set rs = Nothing
conn.Close
Set conn = Nothing
%>
</table>
<p>
<input type="submit" name="Action" value="Loeschung bestaetigen">
</form>
<!--#include file="footer.asp"-->
----------------------------------------------------------
there were also 3 other tables named "Pointings,Synonyme,Subdomains" this tables has no relations to the main table called "data"
now my problem is the following
if i delete (with the asp code above) the customer entry (Primary Key is the unique Field named "ID"), all associated entrys (if there any) in the other tables shoud then deleted automatically also
how can i implement this?
many thanks for your help
best regards
E.Altherr
i use the follwing asp page to delete records from our customer database
<%@ codepage = 1250 LCID = 2055 %>
<% If Session("project6_status") <> "login" Then Response.Redirect "login.asp" %>
<%
Response.expires = 0
Response.expiresabsolute = Now() - 1
Response.addHeader "pragma", "no-cache"
Response.addHeader "cache-control", "private"
Response.CacheControl = "no-cache"
%>
<!--#include file="db.asp"-->
<!--#include file="aspmkrfn.asp"-->
<%
Response.Buffer = True
' Single delete record
key = Request.querystring("key")
If key = "" Or IsNull(key) Then
key = Request.Form("key")
End If
If key = "" Or IsNull(key) Then Response.Redirect "Kundenlist.asp"
sqlKey = sqlKey & "[ID]=" & "" & key & ""
' Get action
a = Request.Form("a")
If a = "" Or IsNull(a) Then
a = "I" ' Display with input box
End If
' Open Connection to the database
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open xDb_Conn_Str
Select Case a
Case "I": ' Display
strsql = "SELECT * FROM [Kunden] WHERE " & sqlKey
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open strsql, conn
If rs.Eof Then
Response.Clear
Response.Redirect "Kundenlist.asp"
Else
rs.MoveFirst
End If
Case "D": ' Delete
strsql = "SELECT * FROM [Kunden] WHERE " & sqlKey
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open strsql, conn, 1, 2
Do While Not rs.Eof
rs.Delete
rs.MoveNext
Loop
rs.Close
Set rs = Nothing
conn.Close
Set conn = Nothing
Response.Clear
Response.Redirect "Kundenlist.asp"
End Select
%>
<!--#include file="header.asp"-->
<p><font class="formtag">Eintrag aus Kunden DB loeschen</font></p>
<p><font class="formtag">WICHTIGER HINWEIS: aufgrund einer technischen Einschränkung ist es zur Zeit nicht möglich auch</font></p>
<p><font class="formtag">verlinkte Pointings, Subdomains oder Synonyme zu löschen</font></p>
<p><font class="formtag">Bitte mit Hilfe der ID überprüfen und ggf von Hand löschen! <br>
<br>
<a href="Kundenlist.asp">Zurueck zur Uebersicht</a></font></p>
<form action="Kundendelete.asp" method="post">
<p>
<input type="hidden" name="a" value="D">
<table border="0" cellspacing="1" cellpadding="4" bgcolor="#CCCCCC">
<tr bgcolor="#0099CC">
<td><font color="#FFFFFF"><font class="formtag">ID </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Domain </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">TLD </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Login Name </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Passwort </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Service </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Kundennummer </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">FK ID Server </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Erfasst am </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">gesperrt </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Reseller </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Reseller nummer </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Anrede best </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Firma best </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Nname best </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Vorname best </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Strasse best </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Postfach best </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">PLZ best </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Ort best </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Telefon best </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Fax best </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Land best </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Email best </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Anrede re </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Firma re </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Nname re </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Vorname re </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Strasse re </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Postfach re </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">PLZ re </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Ort re </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Telefon re </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Fax re </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Land re </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Email re </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Anrede tec </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Firma tec </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Nname tec </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Vorname tec </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Strasse tec </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Postfach tec </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">PLZ tec </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Ort tec </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Telefon tec </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Fax tec </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Land tec </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Email tec </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Kontrolliert </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">erfasst durch </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">MXrecord </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Survey </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">sperrdatum </font></font></td>
<td><font color="#FFFFFF"><font class="formtag">Pointing </font></font></td>
</tr>
<%
recCount = 0
Do While Not rs.Eof
recCount = recCount + 1
' Set row color
bgcolor = "#FFFFFF"
%>
<%
' Display alternate color for rows
If recCount Mod 2 <> 0 Then
bgcolor = "#F5F5F5"
End If
%>
<%
x_ID = rs("ID")
x_Domain = rs("Domain")
x_TLD = rs("TLD")
x_LoginName = rs("LoginName")
x_Passwort = rs("Passwort")
x_Service = rs("Service")
x_Kundennummer = rs("Kundennummer")
x_FK_ID_Server = rs("FK_ID_Server")
x_Erfasst_am = rs("Erfasst_am")
x_gesperrt = rs("gesperrt")
x_Bemerkungen = rs("Bemerkungen")
x_alte_infos = rs("alte_infos")
x_alg_infos = rs("alg_infos")
x_best_anm = rs("best_anm")
x_Reseller = rs("Reseller")
x_Reseller_nummer = rs("Reseller_nummer")
x_Anrede_best = rs("Anrede_best")
x_Firma_best = rs("Firma_best")
x_Nname_best = rs("Nname_best")
x_Vorname_best = rs("Vorname_best")
x_Strasse_best = rs("Strasse_best")
x_Postfach_best = rs("Postfach_best")
x_PLZ_best = rs("PLZ_best")
x_Ort_best = rs("Ort_best")
x_Telefon_best = rs("Telefon_best")
x_Fax_best = rs("Fax_best")
x_Land_best = rs("Land_best")
x_Email_best = rs("Email_best")
x_Anrede_re = rs("Anrede_re")
x_Firma_re = rs("Firma_re")
x_Nname_re = rs("Nname_re")
x_Vorname_re = rs("Vorname_re")
x_Strasse_re = rs("Strasse_re")
x_Postfach_re = rs("Postfach_re")
x_PLZ_re = rs("PLZ_re")
x_Ort_re = rs("Ort_re")
x_Telefon_re = rs("Telefon_re")
x_Fax_re = rs("Fax_re")
x_Land_re = rs("Land_re")
x_Email_re = rs("Email_re")
x_Anrede_tec = rs("Anrede_tec")
x_Firma_tec = rs("Firma_tec")
x_Nname_tec = rs("Nname_tec")
x_Vorname_tec = rs("Vorname_tec")
x_Strasse_tec = rs("Strasse_tec")
x_Postfach_tec = rs("Postfach_tec")
x_PLZ_tec = rs("PLZ_tec")
x_Ort_tec = rs("Ort_tec")
x_Telefon_tec = rs("Telefon_tec")
x_Fax_tec = rs("Fax_tec")
x_Land_tec = rs("Land_tec")
x_Email_tec = rs("Email_tec")
x_Kontrolliert = rs("Kontrolliert")
x_erfasst_durch = rs("erfasst_durch")
x_MXrecord = rs("MXrecord")
x_Survey = rs("Survey")
x_sperrdatum = rs("sperrdatum")
x_Pointing = rs("ID_point")
%>
<tr bgcolor="<%= bgcolor %>">
<input type="hidden" name="key" value="<%= key %>">
<td><font class="formtag">
<% Response.Write x_ID %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Domain %>
</font></td>
<td><font class="formtag">
<% Response.Write x_TLD %>
</font></td>
<td><font class="formtag">
<% Response.Write x_LoginName %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Passwort %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Service %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Kundennummer %>
</font></td>
<td><font class="formtag">
<% Response.Write x_FK_ID_Server %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Erfasst_am %>
</font></td>
<td><font class="formtag">
<% If x_gesperrt = True Then %><%= "Yes" %><% Else %><%= "No" %><% End If %>
</font></td>
<td><font class="formtag">
<% If x_Reseller = True Then %><%= "Yes" %><% Else %><%= "No" %><% End If %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Reseller_nummer %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Anrede_best %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Firma_best %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Nname_best %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Vorname_best %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Strasse_best %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Postfach_best %>
</font></td>
<td><font class="formtag">
<% Response.Write x_PLZ_best %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Ort_best %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Telefon_best %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Fax_best %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Land_best %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Email_best %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Anrede_re %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Firma_re %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Nname_re %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Vorname_re %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Strasse_re %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Postfach_re %>
</font></td>
<td><font class="formtag">
<% Response.Write x_PLZ_re %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Ort_re %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Telefon_re %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Fax_re %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Land_re %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Email_re %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Anrede_tec %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Firma_tec %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Nname_tec %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Vorname_tec %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Strasse_tec %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Postfach_tec %>
</font></td>
<td><font class="formtag">
<% Response.Write x_PLZ_tec %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Ort_tec %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Telefon_tec %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Fax_tec %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Land_tec %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Email_tec %>
</font></td>
<td><font class="formtag">
<% If x_Kontrolliert = True Then %><%= "Yes" %><% Else %><%= "No" %><% End If %>
</font></td>
<td><font class="formtag">
<% Response.Write x_erfasst_durch %>
</font></td>
<td><font class="formtag">
<% Response.Write x_MXrecord %>
</font></td>
<td><font class="formtag">
<% Response.Write x_Survey %>
</font></td>
<td><font class="formtag">
<% Response.Write x_sperrdatum %>
</font></td>
</tr>
<td><font class="formtag">
<%Response.Write x_Pointing %>
</font></td>
</tr>
<%
rs.MoveNext
Loop
rs.Close
Set rs = Nothing
conn.Close
Set conn = Nothing
%>
</table>
<p>
<input type="submit" name="Action" value="Loeschung bestaetigen">
</form>
<!--#include file="footer.asp"-->
----------------------------------------------------------
there were also 3 other tables named "Pointings,Synonyme,Subdomains" this tables has no relations to the main table called "data"
now my problem is the following
if i delete (with the asp code above) the customer entry (Primary Key is the unique Field named "ID"), all associated entrys (if there any) in the other tables shoud then deleted automatically also
how can i implement this?
many thanks for your help
best regards
E.Altherr