Alıntı
<!--#include file="dbyolu.asp"-->
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.google.com/schemas/sitemap/0.84">

<%Set nesne = Server.CreateObject("ADODB.RecordSet")
nesne.Open "SELECT * from TABLO ORDER BY id DESC", Baglan, 3, 1
overallLink = nesne.RecordCount
If nesne.EOF Then Response.Write "Kayıt Yok!..." : Response.END
Do While Not nesne.EOF%>
<url>
<loc>http://domainadi.com/icerik.asp?id=<%=nesne("id")%></loc>
<lastmod><%=year(now)%>-<%=month(now)%>-<%=day(now)%></lastmod>
<changefreq>hourly</changefreq>
<priority>0.5</priority>
</url>
<% If r <> recordNo Then Response.Write "" %>

<%
nesne.MoveNext
r = r + 1
Loop

nesne.Close
Set nesne = Nothing %>
</urlset>
Bundan alasınıda kimse vermez. sitemap.asp olarak kaydedip kullanabilirsiniz..

includedeki dbyolu.asp ye veritabanı bağlantı kodlarını gireceksin veritabanı şifresi vs...
Veritabanındaki her tablo için ayrı bir sitemap.asp dosyası oluşturacaksın...