<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Web Wiz Support and Community Forums : Adding A Topic Automatically Via SQL</title>
  <link>https://forums.webwiz.net/</link>
  <description><![CDATA[This is an XML content feed of; Web Wiz Support and Community Forums : Web Wiz Forums : Adding A Topic Automatically Via SQL]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 03 Apr 2026 20:25:30 +0000</pubDate>
  <lastBuildDate>Tue, 25 Mar 2008 13:40:14 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.08</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forums.webwiz.net/RSS_post_feed.asp?TID=25464</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Web Wiz Support and Community Forums]]></title>
   <url>https://forums.webwiz.net/forum_images/web_wiz_forums.png</url>
   <link>https://forums.webwiz.net/</link>
  </image>
  <item>
   <title><![CDATA[Adding A Topic Automatically Via SQL : The version of the forums is 9.0x  I&amp;#039;ll...]]></title>
   <link>https://forums.webwiz.net/adding-a-topic-automatically-via-sql_topic25464_post132153.html#132153</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=26309">Testin123</a><br /><strong>Subject:</strong> 25464<br /><strong>Posted:</strong> 25&nbsp;March&nbsp;2008 at 1:40pm<br /><br />The version of the forums is 9.0x<DIV>&nbsp;</DIV><DIV>I'll take a look at new_post.asp</DIV><DIV>&nbsp;</DIV><DIV>I guess that's the file containing the functionality I need to mirror.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 25 Mar 2008 13:40:14 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/adding-a-topic-automatically-via-sql_topic25464_post132153.html#132153</guid>
  </item> 
  <item>
   <title><![CDATA[Adding A Topic Automatically Via SQL : Is this SP from V7/8?If so then...]]></title>
   <link>https://forums.webwiz.net/adding-a-topic-automatically-via-sql_topic25464_post132121.html#132121</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=6524">Scotty32</a><br /><strong>Subject:</strong> 25464<br /><strong>Posted:</strong> 22&nbsp;March&nbsp;2008 at 2:09pm<br /><br />Is this SP from V7/8?<br><br>If so then it will need updating as V9 updates more information, as V9 doesnt use SP's.<br><br>If it is your own custom work, then you are missing certen parts.<br><br>I think it maybe easier to look at the file that processes posts and work from that. Or you could just run the Post Count Sync every time you use the SP.<br>]]>
   </description>
   <pubDate>Sat, 22 Mar 2008 14:09:53 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/adding-a-topic-automatically-via-sql_topic25464_post132121.html#132121</guid>
  </item> 
  <item>
   <title><![CDATA[Adding A Topic Automatically Via SQL : Just a guess, but I&amp;#039;d imagine...]]></title>
   <link>https://forums.webwiz.net/adding-a-topic-automatically-via-sql_topic25464_post132119.html#132119</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=27688">stevek_mcc</a><br /><strong>Subject:</strong> 25464<br /><strong>Posted:</strong> 22&nbsp;March&nbsp;2008 at 2:04pm<br /><br />Just a guess, but I'd imagine that the ASP code does some extra actions as well as the basic topic addition. You might be better trying to automate adding the topic by calling the actual login and post pages with a programmatic HTML client.&nbsp;]]>
   </description>
   <pubDate>Sat, 22 Mar 2008 14:04:12 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/adding-a-topic-automatically-via-sql_topic25464_post132119.html#132119</guid>
  </item> 
  <item>
   <title><![CDATA[Adding A Topic Automatically Via SQL : I have a stored procedure to add...]]></title>
   <link>https://forums.webwiz.net/adding-a-topic-automatically-via-sql_topic25464_post132084.html#132084</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=26309">Testin123</a><br /><strong>Subject:</strong> 25464<br /><strong>Posted:</strong> 19&nbsp;March&nbsp;2008 at 3:37pm<br /><br />I have a stored procedure to add a topic from an SQL Server stored procedure:<DIV>&nbsp;</DIV><DIV>CREATE PROCEDURE DS_NewTopic<BR>@Forum_ID int, @Subject varchar(64), @Message varchar(4096)<BR>AS<BR>DECLARE @NewTopicID int<BR>DECLARE @NewThreadID int<BR>DECLARE @Author_ID int</DIV><DIV>-- Set new topic author ID to match for 'testuser':<BR>SET @Author_ID = 15</DIV><DIV>-- Add new topic and retrieve Topic ID:<BR>INSERT tblTopic (Forum_ID, Subject, Priority) VALUES (@Forum_ID, @Subject, 0)<BR>SET @NewTopicID = (SELECT MAX(Topic_ID) FROM tblTopic)</DIV><DIV>-- Add thread and retrieve Thread ID:<BR>INSERT tblThread (Topic_ID, Author_ID, Message) VALUES (@NewTopicID, @Author_ID, @Message)<BR>SET @NewThreadID = (SELECT MAX(Thread_ID) FROM tblThread)</DIV><DIV>-- Update Thread ID's in tblTopic<BR>UPDATE tblTopic SET Start_Thread_ID = @NewThreadID, Last_Thread_ID = @NewThreadID WHERE Topic_ID = @NewTopicID<BR>GO<BR></DIV><DIV>&nbsp;</DIV><DIV>This works reasonably well apart from:</DIV><DIV>1) The post is never shown as the 'Last Post'</DIV><DIV>2) If the post is the only one in a forum the post count stays at zero.</DIV><DIV>&nbsp;</DIV><DIV>How can I modify the above SP to have the&nbsp;topic added 'correctly'?</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV>]]>
   </description>
   <pubDate>Wed, 19 Mar 2008 15:37:38 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/adding-a-topic-automatically-via-sql_topic25464_post132084.html#132084</guid>
  </item> 
 </channel>
</rss>