I receive these errors when trying to upgrade from 1.8.1 to 1.9.3. Also on the system check before the db upgrade the system is unable to determine the MSSQL version. I am running MSSQL 2005 on a seperate server. Moodle runs fine currently but the upgrade keeps failing. I also tried to manually run the SQL commands on the db server to no avail.
Upgrading Moodle database from version 1.8.1+ (2007070603) to 1.9.3 (Build: 20081015) (2007101530)...
(odbc_mssql): SELECT * FROM moodle_mnet_application WHERE id = '-1'
(odbc_mssql): select c.name,t.name,c.length from syscolumns c join systypes t on t.xusertype=c.xusertype join sysobjects o on o.id=c.id where o.name='MOODLE_MNET_APPLICATION'
(odbc_mssql): INSERT INTO moodle_mnet_application ( NAME, DISPLAY_NAME, XMLRPC_SERVER_URL, SSO_LAND_URL ) VALUES ( 'moodle', 'Moodle', '/mnet/xmlrpc/server.php', '/auth/mnet/land.php' )
(odbc_mssql): select SCOPE_IDENTITY()
(odbc_mssql): INSERT INTO moodle_mnet_application ( NAME, DISPLAY_NAME, XMLRPC_SERVER_URL, SSO_LAND_URL ) VALUES ( 'mahara', 'Mahara', '/api/xmlrpc/server.php', '/auth/xmlrpc/land.php' )
(odbc_mssql): select SCOPE_IDENTITY()