Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reatore SQL backup to a different databse name

Status
Not open for further replies.

ZABARVAN

IS-IT--Management
May 24, 2003
186
SA

HI

I tried to restore SQL backup into a different database name other than the original database. While running ACCPAC it is giving error as : database profile refers to a database which was created with database ID RRRDAT" (original name).

Can we change this original name to a new name as we need it for Data Analysis.

Which Table can be edited.

Any help please

Thanking You

ZAb
 
The ORGID must match the database ID for the new company you created.... if that makes sense
 
Quick TSQL script for MSSQL databases:

Code:
declare @NewOrgID as varchar(6)
select @NewOrgID = 'XYZDAT'
update CSCOM set ORGID = @NewOrgID 
update GL01 set COMPANYID=@NewOrgID
 
FWIW, I've never bothered with GL01, and never gotten any errors, so I just UPDATE CSCOM SET ORGID = 'XYZDAT'
 
I just know that I hit a problem one year and fixing that field got me past the problem. :)

 
That's possible D-Man, I would never use a copy of a database like this in a production environment. Let's just say I have not run into any issues simply because I have not tested every possible transaction.
 
When I clone a DB into a new DB + company for testing I always update:
companySYS and companyDAT: CompanyID in CSAUTH, CSUSCST
companyDAT: COName and OrgID in in CSCOM

Never noticed GL01.CompanyID before, thanks DjangMan!
 
On the subject of the CSxxxx tables, for non-technical users who Dbdump/Dbload instead of SQL copy, the ORGIDs aren't correct after a load. If you don't want to do SQL updates to fix them, run Database Setup, edit the System database, and do a propagate.
 
There is/was some reports that linked AUDTORG back to the CSCOM.ORGID field and if they did not match then the reports would not print any data.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top