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!

SQL Driven Options question
Last Post 05-24-2007 07:23 AM by Chad Nash. 3 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Jenn CUser is Offline
wading in the water
wading in the water
Posts:23
Avatar

--
05-14-2007 06:56 AM

    I have a database named 'sfntcweb'. There is a table in it called 'dbo.Brands'. I want to return all rows in this column (in dbo.Brands) called 'Name'.

    So my SQL query to be used in Dynamic Forms is . . .

    SELECT Name AS QuestionOption, Name AS QuestionOptionValue FROM sfntcweb.dbo.Brands Order By QuestionOption

    It works on my local dev PC, but when I tried this on my dev server (which has the exact same DNN and DB set up), the SQL code returned the message "Error in SQL!"

    Can someone point out what am I missing when I am trying to do it on this server?

    Thanks for any insights!

    JennC

     

     

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    05-14-2007 04:41 PM
    If you execute this code under Hots, SQL do you get results? Does the site or database use object qualifiers? You might also try adding 'GO' to the very end of the SQL query.
    gisella airaldiUser is Offline
    new to the springs
    new to the springs
    Posts:2
    Avatar

    --
    05-24-2007 03:30 AM
    I have this sql
    INSERT INTO RequestQuote_Form
    (FORM_sFirstName,FORM_sLastName)
    VALUES
    ('$(FirstName)','$(LastName)') ..when a user enters a single quotation in Firstname or Lastname fields in the form, my sql breaks.. Any idea of how to replace or remove quotations please? thanks!
    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    05-24-2007 07:23 AM
    What version are you running on? It should be replacing ' with ''' before it actually gets executed specifically for this purpose. You might also be able to use the SQL replace function to handle this as well.


    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