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 Validation – Database does not exist message
Last Post 09-05-2012 02:18 PM by Mike Schnoebelen. 0 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Not Resolved
Mike SchnoebelenUser is Offline
skipping stones
skipping stones
Posts:8
Avatar

--
09-05-2012 02:18 PM
    We are trying to do the following on a Dynamic Form:
     
    Use SQL validation so when a user submits the form, the validation check takes place, and if it fails - then redirect the user to a different page (canceling out all other completion events such as emails, pdfs, etc.)

    We are getting a “database does not exist message”.

    We know we can reach our database via our connection string as we can:
    1) Successfully run stored procedures to insert records via the form completion event logic
    2) Perform field level lookups to the database to populate a combo box field.

    We want to move the sql insert/uniquecompletionid SP logic over to the SQL validation area to ensure that if a record is not written to the database, the user is informed (and no other completion events occur).

    When we attempt to implement this…we get the following error suggesting that our “TeacherEd” database does not exist (even though we access it through the two methods above).

    We are on the following versions: DF = Ver:4.10.0.5601 / DNN = 6.2.0
    After our declares and sets, we have our stored procedure and @isvalid logic as shown below:

    EXEC [TeacherEd].[dbo].[sp_Entry_LOA_Insert] @UniqueCompletionID, @ResponseDateTime, @UserID, @IPAddress, @FirstName, @LastName, @Email, @School, @Grade, @Content, @Date, @ClinicFaculty, @UnisupVisor, @DateTimeofLeave, @EndDateTimeLeave, @TypeofLeave, @ReasonofAbs

    IF (SELECT COUNT(*) FROM [TeacherEd].[dbo].[Form_Entry_LOA] where UniqueCompletionID = @UniqueCompletionID) = 1

    BEGIN
    SET @isValid= 'True'
    END
    ELSE
    BEGIN
    SET @isValid = 'False'
     END

    The Error that is generated:
     
    Error: Leave of Absence Form is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Database 'TeacherEd' does not exist. Make sure that the name is entered correctly. ---> System.Data.SqlClient.SqlException: Database 'TeacherEd' does not exist. Make sure that the name is entered correctly. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(SqlConnection connection, SqlTransaction transaction, CommandType commandType, String commandText, SqlParameter[] commandParameters, SqlConnectionOwnership connectionOwnership) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at DataSprings.Modules.DynamicForms.SqlDataProvider.GetSQLDefault(String strSQL, String strAltConnection) at DataSprings.Modules.DynamicForms.DynamicQuestionController.GetSQLValidation(String strSQL) at DataSprings.Modules.DynamicForms.DynamicForms.ServerSideValidation() at DataSprings.Modules.DynamicForms.DynamicForms.SubmitForm(Boolean ProcessPaymentNotification, String strResponseID, Boolean blnByPassValidation, Boolean blnSaveForLater) --- End of inner exception stack trace ---

    Any help on this would be awesome.
    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