I would like to know how to empty my database, from SQL Server.
I would like to know how to empty my database, from SQL Server.
I recommend generating you table scripts, deleting the entire database
( drop database tubasededatos
) and launch the backup only of tables:
Original reply: StackOverflow
Any of these should serve
DROP DATABASE nombre; //es para eliminar una base de datos
DROP TABLE nombre; // es para eliminar una tabla
DELETE FROM nombre; //es para eliminar el contenido de una tabla
TRUNCATE TABLE nombre; //es para limpiar totalmente una tabla, el index vuelve a 0