In SQL Server 2005, is it possible to drop and recreate a table (copy from another database) inside a transaction?
Also, will any process trying to access this table during a transaction fail or wait for the transaction to complete?
Copy the data to another table, then switch the old and new tables. Use sp_rename or see Effective data transfer by switching partitions . A later version is better because it retains all permissions and restrictions in the table, but it requires Enterprise Edition.
Source: https://habr.com/ru/post/1340841/More articles:Xilinx ISE "Unable to directly access memory Q" - xilinxPHP ASCII table library - phpmysql: how to improve performance for this mysql select statement? - performanceworking example of multiprocessing. - pythonFind out which fields are being updated - linq-to-sqlAndroid Out of Memory error with lazy loading images - androidFinding the distance between two nearest elements in an array of numbers - javaJettison JSON automatically changes data type - jsonGoogle Post Engine - jsonAndroid iPhone Blackberry Call Forwarding - androidAll Articles