Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...SQL and SQL Ser...SQL and SQL Ser...DNN SQL database access from an external applicationDNN SQL database access from an external application
Previous
 
Next
New Post
6/30/2010 2:27 PM
 
What are my options for manipulating (read/write) DNN SQL Server database data from an external remote user application (Excel VBA)?
• Some DNN module (free or otherwise)?
• A custom developed web service?
• LINQ, ADO, SQL Stored procedure, REST?
• Other?
I have a DNN web site with membership.
I have an external application that needs to have access to the SQL server database (read and write data). In my case, the external application is Microsoft Excel and I will use VBA code to initiate/control the interaction.
I want DNN or SQL Server to be able to control what data the user app has access to (based on the user's ID that is stored within the Excel file). I believe that DNN/SQL would have to match the user's ID (stored in Excel) with their DNN website membership to determine which data the user can access.
The SQL server database is currently internal; which I understand makes it difficult to directly access the database using ADO in Excel VBA.
Any thoughts or links would be appreciated.
 
New Post
6/30/2010 7:43 PM
 
Hi,

By 'internal' and 'external' I presume you mean either side of a firewall, SQL Server on the inside, Excel out in the Internet? If so, then there's no reason why the firewall couldn't be opened up to allow direct access to SQL Server (IP port 1443 by default I think) other than most people regarding this as a really bad idea.

Can you elaborate a little on what you're trying to do - what data do you want to edit with Excel? The contents of the DNN database are really designed to be manipulated via the DNN framework, and there's caching in various places that can cause direct updates to the tables to be lost. 

Regards,
Rhys

www.rmjcs.com - Mostly SQL Server Stuff
 
New Post
7/1/2010 5:41 AM
 
I suggest looking at IWeb project, how to provide secure access to DNN data using web services via DNN API calls. see iweb.adefwebserver.com

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
7/1/2010 5:40 PM
 
Sebastian,
Thanks for the IWeb suggestion. It looks potentially useful, however the IWeb web service appears to only be able to read data from the DNN database? I also need to be able to write data (to separate non-DNN tables). Any other suggestions?
 
New Post
7/1/2010 6:04 PM
 
Rhys,
Yes, SQL Server inside the firewall. Excel out in the internet.
Yes, I can directly manipulate (read and write) the SQL data via ADO from Excel VBA, but I agree this is a bad idea. I think access needs to be controlled (by the server/DNN/SQL) so users can only access their data (e.g. if my Excel VBA code [which would contain SQL admin credentials] is hacked).

The DNN site allows registered/authorized users to download spreadsheets. After entering data in the Excel, the user would "submit/upload" or "sync" data to the server. Other data would also be downloaded from the server to Excel. The uploaded data would be put in other tables (or possibly another database) and would not manipulate DNN framework data. However, the user-submitted data would need to be associated with the DNN user, so we can keep track of which user submitted which data.
Separetly, we would also want to dislay a summary of data entered (appropriate for that user) in DNN, perhaps using some type of datagrid.
Thanks,
AH
 
Previous
 
Next
HomeHomeDevelopment and...Development and...SQL and SQL Ser...SQL and SQL Ser...DNN SQL database access from an external applicationDNN SQL database access from an external application


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out