Advertisement

07.02.2008 at 10:08AM PDT, ID: 23534297
[x]
Attachment Details

Syntax error converting the varchar value 'COP' to a column of data type int

Asked by ewang1205 in MS SQL Server

Tags: sql server

I got Syntax error converting the varchar value 'COP' to a column of data type int.  Here is the code.  What can go wrong?  Thanks.

@ROYALTY decimal(25,4)
@INVOICE_ID int,

select @ROYALTY = 2 from test;
select @INVOICE_ID = max(INVOICE_ID) from  INVOICE

Start Free Trial
[+][-]07.02.2008 at 10:14AM PDT, ID: 21918565

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS SQL Server
Tags: sql server
Sign Up Now!
Solution Provided By: aneeshattingal
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.02.2008 at 10:16AM PDT, ID: 21918594

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.02.2008 at 10:18AM PDT, ID: 21918615

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.02.2008 at 10:22AM PDT, ID: 21918654

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.02.2008 at 10:46AM PDT, ID: 21918847

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628