Unix Technical Forum

SQL Update Query Problem

This is a discussion on SQL Update Query Problem within the SQL Server forums, part of the Microsoft SQL Server category; --> I am getting the following error while connecting to a MS SQL Server 7 using ODBC connecting thru a ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 07:30 PM
Tim Hinkel
 
Posts: n/a
Default SQL Update Query Problem

I am getting the following error while connecting to a MS SQL Server 7 using
ODBC connecting thru a PERL application. The sql statement works perfectly
in Query Analyzer. Income_id is a int identity column, net_income is money
and the rest of the columns are integers. Any thoughts on how I can correct
this problem?

170: [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax
near '='.:
update form10_netincome set film_no = 2532290, net_income = 200012,
inc_year = 2000 where income_id = 67;

Thanks, Tim


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 07:31 PM
Shervin Shapourian
 
Posts: n/a
Default Re: SQL Update Query Problem

Tim,

Your code looks perfectly correct. Use Profiler to see what is sent to
server. I'm afraid your script is getting truncated somewhere.

Shervin

"Tim Hinkel" <thinkel@hotmail6009.com> wrote in message
news:iH8mb.17405$Tr4.36215@attbi_s03...
> I am getting the following error while connecting to a MS SQL Server 7

using
> ODBC connecting thru a PERL application. The sql statement works

perfectly
> in Query Analyzer. Income_id is a int identity column, net_income is

money
> and the rest of the columns are integers. Any thoughts on how I can

correct
> this problem?
>
> 170: [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect

syntax
> near '='.:
> update form10_netincome set film_no = 2532290, net_income = 200012,
> inc_year = 2000 where income_id = 67;
>
> Thanks, Tim
>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:15 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com