I just realized that my Ranking column in the Character table has ranks of all the characters set to 1 but my website's ranking page shows the ranks properly maybe because of the script.
They all got set to 1 / started getting set to 1 after I tried No Life X's MPOG web once, where we had to execute the following script:
I'm guessing it's somewhere in the red part. I could change the column and make it number the characters' ranking in increasing order but that wouldn't be the actual rank.Code:/* September 10 200918:52:52 User: Nolife_x Server: PC-DE-GERRY\SQLEXPRESS Database: GunZDB Application: Fix the player ranking page. */ /* To prevent any potential data loss issues, you should review this script in detail before running it outside the context of the database designer.*/ BEGIN TRANSACTION SET QUOTED_IDENTIFIER ON SET ARITHABORT ON SET NUMERIC_ROUNDABORT OFF SET CONCAT_NULL_YIELDS_NULL ON SET ANSI_NULLS ON SET ANSI_PADDING ON SET ANSI_WARNINGS ON COMMIT BEGIN TRANSACTION GO ALTER TABLE dbo.Character ADD Ranking int NULL GO ALTER TABLE dbo.Character ADD CONSTRAINT DF_Character_Ranking DEFAULT 1 FOR Ranking GO COMMIT
So how do I change to column back to normal so that the Ranking column shows proper ranks of all the characters?
Please help me out, I have no clue on how to do it and really need to fix it.
Thanks.


Reply With Quote


