Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2004-03-27
4
Medium Priority
?
13,678 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Files go missing when using DFS (Distributed File System) Replication and how to recover them and fix it.
Check out what's been happening in the Experts Exchange community.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

715 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