Hostingforecommerce.com - Today, I will show you How to Change Connection String in nopCommerce. Connection string in nopCommerce is located at:
...\nopCommerce\Presentation\Nop.Web\App_Data\Settings.txt
This file can not shows in visual studio, so you can directly open file from physical location Presentation\Nop.Web\App_Data
Now, look on you sample connection string looks like:
DataProvider: sqlserver
DataConnectionString: Data Source=<SQLServerName>;Initial
Catalog=<MyDatabaseName>;Integrated Security=True;Persist Security
Info=False;MultipleActiveResultSets=True
By default, we stored connection string in Web.config file, but in nopCommerce we found that Connection String is stored in \Presentation\Nop.Web\App_Data\Settings.txt
Yes it's safe. All files stored into App_Data directory are "secured". Any file you place there will not be downloadable.
Now, look on you sample connection string looks like:
DataProvider: sqlserver
DataConnectionString: Data Source=<SQLServerName>;Initial
Catalog=<MyDatabaseName>;Integrated Security=True;Persist Security
Info=False;MultipleActiveResultSets=True
By default, we stored connection string in Web.config file, but in nopCommerce we found that Connection String is stored in \Presentation\Nop.Web\App_Data\Settings.txt
Yes it's safe. All files stored into App_Data directory are "secured". Any file you place there will not be downloadable.
0 comments:
Post a Comment