Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Connect to other database


I have a addon running and want to make a connection with another database to collect some data. It is on the same server, same user, etc.

The easy way looks like:

nCompany = New SAPbobsCOM.Company

nCompany.Server = B1Connections.diCompany.Server

nCompany.LicenseServer = B1Connections.diCompany.LicenseServer

nCompany.CompanyDB = "Other_Db"

nCompany.UserName = B1Connections.diCompany.UserName

nCompany.Password = B1Connections.diCompany.Password

nCompany.DbUserName = B1Connections.diCompany.DbUserName

nCompany.DbPassword = B1Connections.diCompany.DbPassword

This doesn't work!

I guess this is because of passing the passwords.

Is this possible in any way?

Kind regards,


Not what you were looking for? View more on this topic or Ask a question