.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> Sql Server >> Post New Question Subscribe to Interview Questions

If the rows are more than 2 billion, how can I set the rowcount?

Posted By :nishithraj     Posted Date :March 16, 2010    Points :10   Category :Sql Server 
Using ROWCOUNT_BIG statement.

You can also find related Interview Question to If the rows are more than 2 billion, how can I set the rowcount?  below: 

How to clear all rows of the GridView?

  
make DataSource as null.

GridView1.DataSource = null; (More...)

What is the use of SET ROWCOUNT

  
If we require a little number of rows to be retrieved, retrieving entire table data is not necessary we can go for SET ROWCOUNT . (More...)

How many ways return rows from one table not in another table?

  
There are at least 5 ways to return data from one table which is not in another table. Two of these are SQL Server 2005 and greater only

1)NOT IN

2)NOT EXISTS

3)LEFT and RIGHT JOIN

4)OUTER APPLY (2005+)

5)EXCEPT (2005+)

(More...)

Deleting Duplicates rows from the table?

  
delete from Employee where(EmpId Not In(Select Max(EmpId) from Employee Group By EmpName
-------------------------------
Note: EmpId Should Be identity column means Autogenerated column (More...)

How to get @@ERROR and @@ROWCOUNT at the same time?

  
If you check @@Rowcount after Error checking statement it will give the result as 0 and if you check @@Recordcount before the error checking statement then @@Error will not return any value. To get @@error and @@rowcount at the same time, include both in a select query and store it in a local variable in a single query

SELECT @RowCount = @@ROWCOUNT, @ERRROR = @@ERROR 
(More...)

What is the limitation of Rows and Columns in Sql Server?

  
A Row in Sql Server can have the maximum capacity of 8080bytes.
A Column in Sql Server can have the maximum capacity of 1789bytes. (More...)

How to get @@error and @@rowcount at the same time?

  
If @@Rowcount is checked after Error checking statement then it will have 0 as the value of @@Recordcount as it would have been reset.
And if @@Recordcount is checked before the error-checking statement then @@Error would get reset. To get @@error and @@rowcount at the same time do both in same statement and store them in local variable.
SELECT @RC = @@ROWCOUNT, @ER = @@ERROR (More...)

How to get @@error and @@rowcount at the same time?

  
If @@Rowcount is checked after Error checking statement then it will have 0 as the value of
@@Recordcount as it would have been reset. And if @@Recordcount is checked before the error-checking statement then @@Error would get reset. To get @@error and @@rowcount at the same time do both in same statement and store them in local variable.
SELECT @RC = @@ROWCOUNT, @ER = @@ERROR (More...)

How to delete duplicate rows from table in sql

  
One can achieve this like below-

DELETE FROM table_name A WHERE ROWID > (
SELECT min(rowid) FROM table_name B
WHERE A.key_values = B.key_values); (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend