dbTalk Databases Forums  

table row count fails Msg 11021,

comp.databases.sybase comp.databases.sybase


Discuss table row count fails Msg 11021, in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
evoradba@yahoo.ca
 
Posts: n/a

Default table row count fails Msg 11021, - 02-03-2009 , 03:36 PM






Hello

i had a script that i use to use on SYBASE 12.X to do a select and a
row count of all tables now in syabse 15.X it fails with

The built-in function 'rowcnt' has been deprecated. Use the new built-
in
function 'row_count' instead. Deprecated function returns value of 0.

if i use the row_count function if fails also with
Msg 11021, Level 16, State 2:
Function ROW_COUNT invoked with wrong number or type of argument(s).

this is the script

--select o.name, rowcnt (i.doampg)
select o.name, row_count (i.doampg)
from sysobjects o, sysindexes i
where o.type = 'U'
and i.id = o.id
and i.indid < 2

Sybase 15.0 on solaris 10
thank you
Maria

Reply With Quote
  #2  
Old   
mnajs
 
Posts: n/a

Default Re: table row count fails Msg 11021, - 02-04-2009 , 02:01 AM






evoradba (AT) yahoo (DOT) ca pisze:
Quote:
Hello

i had a script that i use to use on SYBASE 12.X to do a select and a
row count of all tables now in syabse 15.X it fails with

The built-in function 'rowcnt' has been deprecated. Use the new built-
in
function 'row_count' instead. Deprecated function returns value of 0.

if i use the row_count function if fails also with
Msg 11021, Level 16, State 2:
Function ROW_COUNT invoked with wrong number or type of argument(s).

this is the script

--select o.name, rowcnt (i.doampg)
select o.name, row_count (i.doampg)
from sysobjects o, sysindexes i
where o.type = 'U'
and i.id = o.id
and i.indid < 2

Sybase 15.0 on solaris 10
thank you
Maria
Hi.

row_count(db_id, , object_id, [ptn_id])

example: row_count(db_id(), object_id('table_name'))


Regards,

--
Marcin Najs


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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.