tags:

views:

12

answers:

1

Hi There,

We have an old ASPsite that has been working fine for years with a MY SQL database. All of a sudden last week lots fo SQL queries stopped working.

The database has a table called 'members' but the code calls 'Members'. It appears the queries used to work regardless of case sensitivity on the table names, but something has changed recently somewhere to enforce case.

This has me stumped as the site has not been touched in years, the server config hasn't changed & the database provide has not changed anything.

Is there any simple way to ignore case for an ASP site (without editing lots fo files :)

Thanks

Ben

+1  A: 

Have a look at this page from the manual to learn about case-sensitivity and identifiers in MySQL.

Someone may have switched the lower_case_table_names toggle, or (as webdestroya comments) moved the database server from a case-insensitive OS (e.g. Windows) to a case-sensitive OS (e.g. Linux).

ChristopheD
Hi there, thank you for the tip, I will talk to the ISP more, tehir initial comment was that nothing had moved or changed but i agree, they must have doen something!
So my horrible host 'Fasthosts' are claiming nothing at all has changed.I've solved this by moving the database to a MySQL instance running from an existing Windos box :) A bit of a cheat but it works.