Sage 100

 View Only
  • 1.  Trying to restore client v4.5 SQL database to anot

    Posted 09-21-2013 07:01
    Trying to restore client v4.5 SQL database to another server. SQL 2008. Restore works great and can access the DB from with SQL Mgmt Studio. However, due to passwords (MS security identifiers) I cant access the db from within MAS. Does anyone know of an ALTER db or other command/procedure that can be used to accomplish this? Attached is error message when trying to access data from within MAS and also a knowledgebase article I found that acknowledges the issue but doesn't offer a solution (nice).

    Attachment(s)

    doc
    sql_error.doc   334 KB 1 version
    docx
    sql_error2.docx   264 KB 1 version
    pdf
    error_15_kb.pdf   71 KB 1 version


  • 2.  RE: Trying to restore client v4.5 SQL database to anot

    Posted 09-21-2013 11:05
    Did you use the utility on the menu to reset the password. It is next to the application configuator. My guess it is permissions.


  • 3.  RE: Trying to restore client v4.5 SQL database to anot

    Posted 09-21-2013 11:14
    Yes. I did that. I agree it is permissions. You can have the same user name and password in 2 different databases but Microsoft views them differently as they have different underlying security identifiers..


  • 4.  RE: Trying to restore client v4.5 SQL database to anot

    Posted 09-21-2013 12:27
    On the new SQL Server: 1. Create MAS_User in Security / Logins and assign these server roles: db_creator public 2. Create MAS_Reports in Security / Logins and assign these server roles: public And now the part that is prolly causing the error: 3. Run this T-Sql below for EVERY MAS_ database including MAS_SYSTEM Copy / paste this below into SQL Mgmt Studio. Login to SQL Mgmt Studio sa' or a trusted login that is a sysadmin /* -- START -- Click database dropdown in SQL Mgmt Studio to change databases -- Be sure to run for EVERY MAS_ database including MAS_SYSTEM exec sp_dropuser 'MAS_User' exec sp_grantdbaccess 'MAS_User' exec sp_addrolemember 'db_owner', 'MAS_User' exec sp_dropuser 'MAS_Reports' exec sp_grantdbaccess 'MAS_Reports' exec sp_addrolemember 'db_datareader', 'MAS_Reports' -- FINISH */ 4. Finally reset the passwords of both MAS_User and MAS_Reports through the MAS SQL Settings Utility so both massql.settings file and SQL Server is updated.


  • 5.  RE: Trying to restore client v4.5 SQL database to anot

    Posted 09-21-2013 12:32
    Thanks Alnoor. I will try that later today or tomorrow.