Great Ideas. Always Flowing.

We are not happy until you are happy. Client satisfaction guaranteed. Whatever your needs and requirements, we have the skills and resources for the job!

Quick login...


Or... now make it easy with Facebook Integration
Connect via Facebook



Top Sellers

Frustrated over the lack of customization for your user's registration fields? Dynamically setup your DNN Portal with custom registration fields, layout, questions, and other core integration options......

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to upload videos in various format and automatically encode them to flv or H264 format, you also can add videos from internet or record live videos from your webcam.

Build high performance, completely customizable data-entry forms and views driven by your DNN and external databases. New built-in tools make it a snap to quickly create data entry forms, data views, and even database tables. Plus, add your own HTML, CSS, Javascript, SQL commands, stored procedures,

The most advanced DotNetNuke shopping cart on the planet. Easy to use e-Commerce, Secure Shopping Cart Software and SEO friendly. B2C / B2B Ecommerce Sites.

One stop solution for events calendar and events registration! FREE DOWNLOAD is available now!

Can DF save data to MySQL db?
Last Post 05-05-2010 07:14 AM by Benjamin Perez. 4 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Benjamin PerezUser is Offline
going with the flow
going with the flow
Posts:55
Avatar

--
05-05-2010 06:16 AM

    I would like to have DF save the data from a form to a MySQL database sitting on a different server. Is this possible?

    David ToUser is Offline
    river guide
    river guide
    Posts:2719
    Avatar

    --
    05-05-2010 06:37 AM
    HI, yes you could. If it's on a different server, you will need to create a linked server to it and then write to that SQL table. Here are the instructions (so to speak) for setting up linked server,etc. (a gentleman posted this on the forum post a while back but I saved the document so here it is again):

    Select Distinct CentreName as QuestionOption, CentreName as QuestionOptionValue FROM OPENDATASOURCE('SQLOLEDB', 'Data Source=pro3;User ID=removed;Password=removed').abcuniforms.dbo.staff Where CentreState = '$(ABCState)' And Deleted = 0 And Password Like '%childcare.com.au%' Order by CentreName ASC

    I am thankful for sites like this that really try to help. I have been struggling to call a stored proc from a linked server when the calling server is SQL 2005 and the linked server is SQL 2000. After a lot of reading and experimenting I found the solution, which I have laid out in simple steps below. Good Luck!

    – Add a linked server
    EXEC sp_addlinkedserver
    @server=’BOB’,
    @srvproduct=”,
    @provider=’SQLOLEDB’,
    @datasrc=’SERVER’,
    @catalog = ‘Northwind’

    – get a list of linked servers
    EXEC sp_linkedservers

    – add linked server login (this user and password has already been created on linked server)
    EXEC sp_addlinkedsrvlogin ‘BOB’, ‘false’, NULL, ‘userlogin’, ‘password’

    EXEC sp_serveroption @server=’BOB’, @optname = ‘rpc’, @optvalue=’true’
    EXEC sp_serveroption @server=’BOB’, @optname=’rpc out’, @optvalue=’true’

    –see all linked servers and status
    EXEC sp_helpserver

    – perform query against linked server
    SELECT * FROM OPENQUERY (BOB, ‘SELECT * FROM customers’)

    – execute stored proc on Linked Server
    declare @CustomerID char(50)
    EXEC BOB.Northwind.dbo.CustOrderHist ‘ALFKI’

    – drop linked server logins (must be done prior to droping linked server)
    EXEC sp_droplinkedsrvlogin ‘BOB’, NULL

    – drop linked server
    EXEC sp_dropserver ‘BOB’

    -- David

    Benjamin PerezUser is Offline
    going with the flow
    going with the flow
    Posts:55
    Avatar

    --
    05-05-2010 06:47 AM
    David,

    Thank you for the fast response, so do I have to use this code on the SQL completion event, or do I connect first with External DB Connection under module configuration?
    David ToUser is Offline
    river guide
    river guide
    Posts:2719
    Avatar

    --
    05-05-2010 07:05 AM
    HI, well to create the linked server, you would need to go to Host / SQL or use SQL Management Studio. Also create your stored procedure there. Then in your form completion event, just all the stored procedure. -- David
    Benjamin PerezUser is Offline
    going with the flow
    going with the flow
    Posts:55
    Avatar

    --
    05-05-2010 07:14 AM
    David,

    Thank you very much.
    You are not authorized to post a reply.


     
     

    Join our mailing list...

    Get current news and events the easy way
    Subscribe Me

    Recent Blogs...

     
    Copyright 2005 - 2011 by Data Springs, Inc.
     
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi