Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Error message on new install
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Error message on new install

 Post Reply Post Reply Page  12>
Author
Rusty Stumps View Drop Down
Newbie
Newbie


Joined: 15 April 2009
Location: Fishers, Indian
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rusty Stumps Quote  Post ReplyReply Direct Link To This Post Topic: Error message on new install
    Posted: 15 April 2009 at 7:26pm
I'm receiving the following error message when I click on a sub-forum area:
 
Server Error in Forum Application
An error has occurred while executing SQL query on database.
Please contact the forum administrator.

Support Error Code:- err_SQLServer_get_topics_data
File Name:- forum_topics.asp

Error details:-
Microsoft OLE DB Provider for SQL Server
'ROW_NUMBER' is not a recognized function name.
All other functions seem to work OK. I've done a good deal of Admin work and the database checks out. I've even successfully uploaded my client list into the Forum system.
 
PS: I just downloaded the SQL 2000 version which is what I thought I downloaded before. This error comes from the code for SQL 2005 and above. "ROW_COUNT" is not in SQL 2000.
 
I did a BEYOND COMPARE analysis of both the first download and the SQL 2000 specific download and all the files are identical including the forum_topics.asp. So, it looks like someone possibly overwrote the SQL 2000 version with the SQL 2005 version.Dead


Edited by Rusty Stumps - 15 April 2009 at 10:29pm
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2009 at 11:48am
As far as Im aware, all of the different database versions are exactly the same.

Its just that they are pre-configured for that database, mostly in the "database/database.asp" file (i forget the exact name now, but in that folder).

Make sure that this file is set correctly.

One other difference I believe between MSSQL 2000 and MSSQL 2005 is in the forum_topics.asp file, there is something to select the max records.


For this particular issue, I suspect it maybe that you have Advanced Paging on, again check your database.asp file to check this is turned off if you are running a MSSQL 2000 database.
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2009 at 11:55am
Scotty32 is quite right about you not having the right version.

You are getting this error because you have downloaded the SQL Server 2005/2008 version when you have the SQL Server 2000 version.

You need to download the SQL Server 2000 version and swap the database/database_connection.asp file with the one from that version.

All of the files are the same between the database versions, only the database/database_connection.asp file is different.
Back to Top
Rusty Stumps View Drop Down
Newbie
Newbie


Joined: 15 April 2009
Location: Fishers, Indian
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rusty Stumps Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2009 at 3:46pm

Sorry fellas, you did NOT read my PS that was added to the original post.

I went back and downloaded the SQL 2000 verision. I expanded it in a new directory and did a BEYOND COMPARE between the two sets of files.

They are the SAME. There are no differences between the first set of files I downloaded, which I knew was the SQL 2000 version and the second set which I KNOW are the SQL 2000 version.
 
What it looks like is either the SQL 2000 version has been overwritten by the SQL 2005 version or the link is pointing to the wrong file.
 
I specifically went to the screen with the SQL 2000 button and click on that for the second download.
 
The error is because there is SQL 2005+ code in the file. The function ROW_NUMBER() is not available in SQL 2000. But if I'm downloading the SQL 2000 version, like I know I am, then why is that code in there? It's in both sets of files I downloaded.


Edited by Rusty Stumps - 16 April 2009 at 4:04pm
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2009 at 4:27pm
I did read that you downloaded it and compared the files, which is why I said the only difference was the "database/database_connection.asp" file.

All other files are the exact same, but the SQL statements will be generated differently based on the settings you choose in the above file.

All each version does, is pre-configures the database_connection.asp file for each database type.

I've just downloaded SQL 2000 version my self, and it looks perfectly fine to me.

the part that activates the ROW_NUMBER() is:

    '*** Advanced Paging - Performance Boost ***
    'Set this to true for advanced paging in SQL Server 2005/2008 and mySQL
    'If you use SQL Server 2005/2008 or mySQL this will give a massive performance boost to your forum
    Const blnSqlSvrAdvPaging = False



As I said earlier, this needed to be disabled for 2000, which it is in the file i just downloaded.

So you would need to check that the version you are running has this disabled (set to false).
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2009 at 4:28pm
Sorry Rusty, but you did not read my reply in regards to ALL the files being the same.

Please read back through my previous post that informs you about the differences between the different database versions which are setup in the database/database_connection.asp file.

All the other files are the same in the forum, the only difference between the SQL Server 2005/2008 code and the SQL Server 2000 code is one variable setting in the database/database_connection.asp file.
Back to Top
Rusty Stumps View Drop Down
Newbie
Newbie


Joined: 15 April 2009
Location: Fishers, Indian
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rusty Stumps Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2009 at 4:35pm
Sorry, Bruce,  I also lost my workstation hard drive this morning and have not been able to do a successful restore from the backup from last night. Total frustration all around. I am writing this on my Server. I will look at the connection file and swap it out.
 
But, BEYOND COMPARE showed no difference between the files. Also, the file name is exactly the same. Is that correct?
Back to Top
Rusty Stumps View Drop Down
Newbie
Newbie


Joined: 15 April 2009
Location: Fishers, Indian
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rusty Stumps Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2009 at 4:50pm
Bruce, Thanks, it's fixed now. Sorry for the frustration but as I explained I had a few other issues going and have production I need to do with that workstation. [groan]
 
Walt
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.