cja-tech-guy
asked on
Delete a table from SQL 2005
We are trying to reduce the space taken up by the database for our accounting system. We were told by their tech support which tables are temporary and can be deleted. How do I delete a table in SQL? Do I right click and choose "delete"?
Also, I went into SQL, clicked on the database name and then on the tables folder but I did not see any tables that matched the names given to us by tech support. Any ideas on why they would not be there? Could SQl be deleting them automatically?
Thanks,
cja
Also, I went into SQL, clicked on the database name and then on the tables folder but I did not see any tables that matched the names given to us by tech support. Any ideas on why they would not be there? Could SQl be deleting them automatically?
Thanks,
cja
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Anoo
I do not know SQL at all. How do you shrink a database?
Thanks,
CJA
I do not know SQL at all. How do you shrink a database?
Thanks,
CJA
ASKER
Can anyone comment on how to shrink a databse in SQL 2005?
Thanks,
cja
Thanks,
cja
you can execute query: DROP TABLE #delete_table_name
suggestion: before you delete your tables, make sure have database back up just in case you mistake delete any table that you are not intended to.