Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Interview Questions
What's the use of @@trancount in sql server 2005
Posted By :
Posted Date :
December 24, 2009
@@trancount Returns the number of active transactions for the current connection.
You can also find related Interview Question to
What''s the use of @@trancount in sql server 2005
Which is not a Query Representation plan in SQL Server 2005?
Which SQL Server 2005 services require that you install them with their own account?
Maximum number of parameters you can pass in a Store procedure in SQL Server 2005?
What is the command name to shrink the data file and log file size in SQL server 2005?
The command name is : DBCC SHRINKDATABASE (Database Name)
This command will shrink the data file and log file size. With this command you can specify that how much percentage space you want to free.
dbcc shrinkdatabase (TempDAabase,10)
This command will free only 10% space.
What is the name of command in sql server 2005 which is used to kill any process?
The command name is kill.
Syntax is below:
Kill [Process ID]
Write a query to get the second maximum salary using Sql Server 2005 function?
SELECT Salary, RANK() OVER (ORDER BY Salary DESC) AS MaxSalary
WHERE MaxSalary = 2
Can You Explain Integration Between SQL Server 2005 And Visual Studio 2005 ?
This intergration provide wider range of development with the help of CLR for database server.Becasue CLR helps developers to get flexibility for developing database applications and also provides language interoperability just like Visual C++, Visual Basic .Net and Visual C# .Net. The CLR helps developers to get the arrays, classes and exception handling available through programming languages such as Visual C++ or Visual C# which is use in stored procedures, functions and triggers for creating database application dynamically and also provide more efficient reuse of code and faster execution of complex tasks. We particularly liked the error-checking powers of the CLR environment, which reduces run-time errors.
Can the secondary files in a database be taken offline? (Starting with SQL Server 2005 Enterprise Edition)
Yes or No ?
what is Sand box in sql server 2005 ?
Sandbox is safe place for executing semi trusted scripts, applications involving third party API needs. There are 3 sandboxes where user's code can run:
Safe access sandbox: User can create stored procedures, triggers, functions; data type's etc but cannot access memory, or disk, or create files.
External access sandbox: User can access file system outside the box, leverage classes but cannot manipulate threads, memory allocations etc.
Unsafe access sandbox: User has access to memory management, and threads. Allows users to create unsafe and untrusted code.
You work for a bank that uses a SQL Server 2005 database to store line items from customer banking transactions. The bank processes 50,000 transactions every day. The application requires a clustered index on the TransactionID column. You need to create a
table that supports an efficient reporting solution that queries the transactions by date.What are the two ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
A. Place a nonclustered index on the date column.
B. Add a unique clustered index on the date column
C. Map each partition to a filegroup, with each filegroup accessing a different physical
D. Create a partitioning scheme that partitions the data by date.
You are creating a SQL Server 2005 database for a mortgage company. The database will support a new Web-based application that will handle up to 1,000 simultaneous users.This application must quickly display the results of calculation-intensive operations, such
as calculating mortgage payments and amortization schedules. You need to ensure that the database processes calculations as quickly and efficiently as possible. What should you do?
A. Implement parameterized Transact-SQL queries in the application.
B. Implement Transact-SQL stored procedures in the database.
C. Implement CLR stored procedures in the database.
D. Implement distributed Web services.
Explanation: A Common Language Runtime (CLR) will generally perform better
than T-SQL and CRUD (Create, Read, Update, Delete) operations for complex
math, string manipulation and other tasks that go beyond data access.
What is maximum column name length in SQL Server 2005?
Maximum allowed column name length in SQL Server 2005 is 128 characters
Database Concurrency in Sql Server.
When two or more user try to update same type of data in a table then Database Concurrency helps in this situation.
There are 2 types of Database Concurrency
Pessimistic: When one user try to change the data with pessimistic concurrency then a lock is placed on the data in a table so that another user cannot change data. when one user finishes then other user can able to change.
Optimistic: When two user works on the same data in a table and one change that data first then second user cannot change that same data becasue the which he have using is allready changed so he cannot do the change becasue change apply to another data that is changed by first user.
Is it true that COM objects no longer need to be registered on the server?
Yes and No. Legacy COM objects still need to be registered on the server before they can be used. COM developed using the new .NET Framework will not need to be registered. Developers will be able to auto-register these objects just by placing them in the 'bin' folder of the application.
Quick Links For Interview Questions Categories:
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
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
Terms of Service
Tell A Friend