kentico_mirekr
-
5/25/2010 6:45:35 AM
RE:Custom Webpart Doesn't Databind using different local database
Hi,
You just need to add custom connection string into your web.config file and in code behind of your custom web part you should be able to access your custom non-Kentico CMS database with for example standard ADO.NET support. Your Kentico CMS web site (Your web server where your Kentico CMS is running) needs to see your SQL server. There is no setting in Kentico CMS to allow connection to different databases and Kentico CMS is not blocking the connection to different databases in any way. So, you just need to ensure that your web server is able to see/connect to your SQL server and then check your custom code.
You can also try to check Kentico CMS event log (CMS Site Manager -> Administration -> Event log) or OS event log for more detail information why you are not able to connect to your SQL server.
Best regards, Miroslav Remias.
|