Delimiters in SQL Reporting Services utilizing ODBC Connector 3.51
"Eric Liu" <[email protected]> Wed, 29 Jul 2009 10:16:50 -0700
| Newsgroups | gmane.comp.db.mysql.odbc |
|---|---|
| Message-ID | <[email protected]> |
I was wondering if anyone can help me out with this problem that I've been encountering. I'm using Report Builder 2.0 (a free downloadable SQL Server 2008 report builder) and I've been successful in getting the program to connect to a MySQL 4.0.x database through the use of the ODBC Connector 3.51. I can do standard queries with no problem. The problem now is that I'm trying to do a simple ranking function: SET @R=0; SELECT @R:=@R+1 AS Rank, Singer, SongName FROM music_play_info ORDER BY COUNT DESC; Unfortunately, no matter how I try to format the semicolon (with it, without it, etc), it gives me an error when it tries to parse it: ERROR [42000] [MySQL][ODBC 3.51 Driver][mysqld-4.0.26-nt-log]You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '; SELECT @R:=@R+1 AS Rank, Singer, SongName Any ideas how I can get this compound statement to work through the ODBC connector? Thanks, -Eric Liu