Unix Technical Forum

sqlcode

This is a discussion on sqlcode within the Sybase forums, part of the Database Server Software category; --> Can anyone tell me what sqlcode -192 is? I'm using ASA 8.02, Sybase Central 4.1.1.1370. Thanks! Eric...


Go Back   Unix Technical Forum > Database Server Software > Sybase

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 02:50 PM
Eric Parks
 
Posts: n/a
Default sqlcode

Can anyone tell me what sqlcode -192 is? I'm using ASA 8.02, Sybase
Central 4.1.1.1370.

Thanks!
Eric
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 02:50 PM
Eric Parks
 
Posts: n/a
Default Re: sqlcode

Thanks, Willy.

I'm actually getting it in iSQL when I run a function. The line in
question looks like:

execute immediate 'update vwPopulateOCC set '||varExecSQL||' where
current of curTempTable';

vwPopulateOcc is a view to a temp table. The view and the temp table
all have granted all permissions to the dba user, which I log in as.

Any ideas?

Thanks again for your help!
Eric

willy_and_the_ci <member4473@dbforums.com> wrote in message news:<3236879.1060818962@dbforums.com>...
> From Error messages Guide:
>
> Item Value
> SQLCODE -192
>
>
> "Update operation attempted on non-updatable query
>
> Probable cause
> You attempted an insert, update, or delete operation on a query that is
> implicitly read-only. Queries that contain DISTINCT, GROUP BY, HAVING,
> or UNION, or that contain aggregate functions, or that involve a join,
> are implicitly read only. If the query references a view then the view
> may be non-updatable."
>
> If you are getting it in Sybase Central Central, most likely caused due
> to some internal problem that you can log with Sybase Support.
>
> Cheers,
>
> Willy

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 12:36 AM.


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