SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Type mismatch -- plaese help urgently
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MichelleB
Starting Member

Australia
8 Posts

Posted - 02/06/2014 :  00:34:24  Show Profile  Reply with Quote
hi i have a page that worked fine till last night, which shows availabilities for an artist.

now when search it comes up with an error

Microsoft VBScript runtime error '800a000d'
Type mismatch
PromotionalDisplay2.asp, line 116

this is line 116 in the page
ArrRating(i) = UCASE(objRS1("Artist")) & "|" & objRS1("Rating")

Loop
objRs1.Close

i have not changed my page and it is also effecting other pages that pull this information someone pleaseeee help ive been at it for 9 hrs now and have not found anything?

is it an error in a field in the db?
quote:

MichelleB
Starting Member

Australia
8 Posts

Posted - 02/06/2014 :  00:50:04  Show Profile  Reply with Quote
this also comes up on an very similar page i have that does the avails as well as an error

SELECT `Artist`, LCASE(ROUND((SUM(`Testimonials`.`Rating`) / (COUNT(`Testimonials`.`Rating`)*5) * 100), 0)) AS Rating FROM `Testimonials` GROUP BY `Artist`
Microsoft VBScript runtime error '800a000d'

Type mismatch

/public/PromotionalDisplay.asp, line 115
Go to Top of Page

Avinaash.S786
Starting Member

9 Posts

Posted - 02/06/2014 :  04:42:07  Show Profile  Reply with Quote

If you still get this error, I think you can try it by removing that 'LCASE' and use to_char in that sql query

Avinaash S

Edited by - Avinaash.S786 on 02/07/2014 04:50:53
Go to Top of Page

Bustaz Kool
Flowing Fount of Yak Knowledge

USA
1770 Posts

Posted - 02/06/2014 :  13:25:39  Show Profile  Reply with Quote
What data types are the Artist and Rating in the database? I suspect that Rating needs to be converted to a string in the application.

===============================================================================
There are two kinds of light -- the glow that illuminates, and the glare that obscures. -James Thurber (1894-1961)

Edited by - Bustaz Kool on 02/06/2014 13:26:19
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.11 seconds. Powered By: Snitz Forums 2000