GeekInterview.com
Submitted Questions

Sybase stored procedure and triggers

Asked By: mamtasahu | Asked On: Nov 26th, 2009

What is the maximum nesting level of stored procedure and triggers in sybase?

Answered by: neo.sql on: Sep 10th, 2011

The default option for maximum nesting level is 16 however this is a server configurable value and can be lesser than this also. To check the current maximum nesting level for stored procedures and tr...

Answered by: Tejas More on: Jul 7th, 2011

Max nesting level is 16

Sybase workspace

Asked By: mamtasahu | Asked On: Sep 6th, 2008

How is workspace used in sybase?

Answered by: mikeob on: Jun 17th, 2009

I think it needs clarification. The only 'workspace' that comes to my mind here is a *.ws file from Sybase Power Designer. In that case a workspace serves as a container for physical, logical ERDs and reports, etc.

Views 'with check' option

Asked By: mamtasahu | Asked On: Sep 6th, 2008

What is the use of 'with check' option in views?

Answered by: Tejas More on: Jul 7th, 2011

The with check option flag prevents insertion or updating of rows that will not meet the view criteria. e.g.: create view cal_publishers_chk as ...

Answered by: dhampack on: Nov 23rd, 2008

When you create a view using the with check option clause, each insert and update through the view, is validated against the view’s selection criteria. If the rows inserted or updated are out of cri...

Add not null column in a table

Asked By: mamtasahu | Asked On: Sep 5th, 2008

How we can add a notnull column in a table by using alter command (without using default command)?

Answered by: Tejas More on: Jul 7th, 2011

You can add a NOT NULL column to a table. This means that a constant expression, and not a null value, is placed in the column when the column is added. This also ensures that, for all existing rows, ...

Answered by: UncaAlby on: Oct 20th, 2008

First add the column as NULL. Then populate the column with non-null data. Then modify the column to NOT NULL. You may need to set dboption "select into" to True.

Log file information

Asked By: mamtasahu | Asked On: Sep 5th, 2008

How can we get information about log files in the database?

Answered by: UncaAlby on: Nov 3rd, 2008

That is a vendor-specific question.In Sybase, you can get log file information as follows:prompt$ isql1> sp_help {database} 2> goThat will list the devices used by the database, including log de...

Locking in sybase

Asked By: mamtasahu | Asked On: Jul 1st, 2008

What is locking in sybase? What are its types?

Answered by: dhampack on: Nov 23rd, 2008

Sybase does support locking at row level in version 12.5 onwards.

Sybase use locking in below modes
- Shared
- Exclusive
- Update

For APL(all page locking), sybase locks data as well index page
For DOL(data only locks) either row level or data page level, sybase use not transactional locking(latches)

Answered by: rahul.mra on: Jul 2nd, 2008

Lock: controling access to page
In sybase, locking is done at page level (whereas in Oracle, it is at row level).
So, suppose if we have a lock (shared lock, write lock) on a page, than we can not access any rows in that page.

Interview Question

 Ask Interview Question?

 

Career Counselling

 Have Career Question?

 Ask Chandra

 Ask Only Career questions.

Follow us: