SQL Server Interview Questions
Questions Answers Views Company eMail

In performance wise distinct is good or group by is good? eg:select name from emp group by name; select distinct name from emp;

Infosys,

5 17579

Can we create clustered index on non primary key column

ABC, CTS,

20 39917

What are Sql Reporting Services and analysis services? Can u Explain

1 8202




What r sql reporting services and analysis services? how can we use it.

Microsoft,

2 9798

is there more the two primary key in a single table?

Systematix, Eforce,

26 16673

how to implement locking in sql server

Satyam,

3 5225

What is the difference between a Application Server and a Database

Oracle,

3 9806

What is the difference between 2-Tier architecture and 3-Tier architecture

CTS, Oracle,

15 54868




what is differece between union and union all

6 5693

Is trigger fired implicitely?

2 3290

how do we find every fifth record in a table

Aspire, HCL,

14 10042

What is the appropriate number of test cases that you can write on a database?

Microsoft,

2 4202

If you are working on a SQL database and if suddenly a developer changes the code and your queries results start giving errors,how will you check using a T-SQL query (on system tables) that what has changed in the database.

Microsoft,

2 4205

WHY CAN WE CREATE ONLY ONE CLUSTERED INDEX ON A TABLE IN SQL SERVER?

8 15110

MULTICAST DELEGATES IN C#.NET WITH REAL TIME EXAMPLE

TCS, IBM,

2 13213


Post New SQL Server Questions






Un-Answered Questions { SQL Server }

Can you give me some DBCC command options?(Database consistency check) - DBCC CHECKDB - Ensures that tables in the db and the indexes are correctly linked.and DBCC CHECKALLOC - To check that all pages in a db are correctly allocated. DBCC SQLPERF - It gives report on current usage of transaction log in percentage. DBCC CHECKFILEGROUP - Checks all tables file group for any damage.

1305


This question asked during interview, 2) At the end of each month, a new table is created for each bank that contains monthly metrics consolidated at the account level. The table naming convention is bankX_YYYYMM where X represents the numeric designation of the bank and YYYYMM indicates the 4 digit year and 2 digit month. The tables contain the following fields: name data type description account text account number registered boolean indicates whether the account is registered num_trans integer number of transactions made during the time period spend numeric(9,2) total spend during the time period a) Write a SQL query that will display the total number of transactions and total spend for "Bank1" during the 4th quarter of 2009. b) Write a SQL query that will display the total number of transactions and total spend at "Bank1" and "Bank2", broken out by registered vs. non-registered accounts, during January 2010 not sure what is correct answer and how to solve?

1185


OPTIMIZATION OF SP,CURSOR,TRIGGERS

1457


What is RMS migrations?

901


after migrating the dts packg to ssis by using migrtn wizrd in 2005. iam not able to open ssis pack and getting error. what r those errors? how to resolve?

908






where the connection string store in the database

757


what is package and it uses and how can u call a package

835


I applied Transactional with updatable subscriptions replication on 2 tables now i want to delete those 2 tables but i cannot delete those tables as replication is running how can i stop replication for those 2 tables(but i don't want to delete those replicated tables but i need to stop the replication) how can i do that

616


Give some Scenario for Non Clusterd index? Can we write system defined functions in side The Function? Wat is the Unique Datatype?

1249


How to check what was the last restore transaction LSN in Log shipping or Mirroring? when we don't have a Monitor or witness server.

2628


how to take backup bcp out for a column in table in sql server?

804


Suppose i have a table that contains 5 columns like col1,col2...colm5.I want to import only two column through BCP utility.How to do same through BCP in sybase.

1217


hi, the following are the outputs of sp_spaceused and sp_tempdbspace sp_spaceused ------------ database size unallocated size tempdb 77752.95 MB 28026.99 MB sp_tempdbspace ------------- database size spaceused tempdb 77752.945312 1.007812 the unused space in sp_spaceused is nearly 28 Gb and in sp_tempdbspace is nearly 76 Gb cany any one explain about this output and why its giving different results.

1524


how to use DTS package in 2000,2005,2008 in sql server

733


How we create SQL Server 2005 Reporting Services ? Give me Sample

867