>>Is this SQL Server 2000?
yes
but i got this error
Type bigint is not a defined system type.
Main Topics
Browse All Topicsi am using the following query
SELECT POSITION_LIST.EMPID, REPORTS_TO, USER_PROFILE.EMPID, USER_PROFILE.USERFNAME, USER_PROFILE.USERLNAME
FROM POSITION_LIST LEFT JOIN HR_TOOLBOX_USER_PROFILE ON EMPID = USER_PROFILE.EMPID
WHERE POSITION_LIST.EMPID Is Not Null AND REPORTS_TO in (SELECT POSID
FROM POSITION_LIST
WHERE POSITION_LIST.EMPID=<cfque
which results in
[Microsoft][ODBC SQL Server Driver][SQL Server]The conversion of the nvarchar value '9261416167' overflowed an int column. Maximum integer value exceeded.
the table POSITION_LIST matches POSID and REPORTS_TO
the table was originally designed in ACCESSS with POSID as a random Autonumber
max value is 2146449165 min value is -2138269668
UID id a 7 digit number 0500000 - 2000000
if i remove the subquery it works fine but i dont get the results i need SQL or CF solutions welcome
TIA
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Couple things, you can try the CAST function instead:
WHERE POSITION_LIST.EMPID Is Not Null AND CAST(REPORTS_TO AS BIGING) in (SELECT CAST(POSID AS BIGINT)
Also, check to see the what the Database compatibility level is set to. It should be 80 which is SQL Server 2000. If it is set to anything less, that will be a problem as the BIGINT datatype was introduced in SQL 2000.
Business Accounts
Answer for Membership
by: shooksmPosted on 2003-12-04 at 08:24:52ID: 9875428
Is this SQL Server 2000?
ryparam value="#UID#">);
ryparam value="#UID#">);
You could try converting your values to BIGINTs which support values qreater than 2,147,483,647. Change the following lines:
WHERE POSITION_LIST.EMPID Is Not Null AND REPORTS_TO in (SELECT POSID
FROM POSITION_LIST
WHERE POSITION_LIST.EMPID=<cfque
To:
WHERE POSITION_LIST.EMPID Is Not Null AND CONVERT(BIGINT, REPORTS_TO) in (SELECT CONVERT(BIGINT, POSID)
FROM POSITION_LIST
WHERE POSITION_LIST.EMPID=<cfque