Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Database: MS SQL Server
 problem import from access 2000 into MS SQL 2000
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

pokemon
Junior Member

151 Posts

Posted - 11 June 2004 :  14:00:15  Show Profile
After i'm importing from access 2000 to MS SQL 2000. Everything is running fine, but when i post new topic or reply topic. I"m getting this error.

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'WHERE'.
/student/phorum/database_backup/post_info.asp, line 1171


'## Forum_SQL - Update Last Post and count
strSql = "UPDATE " & strActivePrefix & "TOPICS "
strSql = strSql & " SET T_LAST_POST = '" & DateToStr(strForumTimeAdjust) & "'"
strSql = strSql & ", T_REPLIES = T_REPLIES + 1 "
strSql = strSql & ", T_LAST_POST_AUTHOR = " & rs("MEMBER_ID")
strSql = strSql & ", T_LAST_POST_REPLY_ID = " & NewReplyID
if Request.Form("lock") = 1 and ForumChkSkipAllowed = 1 then
strSql = strSql & ", T_STATUS = 0 "
end if
strSql = strSql & " WHERE TOPIC_ID = " & Topic_ID

my_Conn.Execute (strSql),,adCmdText + adExecuteNoRecords

would anyone knows how to fix this problem?

Also, Would you please explain what is the different between. Import in DTS SQL 2000 and upsizing tool. I don't know if I dit anything wrong when importing. Thanks for any help

Edited by - ruirib on 11 June 2004 17:19:16

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 June 2004 :  17:19:01  Show Profile  Send ruirib a Yahoo! Message
Migration from Access to SQL Server has been explained many times in the Help: MS SQL Server forum. Do a search and perform the migration as recommended. Your problems result from the way you migrated.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.17 seconds. Powered By: Snitz Forums 2000 Version 3.4.07