Upgrade 6->7 SQL edition
Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=2022
Printed Date: 03 April 2026 at 1:00pm Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: Upgrade 6->7 SQL edition
Posted By: NickB
Subject: Upgrade 6->7 SQL edition
Date Posted: 23 April 2003 at 12:42pm
|
I did upgrade to 7 but it asked me to create a new DB. All my previous posts are lost. I have attempted a DTC but no luck. The tables are too different.
I also have another question: How do you put a small box on the main page showing the latest posts?
Otherwise I love the product.
|
Replies:
Posted By: WebWiz-Bruce
Date Posted: 23 April 2003 at 12:51pm
Use the upgrade tool form the download page
------------- https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting
|
Posted By: glypher
Date Posted: 23 April 2003 at 1:31pm
|
hey borg...
SQL not access.
I'm about to run into the same situation. I was just about to start writing a 6.34 -> 7 SQL converter (to be used in query analyzer). But if you know of someone that has the scrips done up already, let me know.
------------- glypher said so.
http://www.gainesvillebands.com - GainesvilleBands.com
|
Posted By: NickB
Date Posted: 23 April 2003 at 1:51pm
|
I can't wait to test your script.
|
Posted By: glypher
Date Posted: 23 April 2003 at 2:45pm
|
whoa there nick!
i wasn't planning on voluenteering for this undertaking just yet.
i was hoping some SQL monkey had done it already.
------------- glypher said so.
http://www.gainesvillebands.com - GainesvilleBands.com
|
Posted By: glypher
Date Posted: 23 April 2003 at 9:46pm
|
sooo... Since noone stepped up.
Can i get a quick show of hands if you want this converter?
that is converting SQL V6.34 to SQL V7
if i dont get more than 10 people wanting it, or offers of sex I'm not even gonna bother.
------------- glypher said so.
http://www.gainesvillebands.com - GainesvilleBands.com
|
Posted By: MadDog
Date Posted: 23 April 2003 at 10:09pm
|
Im interested :)
I would even send ya a few bucks if you made it work 
------------- http://www.iportalx.net" rel="nofollow">
|
Posted By: PrimeraRacer
Date Posted: 24 April 2003 at 7:28am
|
I'm definately interested!! Would save my life. Would need it to be an ASP script that your run on the server though cos I dont have direct access to the server via Enterprise manager or anything.
Cheers
Kev
|
Posted By: Dini
Date Posted: 25 April 2003 at 1:09pm
|
Yes! It would be great if there were a 6 to 7 conversion script. Query Analyzer version is fine by me.
|
Posted By: shovel
Date Posted: 25 April 2003 at 2:56pm
|
Hey, sounds great to me, too!! Sorry, no sex offered. 
Jim
|
Posted By: AllenHarkleroad
Date Posted: 27 April 2003 at 12:27am
|
Yes a 6.x to 7 upgrade for SQL would be great!
|
Posted By: pstanley
Date Posted: 27 April 2003 at 7:17pm
|
YES !!! I need it also....
Thank YOU !!!!
|
Posted By: dyt4
Date Posted: 30 April 2003 at 2:40am
yess I also need it
|
Posted By: Thunder7
Date Posted: 30 April 2003 at 12:15pm
|
AllenHarkleroad wrote:
Yes a 6.x to 7 upgrade for SQL would be great! |
Would be helpful to know what I am suppose to do in order to mod the DB for v7. All I get is locked threads and telling me to search for info...and I do and all I find is more people asking the same question with no answers other than it has been covered.
I am NOT a SQL person. I only have this software running on it that I control and can modify the DB however I want. I just need to know how, what, procedures, info. Anything at this point.
|
Posted By: Nick-V
Date Posted: 30 April 2003 at 5:47pm
|
There was an SQL upgrade script to version 7 beta 3 I seem to remember....has anyone got a 6.34 to 7.01 solution yet. Can't use 7 without my data !
|
Posted By: DaFool
Date Posted: 30 April 2003 at 7:41pm
Posted By: PK95
Date Posted: 10 May 2003 at 11:43pm
Posted By: ben999
Date Posted: 11 May 2003 at 8:27am
|
I would deffinately be interested!
|
Posted By: sindustry
Date Posted: 13 May 2003 at 9:54pm
|
Yes, I too would be interested! I may be able to float you a couple dinero too!
|
Posted By: ronhof
Date Posted: 14 May 2003 at 2:33pm
|
Hi there guys and gals.
I just have to comment on this issue.
If -boRg- don't have time to fix upgrades to existing users it is OK for me, cause I know he then uses valuable time coding new features and fixing bugs. (Or drink beer)
The making of SQL upgrades scripts should/could probably be done by ourself. The users of WWF.
That said.... I have been adding some of the newest changes to the v 7.01 .sql scripts initially posted by Str8Dog, but need someone to test if they are doing the _thing_ right.
So anyone interested in giving it a try? It follows the same procedure as the inital beta 4 scripts, but with one minor change. Creation of all the SP's are now done by one single script.
Run it in the SQL Query Analyzer in the numeric order.
Please test it and comment changes below as it is probably not 100% yet.
IMPORTANT: DON'T DO THIS WITHOUT MAKING A BACKUP FIRST. We ran it on our servers without any hassle, but don't take any chances.
NOTES: 1.) Every user is placed in the _Newbie_ group and the Number of posts are also copied as well. This causes every user to _enter_ the right ladder group when he does his first posting after upgrade.
2.) The encryption .asp pages encrypts 100 password at a time, and its just to move back and click once more until you're done, even if the text tell you not to...
Thanks to Str8Dog for sharing his copyrighted material with all of us. He's my hero now....at least for some days to come...
PAYMENT If someone feels that they wish to share some of their funding, please feel free to PM me, and I will tell you what to spend your money on. (besides donations to -boRg-) No point in spending money without getting something 'more' back - right....
Best regards - ronhof - admin MyWgi.com http://www.mywgi.com - http://www.mywgi.com (Username: ronhof)
The zipfile can be downloaded from: http://www.mywgi.com/WWF_Upgrade_6_34_to_7_01.zip - http://www.mywgi.com/WWF_Upgrade_6_34_to_7_01.zip
Don't forget to PM me then, ok?
------------- Life stinks - then you die....
|
Posted By: PK95
Date Posted: 15 May 2003 at 10:56pm
|
Hi. I used this script (forum.securitylab.ru), and found 2 error.
1. Does'nt create table tblguest name
2. In table tbltopic Does'nt set default value for column Moved_ID
|
Posted By: ronhof
Date Posted: 16 May 2003 at 4:44am
Hi everybody.
1.) The tblGuest name .sql query is included in the .zip file so i guess there was some error on the first release, maybe.
2.) The default (0) for column Moved_ID has now been updated.
Download here: http://www.mywgi.com/WWF_Upgrade_6_34_to_7_01.zip" target=z9z16_blank>http://www.mywgi.com/WWF_Upgrade_6_34_to_7_01.zip
------------- Life stinks - then you die....
|
Posted By: Nick-V
Date Posted: 27 May 2003 at 5:58am
|
Some useful info for SQL 6.34 to 7.01 upgraders http://forums.webwiz.net/forum_posts.asp?TID=2870&KW=Nick%2DV&PN=0&TPN=2 - here .
|
Posted By: drjamez
Date Posted: 28 May 2003 at 11:19am
|
THANK YOU!
Aside from seemingly not converting the Private Messages, this modified set of scripts worked like a dream!
I made a backup of the 6.34 SQL database, but never needed it as the in-place upgrade worked beautifully! For end users: remember to run the SQL files in the order listed by file/directory name, and then copy and run the two ASP files into the OLD 6.34 Admin directory *before* copying up the new 7.01 forum files. (They might work after the fact, but why tempt fate?) Also, remember to modify the SQL access file in the Admin directory of the new 7.01 forum and DELETE the SQL setup file from the root folder as that won't be necessary when using these upgrade scripts.
Thank you again!
- James -
|
Posted By: pstanley
Date Posted: 28 May 2003 at 5:32pm
|
Nice job
Thanks
------------- Phil Stanley
Active Server Pages Network
http://www.aspn.us
|
Posted By: larsoncc
Date Posted: 30 May 2003 at 1:27pm
|
OK, I understand that there is an upgrade path that seems to work well....
I have a move coming up in a week or two, plus a vacation. However, if this is still an issue for people after June, I offer...
2 things, in terms of what I can chip in:
1. A test server to run someone else's scripts on. In other words, I can tell you if it works for me. I might also be convinced to run an update for someone else?
2. ASP-izing the whole process, IF POSSIBLE. I'll need to check the contents of the DTS packages, etc.
I'm going to have to become fairly familiar with the whole structure in a few months ANYWAY, so might just as well dive in.
Hey - can anyone tell me off hand if the URLs are FORWARD compatible? In other words, am I going to have a world of broken links when I do the upgrade?
If so, is there an "equivalency" script that I could use for search/replace within my site to accomodate the new URLs?
|
Posted By: Str8Dog
Date Posted: 30 May 2003 at 5:35pm
ronhof,
thanks for finishing this up for me. I have been so slammed with RL stuff the last couple months.... my personal site has gone to hell in a hand basket and I just didnt have time to finnish it.
------------- http://www.str8dog.com/ - [IMG - http://www.str8dog.com/images/str8dog.gif -
I wasn't born with enough middle fingers.
|
Posted By: Nick-V
Date Posted: 30 May 2003 at 7:40pm
|
The URLs are not compatible if you are asking if links between posts will still work....they won't but can be fixed.
The asp page names are different as are the parameter names and syntax. However, a careful handful of search and replace in the threads file seems to sort it out.
|
Posted By: maingray
Date Posted: 02 June 2003 at 4:09pm
|
Would this alos work from 6.0 to 7.01, rather than from 6.34?
|
Posted By: BrownGhost
Date Posted: 28 June 2003 at 4:40am
|
yes please.. sql converter
|
Posted By: rbrown70
Date Posted: 04 July 2003 at 11:20pm
|
Ok, for anyone that is interested...
I have created two options for updating your SQL databases from v6.34 to v7.
1. If you have access to iSQL or some SQL execution agent, I can zip and send you the scripts and a short set of instructions on how to convert.
2. If not, I will finish a couple of pages by Sunday (7/6) that will also perform the conversion.
This conversion copies EVERYTHING over, no loss (that I have found), including user permissions for forum moderators! (moderators currently assigned to moderate all forums are automatically assigned to the default Moderator group and permissions for the moderator group are assigned to all forums, any users with specific forum moderator access are added as individual permission overrides for that forum).
Also, the user groups are reassigned based on the default values in the groups file (40 and 100). I haven't looked through the WWF code enough to see if users are automatically recalculated when you change them in the Groups listing.
There is an ASP script that must be run in order to fix all the passwords to the new encryption.
Basically, the procedure is...
1. Run the 'Save Current Data' procedure 2. Run the Web Wiz Forums SQL Setup page 3. Run the 'Convert Data' script or page 4. Run the 'Update Passwords' page 5. Go to the admin area and 'Update Post and Reply Counts' 6. Test everything, see that it works. If everything is ok, run the 'Delete Saved Data' script or page.
If anyones interested, please email at mailto:rbrown@easylift.org - rbrown@easylift.org and I will email you the scripts/pages.
If one of the moderators here want to post it all on the site for people to download, email me also and I'll send it to you.
------------- Richard Brown
|
Posted By: BrownGhost
Date Posted: 05 July 2003 at 2:58am
|
Thx.. but we dit this..
Turend off Encryption and made some changes.. intigratet the forum to our own webside userdatabase and stuff :)
|
Posted By: crusad3r
Date Posted: 22 July 2003 at 12:50pm
|
It apears that there are some problems with the password conversion scripts. I have about 500 users on my forum and some of them the password after encrypted does not work. I have not been able to nail down exactly what is causeing this but I know around 1/3 of users can not login now. I have to go and reset the password from the user edit page to get their account working again. Not a big deal but I thought I would let you know.
cRusad3r
|
Posted By: rbrown70
Date Posted: 22 July 2003 at 1:28pm
|
crusad3r, the password is completely case-sensitive now with the new version of Web Wiz Forums. That *might* be the problem, unless you have used a coverter to move the forums to the new version and there is a specific problem with that.
I now have had 5 users request the conversion script/asp page I wrote and everyone says that it worked like a charm, moved everything over and have reported no problems.
------------- Richard Brown
|
Posted By: Nick-V
Date Posted: 22 July 2003 at 6:15pm
|
I believe the password script works on batches of 100 users to get around a script timeout issue. Despite the warning message it needs running several times (depending how many users you have).
If you like, monitor the results by checking the relevant fields in the author table.
|
Posted By: shang
Date Posted: 28 August 2003 at 3:37am
|
ALL:
I want to get v6.34 to 7.01 database convert program(scripts/pages) ,thanks!
pls send mail to me .
mailto:shangg@vip.sina.com - shangg@vip.sina.com
|
Posted By: Nick-V
Date Posted: 28 August 2003 at 8:15am
|
Check this http://forums.webwiz.net/forum_posts.asp?TID=2870&PN=1&TPN=2 - http://forums.webwiz.net/forum_posts.asp?TID=2870&PN=1&TPN=2
|
Posted By: Matt270581
Date Posted: 09 September 2003 at 11:26am
|
ronhof wrote:
Hi everybody.
1.) The tblGuest name .sql query is included in the .zip file so i guess there was some error on the first release, maybe.
2.) The default (0) for column Moved_ID has now been updated.
Download here: http://www.mywgi.com/WWF_Upgrade_6_34_to_7_01.zip" target=z9z16_blank>http://www.mywgi.com/WWF_Upgrade_6_34_to_7_01.zip
|
Thanks ronhof. Your a Genius. Made my job of updating my 6.34 forum to 7.01 almost seamless.
|
Posted By: DaFool
Date Posted: 10 September 2003 at 9:34pm
|
i can't find the WWFSharp.sln file? Am I missing something here?
|
Posted By: phaderus
Date Posted: 11 September 2003 at 2:01am
|
Could I take a WWF 6.11. Access driven forum and convert it SQL using DTS, and then copy the 6.11 SQL db using the procedures I have read in previous post?
Thank you.
Phaderus
|
Posted By: phaderus
Date Posted: 12 September 2003 at 5:58pm
|
I it looks like I am close to doing something I doubted "I" could do. I transfered a WWF 6.11 forum that used Access as it datbase, and transfered it to 7.11 using our SQL server. We will now be able to have more users at one time and will enjoy some of the new functions in 7.11 The Scripts from str8dog where priceless in this endeavour. Every thing worked fine with the exception of the "2_StoredProcedures.sql" script. The last few linew returned back back to querry analyzer after it ran the script was
Updating dbo.wwfSpModerator Updating dbo.wwfSpLastAllForumsAuthorAndDate Updating dbo.wwfSpCheckUserIsModerator The database update failed
The code that produced this was
PRINT 'Updating dbo.wwfSpCheckUserIsModerator' GO IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION GO IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END GO if exists (select * from sysobjects where id=object_id('[dbo].[wwfSpCheckUserIsModerator]') and OBJECTPROPERTY(id, 'IsProcedure')=1) drop procedure [dbo].[wwfSpCheckUserIsModerator] GO IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION GO IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END GO
GO IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION GO IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END GO
IF EXISTS (SELECT * FROM #tmpErrors) ROLLBACK TRANSACTION GO IF @@TRANCOUNT>0 BEGIN PRINT 'The database update succeeded' COMMIT TRANSACTION END ELSE PRINT 'The database update failed' GO DROP TABLE #tmpErrors
I followed his instructions, with the exception of not using VS.net. Instead I ran the queries in query analyzer. So far everything works. My question is did that one message "The database update failed" is that indicative a error that will show up after I go live to the public with the updated forum?
To copy from Access I used DTS in Enterprise server Manager and imported my Access file to a new SQL databse.
If anyone want to look at the forum and or test it for bugs they can get to it at
http://www.intermatwrestle.com/forumsql/ - http://www.intermatwrestle.com/forumsql/
Phaderus
|
Posted By: MarvinBess
Date Posted: 14 September 2003 at 7:12am
|
I've been testing this script on my forum for an upgrade and it's looks like its working prety good (thnx!), But I've got one problem when 'upgrading' the author table, the following error occours:
(10959 row(s) affected)
Creating Table tblAuthor Populating New Category and Dropping Table backup_tblAuthor Server: Msg 8152, Level 16, State 6, Line 6 String or binary data would be truncated.
Can someone give me some clue's?
Thanks in advance, Marvin
|
Posted By: thewebturtle
Date Posted: 19 September 2003 at 8:23pm
|
DaFool wrote:
i can't find the WWFSharp.sln file? Am I missing something here? |
Bump 
|
Posted By: phaderus
Date Posted: 21 September 2003 at 8:20pm
|
You can run the *.SQL files Microsoft Query Analyzer. Just open the files in order and run them by pressing F5
|
Posted By: trashbin
Date Posted: 26 September 2003 at 8:39pm
|
Fantastic work RONHOF......upgraded with no dramas...
Not that this has anything to do with the upgrade but....
I see the avatars are now bigger than how I had them set in V6.34 - is there a way to resize back to 35 x 35 pixels???.
no worries....I see it in skin_file.asp
|
Posted By: larsoncc
Date Posted: 29 October 2004 at 8:15pm
|
I KNOW THIS TOPIC IS OLD, BUT...
MarvinBess wrote:
I've been testing this script on my forum for an upgrade and it's looks like its working prety good (thnx!), But I've got one problem when 'upgrading' the author table, the following error occours:
(10959 row(s) affected)
Creating Table tblAuthor Populating New Category and Dropping Table backup_tblAuthor Server: Msg 8152, Level 16, State 6, Line 6 String or binary data would be truncated.
Can someone give me some clue's?
Thanks in advance, Marvin
|
Yes, the problem here is that the upgrade script makes the tblAuthor fields too small.
To correct this problem, COMMENT OUT the line that has the
"SELECT * INTO backup_tblAuthor FROM tblAuthor"
Then, correct the sizes of the fields, in the script. I've modified my forum, your EXACT results may vary.
User Code needs to be 70 characters.
Home page needs to be 1000 characters.
|
Posted By: Vapor
Date Posted: 02 November 2004 at 2:40pm
Here is the script that I used to import my PMs.
Please note, I made a backup of the PM table called "backup_tblPMMessage".
I also preserved my backup Author table rather than DROPping it.
If you didn't back these tables up, I'm sorry, but you're out of luck.
I'm sure you can find a better way to automate this. This way is an ASP script.
The major "problem" solved by this script is that the PM table uses an
artificial key which is an autonumber field. This does the job of
manually looking up the old user ID #s, and relating those to the new
ID #s, through the unique "Username" field, which exists in both the
old and new Author table.
The jist of the first SQL call is that I've related the backup author
table to the backup PM table TWICE, so that I can later find both the
"To" and "From" addresses.
The rest of the work is done with the ADO find function, so that you're not calling the Author table again and again.
Server.ScriptTimeout = 3000
'This Function is just to replace ' with '' for a DB insert.
Function CleanUp(strGimme)
return replace(strGimme,"'","''")
End Function
Response.Write "Getting Recordsets."
Response.Flush
Dim rsOldPms, rsUser
'I developed a COM+ object that returns a disconnected recordset.
'PLEASE NOTE, it's the SQL call that's important here. You could
'Paste it into your own ADO Recordset call just as easily.
'Also please note: While typing this up, it looks like a mess. I'll
'try to clean the post once it's up.
Set rsOldPms = db.GetRecordSet("SELECT backup_tblAuthor.Username AS
UserIDTo, backup_tblAuthor.Author_ID, dbo.backup_tblPMMessage.PM_Tittle, dbo.backup_tblPMMessage.From_ID, "
& _
"backup_tblAuthor_1.Username AS UserIDFrom,
dbo.backup_tblPMMessage.PM_Message,
dbo.backup _tblPMMessage.PM_Message_Date, " & _
"dbo.backup_tblPMMessage.Read_Post, dbo.backup_tblPMMessage.Email_notify, dbo.backup_tblPMMessage.Author_ID
AS Expr1 " & _
"FROM dbo.backup_tblPMMessage INNER JOIN " & _
"backup_tblAuthor ON dbo.backup_tblPMMessage.Author_ID =
backup_tblAuthor.Author_ID INNER JOIN " & _
"backup_tblAuthor
backup_tblAuthor_1 ON dbo.backup_tblPMMessage.From_ID =
backup_tblAuthor_1.Author_ID")
Response.Write "Got the PM Backup table"
Response.Flush
'Another SQL Call - again, using a COM object, but you could just
'throw this call into a recordset
Set rsUser = db.GetRecordSet("SELECT Author_ID, Username FROM dbo.tblAuthor")
Response.Write "Got the User IDs, User #s
"
Response.Flush
Dim UserIDTo, UserIDFrom, tfReadPost, tfNotify
Response.Write "Writing Messages"
Response.Flush
Do Until rsOldPMs.eof
rsUser.MoveFirst
rsUser.Find "Username = '" &
rsOldPMs("UserIDFrom") & "'"
UserIDFrom = rsUser("Author_ID")
rsUser.MoveFirst
rsUser.Find "Username = '" & rsOldPMs("UserIDTo")
& "'"
UserIDTo = rsUser("Author_ID")
If rsOldPMs("Read_Post") =
True then
tfReadPost = 1
Else
tfReadPost = 0
End If
If
rsOldPMs("Email_notify") = True then
tfNotify = 1
Else
tfNotify = 0
End
If
'This is the INSERT call. Now, you could do it by building up a
'recordset, but this is just how I did it.
db.execute("INSERT INTO dbo.tblPMMessage (From_ID,
Author_ID, PM_Tittle, PM_Message, Read_Post, PM_Message_Date,
Email_notify) "
& _
"VALUES (" & CleanUp(UserIDFrom) & "," & CleanUp(UserIDTo) & "," & CleanUp(rsOldPms("PM_Tittle"))
& "," & CleanUp(rsOldPms("PM_Message")) & "," &
tfReadPost & "," & CleanUp(rsOldPms("PM_Message_Date"))&
"," & tfNotify & ")")
Response.Write " . "
Response.Flush
UserIDFrom = ""
UserIDTo = ""
rsOldPMs.MoveNext
Loop
|
|
|