Cannot generate scripts for data after table move.

I have a database called Materials.

The table was created in a database named DB1.  We needed to move it from DB1 to DB2.
I generated scripts of the table and data and recreated it in DB2.
I took DB1 offline.

Now I am trying to script the Materials table (and data) again.  However, I am getting a "Failed" error because it is saying that the script cannot be generated becasue DB1 is offline!!
It shouldn't matter that DB1 is offline because the table exists only in DB2 now.

How do I fix this so that I can generate the scripts??
Who is Participating?
are you trying to script the table in DB1 or DB2?
PIERCGGAuthor Commented:
I am trying to script it in DB2.  DB1 is offline.
I need the one in DB2 because a lot of new data was added since it was originally moved.
PIERCGGAuthor Commented:
That's it!  That's the answer!  It is a bug that occurs if the db is offline.  The bug doesn't occur if you just go ahead and detach the db.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.