Joomla 3.6.4 with MS SQL 2014 sql syntax errors

This forum is for issues with installing Joomla! 3.x on IIS webservers.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
twhite8154
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Dec 13, 2016 7:45 pm

Joomla 3.6.4 with MS SQL 2014 sql syntax errors

Post by twhite8154 » Tue Dec 13, 2016 8:33 pm

Installed Joomla 3.6.4 on IIS 7 with a MS SQL Server 2014 database. Whenever I attempt to actually do anything from the control panel (create a new user, create an article, create a menu, etc.) I get this error:

[Microsoft][SQL Server Native Client 11.0][SQL Server]No column name was specified for column 1 of 'A'. SQL=SELECT * FROM ( SELECT count(id) , ROW_NUMBER() OVER (ORDER BY (select 0)) AS RowNumber FROM #__usergroups) A WHERE A.RowNumber BETWEEN 1 AND 1

I am logged in as the superuser.

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: Joomla 3.6.4 with MS SQL 2014 sql syntax errors

Post by sovainfo » Thu Dec 15, 2016 1:06 pm

Suspect it to want count(id) AS count_id, ROW_NUMBER...

When that works you need to find the statement that =>select('count(id)..... and add the alias for the count function.
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!

twhite8154
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Dec 13, 2016 7:45 pm

Re: Joomla 3.6.4 with MS SQL 2014 sql syntax errors

Post by twhite8154 » Thu Dec 15, 2016 2:13 pm

I know what the correct syntax for the SQL statement is. My question is, does Joomla have a fix for it?

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: Joomla 3.6.4 with MS SQL 2014 sql syntax errors

Post by sovainfo » Thu Dec 15, 2016 2:31 pm

Both were not clear from your orignal post!

Haven't found anything on github, doubt that there will be something done about it considering the poor support for MSSQL within the Joomla project. Despite the fact this a generic issue, not MSSQL specific. But you never know, everything starts with an issue on issues.joomla.org.
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!


Locked

Return to “Joomla! 3.x on IIS webserver”