Solved

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

Posted on 2004-03-27
4
13,100 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
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

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

An article on effective troubleshooting
Knowing where your website is hosted is as important as the features you receive, the monthly fee, and the support you receive. Due diligence should be done when choosing your next hosting provider.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa‚Ķ

810 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