satmisha
asked on
Unable to get exact error from Sybase Sp to Sql Server 2005
I am calling sp which is in sybase using linked server in sql server 2005. This SP ( In Sybase ) inserting records in Table.
There is no space in sybase n the message I am getting in calling sp ( In sql server having Try Catch ) is
"Could not execute statement on remote server 'SYBASE_SPHERE'."
Whereas the exact exception is "Can't allocate space for object 'table1' in database 'LinkedServer' because 'default' segment is full/has no free extents. If you ran out of space in syslogs, dump the transaction log. Otherwise, use ALTER DATABASE to increase the size of the segment." which I am not getting as error description in Catch Block of sql server.
I have implemented proper error handling machenism in Sql server i.e. using Try Catch etc.
Is there any way to get the exact error info in sql server from sybase. Pls suggest
Hopefully looking forwrad to hearing from you.
There is no space in sybase n the message I am getting in calling sp ( In sql server having Try Catch ) is
"Could not execute statement on remote server 'SYBASE_SPHERE'."
Whereas the exact exception is "Can't allocate space for object 'table1' in database 'LinkedServer' because 'default' segment is full/has no free extents. If you ran out of space in syslogs, dump the transaction log. Otherwise, use ALTER DATABASE to increase the size of the segment." which I am not getting as error description in Catch Block of sql server.
I have implemented proper error handling machenism in Sql server i.e. using Try Catch etc.
Is there any way to get the exact error info in sql server from sybase. Pls suggest
Hopefully looking forwrad to hearing from you.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.