473,326 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Error after upgrading from MSDE to SQL 2005

1
Hello,

I have a job for a customer, to find out why the following query fails, and i can't really find any reason.

The customer migrated from MSDE (Sql 2000) and after that the following query fails

SELECT DISTINCT U.UNITID FROM UNIT U INNER JOIN UNITINV UI0 ON U.UNITID = UI0.UNITID INNER JOIN INV I0 ON UI0.INVID = I0.INVID INNER JOIN UNITINV UI1 ON U.UNITID = UI1.UNITID INNER JOIN INV I1 ON UI1.INVID = I1.INVID WHERE (I0.NAME = 'PC CREATOR BASED' AND I0.VALUE = 'TRUE' AND I0.Section ='SYSTEM') AND (I1.NAME = 'INSTALLDATE' AND CONVERT(Float,RTRIM(I1.VALUE)) >= 1081925657 AND I1.Section ='OPERATING SYSTEM') AND U.Type = 1 ORDER BY U.UNITID

It works like a charm on SQL 2000, but on SQL 2005 i get the following error.

Msg 8114, Level 16, State 5, Line 1
Error converting data type varchar to float.

The ting i first thought caused the problem was that I1.VALUE contained not numeric data, but thats not the fault.

I think there is some kind of Join optimize thingy on SQL 2005, but i can't seem to find a reason for it.

Collation on sql 2000 was Danish_norwegian.

Collation on sql 2005 is Latin1_general_CP1_CI_AS

Now my question is.

Whats changed on 2005?

And can i set a setting so that it will work like it did on 2000?

Thanks in advance
Oct 26 '06 #1
0 1399

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Mike Owen | last post by:
Hi, I have just used the import Wizard to import a VS 2003 app to VS 2005. I have a lot of work to do to enable it to compile successfully with all the errors and warnings it gave me, but as a...
2
by: Roy Gourgi | last post by:
Hi, I would like to know if MSDE 2005 is available as I cannot seem to find it anywhere. Do I have to have VS.NET 2005, or anything else. TIA Roy
13
by: Edward Mitchell | last post by:
I have a problem that involves the error I receive when attempting to complete the asp.net web application example (Walkthrough: Creating a Web Application Using a Third-Party Business Object). ...
4
by: Jason | last post by:
If I've got simple Access DB, and I've got a front end with a with a datagrid and use SQL SERver 2005 Expression edition to create the connections, develop the app then I give the DB and the...
4
by: Matt Fielder | last post by:
Posting this here as MS has informed me that microsoft.public.dotnet.languages.vb.data is not a supported group, but this one is. (seems odd since it's on their server and is a sub of this group,...
11
by: HC | last post by:
I posted this in one of the VB forums but I'm starting to think it might be more appropriate to have it here, since it really seems to be a SQL server (MSDE/Express 2005) problem: Hey, all, I...
9
by: HC | last post by:
Hello, all, I started out thinking my problems were elsewhere but as I have worked through this I have isolated my problem, currently, as a difference between MSDE and SQL Express 2005 (I'll just...
1
by: yarzar | last post by:
I cannot install MSDE on my system which has already installed SQL Express 2005. I need to use both SQL Express 2005 and MSDE. I was starting to install MSDE from setup, no message appears.Can you...
5
by: Tony Johansson | last post by:
Hello! Visual Studio 2005 includes a copy of SQL Express which is a lightweight desktop engine version of SQL Server 2005. Now to my question what is MSDE(Desktop Engine) is that the same as...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.