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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

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

Starting Member

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")


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?

Starting Member

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

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

1834 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  
 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.02 seconds. Powered By: Snitz Forums 2000