Michael,
Still no joy, I'm afraid. Ran the script you provided. Received the following messages:
System.Data.SqlClient.SqlException: Cannot drop the procedure 'dbo.DeleteSurveyResultData', because it does not exist or you do not have permission. 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(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) drop procedure dbo.DeleteSurveyResultData System.Data.SqlClient.SqlException: Incorrect syntax near 'GO'. 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(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) DROP TABLE dbo.Surveys GO
Went into the database. The procedure 'dbo.DeleteSurveyResultData' did not exist. The table 'dbo.Surveys' was there so I renamed it to 'dbo.Surveys_bak'. Then I tried to install the survey module again. Got the following errors:
StartJob Begin Sql execution
Info Executing 03.01.00.SqlDataProvider
StartJob Start Sql execution: 03.01.00.SqlDataProvider file
Failure SQL Execution resulted in following Exceptions:
System.Data.SqlClient.SqlException: There are no primary or candidate keys in the
referenced table 'dbo.Surveys' that match the referencing column list in the foreign key
'FK_SurveyOptions_Surveys'. Could not create constraint. See previous errors. 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(TdsParserStateObject
stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand
cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler,
TdsParserStateObject stateObj) at
System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean
async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult
result, String methodName, Boolean sendToPipe) at
System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at
DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at
DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) if
not exists (select * from dbo.sysobjects where id =
object_id(N'FK_SurveyOptions_Surveys') and OBJECTPROPERTY(id, N'IsForeignKey') = 1)
ALTER TABLE dbo.SurveyOptions ADD CONSTRAINT FK_SurveyOptions_Surveys FOREIGN
KEY ( SurveyID ) REFERENCES dbo.Surveys ( SurveyID ) ON DELETE CASCADE NOT FOR
REPLICATION
EndJob End Sql execution: 03.01.00.SqlDataProvider file
Failure ExceptionSystem.NullReferenceException: Object reference not set to an
instance of an object. at DotNetNuke.Common.Utilities.Config.AddCodeSubDirectory(String
name) at
DotNetNuke.Modules.Admin.ResourceInstaller.PaDnnInstallerBase.CreateModuleFile(PaFile
File, PaFolder Folder) at
DotNetNuke.Modules.Admin.ResourceInstaller.PaDnnInstallerBase.CreateFiles(PaFolder
Folder) at
DotNetNuke.Modules.Admin.ResourceInstaller.PaDnnInstallerBase.Install(PaFolderCollection
folders) at DotNetNuke.Modules.Admin.ResourceInstaller.PaInstaller.Install()
Not sure what to try next - any thoughts?