Msqlserver Error 3745 – Only a clustered index can be dropped online.

Only a clustered index can be dropped online. Let’s try to drop the nonclustered online:

CREATE NONCLUSTERED INDEX Emp_id On EMployeeInfo (EmpName) 
–Dropping the Index with Online = ON
DROP INDEX [IX_Empname] ON [dbo].[EmployeeInfo] WITH ( ONLINE = ON) 
 
Msg 3745, Level 16, State 1, Line 1
Only a clustered index can be dropped online.

DROP INDEX [IX_Empname] ON [dbo].[EmployeeInfo] WITH ( ONLINE = OFF )

Also ONLINE=ON works only in Enterprise Edition. Please find the edition of your server using – SELECT SERVERPROPERTY(N’EDITION’)

INTERVIEW PREPARATION IN 30 MINs – Read Following wires for a quick interview preparation.

  1. SQL Server DBA “Interview Questions And Answers”
  2. SQL Azure Interview Questions and Answers Part – 1
  3. SQL Azure Interview Questions and Answers Part – 2
  4. Powershell Interview Questions and Answers

 Regards,
http://tuitionaffordable.webstarts.com

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s