Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Urgent issue with coding after server upgrade

Author  Topic 

MichelleB
Starting Member

8 Posts

Posted - 2014-02-06 : 23:57:33
Hi my site has been running great for 2 years and now my host has upgraded something lots of my pages are no longer working. i dont know what they did and they are not helping me fix it??

one example when i asked them to help was the got me to change my string which got the page working, but why did i need to do this please. trying to understand and solve all the other errors it has caused on my site.


strSQL = "SELECT `Artist`, LCASE(ROUND((SUM(`Testimonials`.`Rating`) / (COUNT(`Testimonials`.`Rating`)*5) * 100), 0)) AS Rating FROM `Testimonials` GROUP BY `Artist`"

To this:
strSQL = "SELECT `Artist`, cast(LCASE(ROUND((SUM(`Testimonials`.`Rating`) / (COUNT(`Testimonials`.`Rating`)*5) * 100), 0)) as char) AS Rating FROM `Testimonials` GROUP BY `Artist`"

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2014-02-07 : 00:13:20
what is the database ? is it a Microsoft SQL Server ? If it is not, do find out the DBMS that you are using and post at the appropriate forum at dbforums.com

FYI, SQLTeam.com is on Microsoft SQL Server


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -