Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumStrange Issue with forumsStrange Issue with forums
Previous
 
Next
New Post
7/25/2008 8:59 AM
 

Thank you again Matthias, I suspected that might be the case. I'm more familiar with LAN and WAN networking technologies than with Web hosting etc. I believe you can figure out the Post id from the URL, correct? If so ... the end of the URL is postid/365/Default.aspx which I presume to mean that the ID is 365.

If that is how you can find the post ID, let me know and I'd be willing to give the script a try.

 
New Post
7/25/2008 2:18 PM
 

OK I have a script you can run in Host / SQL  coppy it and run it as a script (tehre is a checkbox) !

/**** Start Script ***/

Delete From {databaseOwner}{objectQualifier}Forum_Posts where PostID = 365

Go

/**** End Script *****/

 
New Post
7/25/2008 2:35 PM
 

I get an error:

System.Data.SqlClient.SqlException: Invalid object name 'dbo.ForumPosts'. 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) /**** Start Script ***/ Delete From dbo.ForumPosts where PostID = 365

 

I tried it with the comments and without and got similar errors each time. (And I did have the checkbox flagged)

 
New Post
7/25/2008 5:50 PM
 

Well sorry, go back I missing a "_" in the script.  I edit it in the post above, please retry it.  Is the better way about other users do then not copy the wrong code.

 
New Post
7/25/2008 9:38 PM
 

Ok. new error on that one:

System.Data.SqlClient.SqlException: The DELETE statement conflicted with the REFERENCE constraint "FK_Forum_Threads_Forum_Posts". The conflict occurred in database "C8913_dnn", table "dbo.Forum_Threads", column 'LastPostedPostID'. The statement has been terminated. 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) Delete From dbo.Forum_Posts where PostID = 365

 

 

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumStrange Issue with forumsStrange Issue with forums


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out