1.what is the purpose of using alias name in sql server?
with certain example?

2.what is cursor?will u plz explain me in detail with
certain example?

Answer Posted / lekhrajdeshmukh

Cursor:- Cursor is special data type of mssql server.
Cursor is mainly used for extracting the row by row data
from tables.
cursor is the only data type that can not be used in table.
Cursor is mainly used in stored procedure and when we have
to use cursor in SP need to perform the following steps:-
1)declaring a cursor.
2)Open a Cursor
3) fetching the cursor
4)close the cursor.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of using third-party tools?

645


What is the purpose of data source?

611


What are key constraints?

600


What does normalization do to data?

636


How to create an multi-statement table-valued function?

612






What are triggers? How many triggers you can have on a table? How to invoke a trigger on demand?

834


When to use Inner join & when to use subquery?

654


Does full backup break log chain?

633


Explain primary key?

632


Explain nested join?

652


How to return the date part only from a sql server datetime datatype?

677


Write a sql query to display the current date?

740


What are system databases in ms sql server?

613


Can sql servers linked to other servers like oracle?

626


what is the difference between a primary key and a unique key? : Sql server database administration

628