Home > Forum > Database > Data connection to the attachment database

Data connection to the attachment database
0

Hi, Is it possible to create a data connection to the attachment database? Databases have different names in the test and production environments.

MVP

Hi,

the easiest way is to create a MSSQL data database connection and configure the Test and Production tabs.

This would be sufficient if you execute the query only against the attachment database.

In case your query needs information from the content database as well as the attachment database. You would also need a constant with the database. The name of the database would again be defined per environment.

The statement would be something along
select WFD_STPID
from WFElements join {ENV:xyz}.dbo.WFDataAttachmentFIles on WFD_ID = ATT_WFDID
where ...

This won't work with the default connection as the used bps_user account cannot execute a query against another database.

Best regards,
Daniel

Privacy overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognizing you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.


To see a full list of the cookies we use and learn more about their purposes, visit our Privacy Policy.