Unknown error messages during generate script from SQL2008 database

  • I have a SQL2008 database, running Standard Edition 64-bit, database owns by sa, connected to Management Studio using Windows Authentication mode. When I tried to generate scripts from a database, I got the following error messages:-

    [Operation is not valid due to the current state of the object. (SqlManagerUI)]

    which happened at one particular table. I have reviewed this table definitions are normal, and I could select data from it.

    I couldn't find any information anywhere relating to this error messages, except that someone got it when they were trying to change the authentication mode or sa password.

    Anybody got this similar scenario ? any idea would be appreciated....

    Wai

  • did you found a solution to ur problem?

    also i have the same problem

  • I finally found that I had some other windows opened to view some objects with the same database when I tried to generate scripts. Once I closed those windows, the error messages gone. This is probably Management Studio still occupying some of the objects that I have opened.

    Hope that helps you....

  • I am also getting same issue,I closed all open connections even-though , it showing same error. what is exactly reason for this.

  • Hi All,

    This problem may be with sql server(maybe sql server corrupted) , I also faced same problem in my local machine while taking schema script from my local db.

    But I connected my local db from another machine and taken schema from import&export wizard , it is not throwing any issue .

    Can you try this scenario.

    Thanks,

    RR.

  • I was trying to script all objects in a DB and faced the same error on one of the tables. The solution that I had to follow as this:

    1. In first run of "Generate Scripts" wizard, script all tables. Ran fine.

    2. In second run, script all objects except tables.

    Hope it helps.

    -Akshay.

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply