Database bloat

D

DanJ

Has anyone ever heard of the 'RefreshLink' property causing bloat? My
database goes from 83MB to 318MB when the code below runs to link 142 SQL
tables. If the user chooses not to run this 'link update', it doesn't
happen. Anyone have any tips??? I have read all the Microsoft articles I
could find and have made sure that everything is properly closed.



For Each tmpTABLE In mydb.TableDefs
tmptablename = tmpTABLE.Name
tmpconnect = tmpTABLE.Connect
If Len(tmpTABLE.Connect) > 0 Then

tmpTABLE.Connect = ""
tmpTABLE.Connect = "ODBC;DSN=" & tmpDSN & ";APP=" & tmpAPP &
";WSID=" & tmpWSID & ";DATABASE=" & tmpDB & ";Trusted_Connection=" & tmpTC &
""
tmpTABLE.RefreshLink
End If
Next tmpTABLE
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top