SQL-DMO Com Exception(0x80045021)

  • Howdy Folks,

    I seem to be having an intermittent problem with the DMO when trying to do a dynamic discovery of sql servers in a network. I get the following error.

    You cannot change the name, login, password, login timeout, login security, or network packet size for a server object while its connected.

    at SQLDMO.SQLServer2Class.Set_Login(String pRetVal).

    Any help with this would be appreciated.

    Wayne

  • This happens because the application is connected to the SQL Server.  Check your previous lines and calling statements that use the DMO object, somewhere is missing or skipping the diconnect.

    -

Viewing 2 posts - 1 through 1 (of 1 total)

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