Solved

ERROR: The 'select into' database option is not enabled for database 'ipaddb'.

Posted on 2004-03-27
4
13,470 Views
Last Modified: 2010-10-05
Hi,

I need to drop a column and im using this sql:

alter table Attachment drop attachmentType

i get this error message:

ERROR: The 'select into' database option is not enabled for database 'ipaddb'. ALTER TABLE with data copy cannot be done. Set the 'select into' database option and re-run.

seems clear, i set this option and everything should be ok, so i run this:

--------------
use master
go
sp_dboption ipaddb, 'select into', true
go
sp_helpdb ipaddb
go
--------------

and the options seems to be set since i receive this output:


name        db_size     owner       dbid        created     status
----------  ----------  ----------  ----------  ----------  ----------
ipaddb                   |      250.0 MB | ipad                     | 39         | Dec 01, 2003   | select into/bulkcopy/pllsort, trunc log on chkpt, abort tran on log full |

----

but, for some strange reason - it doesnt help, i get the same error as before:

ERROR: The 'select into' database option is not enabled for database 'ipaddb'. ALTER TABLE with data copy cannot be done. Set the 'select into' database option and re-run.


PLEASE HELP!!!!!
0
Comment
Question by:vpolonsk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 

Author Comment

by:vpolonsk
ID: 10696266
ok.. figured it out on my own:
needed to use checkpoint command, so this worked :
--------------
use master
go
sp_dboption ipaddb, 'select into', true
go
use ipaddb
go
checkpoint
go
sp_helpdb ipaddb
go
--------------
0
 
LVL 3

Expert Comment

by:ahoor
ID: 10703651
You should always listen to your database :)
If you do a sp_dboption it returns that you must do a checkpoint before the change has effect....
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 11537881
PAQed, with points refunded (125)

modulo
Community Support Moderator
0

Featured Post

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
The recent Petya-like ransomware attack served a big blow to hundreds of banks, corporations and government offices The Acronis blog takes a closer look at this damaging worm to see what’s behind it – and offers up tips on how you can safeguard your…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question