Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
How I can get connection string by API?
You can get it with this code:
ConfigurationManager.AppSettings["umbracoDbDSN"]
Jeroen
Thanks
(or umbraco.BusinessLogic.Application.SqlHelper.ConnectionString)
Is there a difference?
don't think so, both should return the same string
or umbraco.GlobalSettings.DbDSN ... again no difference, but good to keep in mind that you have strongly-typed access to all the appSettings keys from the umbraco.GlobalSettings API.
Cheers, Lee.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How I can get connection string by API?
How I can get connection string by API?
You can get it with this code:
Jeroen
Thanks
(or umbraco.BusinessLogic.Application.SqlHelper.ConnectionString)
Is there a difference?
don't think so, both should return the same string
or umbraco.GlobalSettings.DbDSN ... again no difference, but good to keep in mind that you have strongly-typed access to all the appSettings keys from the umbraco.GlobalSettings API.
Cheers, Lee.
is working on a reply...