Click here to Skip to main content
15,900,110 members
Home / Discussions / Database
   

Database

 
GeneralRe: Count Issues Pin
Sam Heller20-Apr-07 1:46
Sam Heller20-Apr-07 1:46 
GeneralRe: Count Issues Pin
andyharman20-Apr-07 1:52
professionalandyharman20-Apr-07 1:52 
GeneralRe: Count Issues Pin
Sam Heller20-Apr-07 2:03
Sam Heller20-Apr-07 2:03 
QuestionDelete all Tables in MS ACCESS Pin
PavanPareta19-Apr-07 21:25
PavanPareta19-Apr-07 21:25 
AnswerRe: Delete all Tables in MS ACCESS Pin
Colin Angus Mackay20-Apr-07 2:26
Colin Angus Mackay20-Apr-07 2:26 
GeneralRe: Delete all Tables in MS ACCESS Pin
DQNOK20-Apr-07 3:28
professionalDQNOK20-Apr-07 3:28 
GeneralRe: Delete all Tables in MS ACCESS Pin
Colin Angus Mackay20-Apr-07 6:55
Colin Angus Mackay20-Apr-07 6:55 
AnswerRe: Delete all Tables in MS ACCESS Pin
DQNOK20-Apr-07 8:58
professionalDQNOK20-Apr-07 8:58 
I don't think you can do this with a query. I think you'll have to code it in a function. If it were possible, the query would look something like:

DROP TABLE (SELECT Name FROM MSysObjects WHERE Type=1 AND Name NOT LIKE 'MSys%');

How to put this into a function should be pretty obvious now: you run the inner query to get all the tablenames (DO NOT delete the MSys___ tables; although I doubt you could anyway) into a record set, then loop thru the record set with:

"DROP TABLE " & recordset!Name & ";"

Note that Access doesn't like to drop tables that have relationships on them, so this may not work unless you first delete the relationships.

Hope this helps.
David
Questionhow to get column wise data in a row in sql ? Pin
ahmedalisha19-Apr-07 20:07
ahmedalisha19-Apr-07 20:07 
AnswerRe: how to get column wise data in a row in sql ? Pin
Colin Angus Mackay20-Apr-07 0:31
Colin Angus Mackay20-Apr-07 0:31 
GeneralRe: how to get column wise data in a row in sql ? Pin
ahmedalisha20-Apr-07 2:26
ahmedalisha20-Apr-07 2:26 
AnswerRe: how to get column wise data in a row in sql ? Pin
Shetty_8020-Apr-07 3:17
Shetty_8020-Apr-07 3:17 
QuestionRe: how to get column wise data in a row in sql ? Pin
M.H.1.2.320-Apr-07 12:03
M.H.1.2.320-Apr-07 12:03 
QuestionSql Server 2005 connection problem Pin
sangramkp19-Apr-07 19:35
sangramkp19-Apr-07 19:35 
AnswerRe: Sql Server 2005 connection problem Pin
Sathesh Sakthivel19-Apr-07 19:53
Sathesh Sakthivel19-Apr-07 19:53 
AnswerRe: Sql Server 2005 connection problem Pin
Jerry Hammond20-Apr-07 17:38
Jerry Hammond20-Apr-07 17:38 
QuestionDisplaying Data in DataGridView [modified] Pin
cocoonwls19-Apr-07 16:30
cocoonwls19-Apr-07 16:30 
AnswerRe: Displaying Data in DataGridView Pin
Tirthadip19-Apr-07 18:58
Tirthadip19-Apr-07 18:58 
GeneralRe: Displaying Data in DataGridView Pin
cocoonwls19-Apr-07 20:15
cocoonwls19-Apr-07 20:15 
Questionwhat is "No overload for method 'runNonSelectQuery' takes '3' arguments" mean Pin
Eyungwah19-Apr-07 5:20
Eyungwah19-Apr-07 5:20 
AnswerRe: what is "No overload for method 'runNonSelectQuery' takes '3' arguments" mean Pin
Colin Angus Mackay19-Apr-07 5:34
Colin Angus Mackay19-Apr-07 5:34 
Questionauto increment Pin
hadad19-Apr-07 5:17
hadad19-Apr-07 5:17 
AnswerRe: auto increment Pin
Colin Angus Mackay19-Apr-07 5:30
Colin Angus Mackay19-Apr-07 5:30 
QuestionShould the INDEX name be used in SELECT statement Pin
cy163@hotmail.com19-Apr-07 4:11
cy163@hotmail.com19-Apr-07 4:11 
AnswerRe: Should the INDEX name be used in SELECT statement Pin
Colin Angus Mackay19-Apr-07 4:33
Colin Angus Mackay19-Apr-07 4:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.