navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Using a compact script with autonumbers in db

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Using a compact script with autonumbers in db
Page: [1]
 
Rizzo

 

Posts: 42
Joined: 12/7/2001
From:
Status: offline

 
Using a compact script with autonumbers in db - 12/9/2001 13:27:27   
Anyone know if this is true?
I've heard that using compact scripts could mess up your database if you use autonumbers. That true? I want to use this script I found:

<%
oldDB = Server.MapPath("my.mdb")
bakDB = Server.MapPath("my_bak.mdb")
newDB = Server.MapPath("my.mdb")
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
FSO.CopyFile oldDB, bakDB, true
Set Engine = Server.CreateObject("JRO.JetEngine")
prov = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
Engine.CompactDatabase prov & OldDB, prov & newDB
set Engine = nothing
FSO.DeleteFile oldDB
FSO.MoveFile newDB, oldDB
set FSO = nothing
%>

Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Using a compact script with autonumbers in db - 12/9/2001 15:12:46   
I havent heard it?
If you compact a 97 database that has had records deleted, then the autonumber will reset to the last highest

§þððk¥
Database / DRW Q & A
VP-ASP Shopping cart

(in reply to Rizzo)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Using a compact script with autonumbers in db
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts