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!

Where is connection string for SQL question validation?
Last Post 03-31-2010 01:32 AM by JamesC. 4 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
JamesCUser is Offline
skipping stones
skipping stones
Posts:14
Avatar

--
03-25-2010 11:21 PM

    In the question validation there is a field for "Validation SQL Query" but no field for the connection string.

    In the form completion events for sql there is the connection string.

    Where do I specify the connection string of the question validation?

    Thanks,

    James.

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

    --
    03-26-2010 06:32 AM
    HI, do you need to specify a connection string here? If you run the query under Host / SQL will it work? If so, you won't need a connection string then. -- David
    JamesCUser is Offline
    skipping stones
    skipping stones
    Posts:14
    Avatar

    --
    03-28-2010 08:30 PM
    The query is run against a different database than the actual dnn db. We have a form to catch user data to our own system, and this the case that user must select a user id and we need to check it is unique against our own CRM system, not against any dnn tables.
    David ToUser is Offline
    river guide
    river guide
    Posts:2719
    Avatar

    --
    03-30-2010 10:59 AM
    Hi, is the database on the same server as your DNN database? If so, you don't need a connection string. On the other hand if it's on another server altogether, then can you follow the example below to set up a linked server and then you should be able to call a stored procedure to select from that server. Thanks. -- David

    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’
    JamesCUser is Offline
    skipping stones
    skipping stones
    Posts:14
    Avatar

    --
    03-31-2010 01:32 AM

    OK this is good solution. In my case it was on the same server so I was missing the [MyDBName].[dbo], from in front of the stored procedure name.

    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