Re: MS SQL 2000
Hello,
Access and MySQL has some differences in SQL syntax (not too many for basic usages). For example, Access does not support "limit" selector like MySQL does. So, whenever I need to use limit selector, I put an if statement like below (default.asp line 179):
If DatabaseType = "MySQL" Then
SQL = SQL & " limit " & DisplayedRecordsLow & ", " & SettingsTopicsPerPage
End If
limit selector is used whenever the data is divided into pages; like topic list on default.asp, message list on topic.asp and member list on members.asp. For Access there is an if statement at line 239 like below for dividing the data into pages:
If DatabaseType = "Access" and Not Topics.Eof Then
Topics.Pagesize = SettingsTopicsPerPage
Topics.AbsolutePage = Page
End If
I don't know what way SQL Server 2000 supports but you have to change these lines accordingly. You can add a line like
DatabaseType = "SQLServer2000"
to the inc_database_path.asp just near the similar lines for Access and MySQL databases. And add an "or" expression to the if statements I've shown you above. For example, say the Access way is the way SQL Server 2000 works. Then change the above statement as:
If (DatabaseType = "Access" or DatabaseType = "SQLServer2000") and Not Topics.Eof Then
Topics.Pagesize = SettingsTopicsPerPage
Topics.AbsolutePage = Page
End If
If neither the Access nor the MySQL way works for SQL Server 2000, then you should write a similar if statement on its own to an appropriate place, for dividing the data into pages. I have not used SQL Server before, so I can't say.
You should do these changes for a few more places (not too many, I guess, 3 or 4 more places and once you made one of them the rest will be easy).
I don't remember if there were any other incompatibilities than limit selector between Access and MySQL. I guess no.
After handling these changes it will probably work. Let me know because I'm also curious whether it will work.