I posted this question on the XMod Pro site but haven't received a response.
I have a second local SQL database (in addition to the DNN database). I am trying to connect to that database using XMod Pro > Control Panel > Manage Forms > New Form > Data Source: External SQL Server Database Table > Connection String:
"Data Source=.\SQLExpress;AttachDbFilename=|DataDirectory|mssextradb.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"
Then I click "Load Tables" and nothing happens. I have tried various connection strings but I never get anything.
Any advice will be GREATLY appreciated.
Thanks,
Mark
Marc,
A good "tool" to get a connection string is to create a new textfile somewhere (e.g. "test.txt") and rename that to have "udl" as extension ("test.udl"). Then double click the udl file and establish a connection to that database. Save the file, and open it with any text editor, then you find a connection string you can use.
Example:
[oledb] ; Everything after this line is an OLE DB initstring Provider=SQLOLEDB.1;Password=MySecretPassword;Persist Security Info=True;User ID=SQLServerLogin;Initial Catalog=MyExternalDatabase;Data Source=SQLServerName\Instance
Happy DNNing! Michael
I have used this a lot in the past and id did work, although I edited my XMOD ascx templates directly as text files. You could first try the Reports Module to see if it's an issue with the connection string, or you could add it as an extra to web.config (In the end I did that for my Xmod Templates)
Did you try to integreate it with seprate website? I want to do this experient with my reviews blog. Can you help me regarding this?
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.