SQL Server Name property of a project

SQL Server Name property of a project

thorgul
Participant Participant
442 Views
5 Replies
Message 1 of 6

SQL Server Name property of a project

thorgul
Participant
Participant

Hello, 

On plant3d I have project that are on different SQL Server and I wanted to know if it is possible to access this property 

thomaschardon_tc_3-1734017685710.png

so that depending of the project I am always on the right server 

thanks

 

0 Likes
443 Views
5 Replies
Replies (5)
Message 2 of 6

jabowabo
Mentor
Mentor
Autodesk.ProcessPower.DataLinks.DataLinksManager.GetPnPDatabase().DBEngine.DbName
0 Likes
Message 3 of 6

jabowabo
Mentor
Mentor

If you don't want to use the API, you can also get it from any of the project .dcf files.

0 Likes
Message 4 of 6

thorgul
Participant
Participant

Hello, 

thanks for the reply but this give me the path of the .dcf files. We are using Vault with plant3d is that the reason ? 

 

0 Likes
Message 5 of 6

jabowabo
Mentor
Mentor

@thorgul wrote:

Hello, 

thanks for the reply but this give me the path of the .dcf files. We are using Vault with plant3d is that the reason ? 

 


If the .dcf path is returned, that means it's a SQLite project - not hosted on SQL server.

0 Likes
Message 6 of 6

thorgul
Participant
Participant

That's because we are using Autodesk Vault to hold our projects the sqllite is just from the working folder. 

0 Likes