September 28, 2010 at 3:48 pm
TITLE: Microsoft SQL Server Management Studio
------------------------------
Drop failed for Table 'dbo.DIM_Splits'. (Microsoft.SqlServer.Smo)
------------------------------
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
------------------------------
Lock request time out period exceeded. (Microsoft SQL Server, Error: 1222)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.4053&EvtSrc=MSSQLServer&EvtID=1222&LinkId=20476
------------------------------
BUTTONS:
OK
------------------------------
I get the above error when trying to delete a simple table with about 10 records in it??
How can i fix this?? That is DROP TABLE
September 28, 2010 at 4:27 pm
Digs (9/28/2010)
TITLE: Microsoft SQL Server Management Studio
------------------------------
Drop failed for Table 'dbo.DIM_Splits'. (Microsoft.SqlServer.Smo)
------------------------------
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
------------------------------
Lock request time out period exceeded. (Microsoft SQL Server, Error: 1222)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.4053&EvtSrc=MSSQLServer&EvtID=1222&LinkId=20476
------------------------------
BUTTONS:
OK
------------------------------
I get the above error when trying to delete a simple table with about 10 records in it??
How can i fix this?? That is DROP TABLE
Firstly, you are not deleting but dropping the table - like in removing the table from the system.
Secondly, table is in use by other user so SQL Server is smart enough not to let you drop it.
Lastly, if the idea is get rid of the table - think twice - first be sure nobody is using it then drop it.
_____________________________________
Pablo (Paul) Berzukov
Author of Understanding Database Administration available at Amazon and other bookstores.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply