sql server common interview questions and answers

2

Click here to load reader

Upload: kaing-menglieng

Post on 19-Feb-2017

2.335 views

Category:

Documents


0 download

TRANSCRIPT

  • SQL Server - Common Interview Questions and Answers

    http://www.indiabix.com/technical/sql-server-common-questions/[08/29/2012 4:10:02 PM]

    Aptitude ? Reasoning ? Verbal Ability GK Puzzles Programming ? Engineering Medical ? Interview Online Test

    SQL Server - Common Interview Questions and Answers

    @ : Home > Technical Interview > SQL Server Common Questions > Interview Questions

    1. Which TCP/IP port does SQL Server run on? How can it be changed?

    SQL Server runs on port 1433. It can be changed from the Network Utility TCP/IP properties.

    2. What are the difference between clustered and a non-clustered index?

    1. A clustered index is a special type of index that reorders the way records in the table are physicallystored. Therefore table can have only one clustered index. The leaf nodes of a clustered index contain thedata pages.

    2. A non clustered index is a special type of index in which the logical order of the index does not matchthe physical stored order of the rows on disk. The leaf node of a non clustered index does not consist of thedata pages. Instead, the leaf nodes contain index rows.

    3. What are the different index configurations a table can have?

    A table can have one of the following index configurations:

    1. No indexes

    2. A clustered index

    3. A clustered index and many nonclustered indexes

    4. A nonclustered index

    5. Many nonclustered indexes

    4. What are different types of Collation Sensitivity?

    1. Case sensitivity - A and a, B and b, etc.

    2. Accent sensitivity

    3. Kana Sensitivity - When Japanese kana characters Hiragana and Katakana are treated differently, it iscalled Kana sensitive.

    4. Width sensitivity - A single-byte character (half-width) and the same character represented as a double-byte character (full-width) are treated differently than it is width sensitive.

    5. What is OLTP (Online Transaction Processing)?

    In OLTP - online transaction processing systems relational database design use the discipline of data modeling andgenerally follow the Codd rules of data normalization in order to ensure absolute data integrity. Using these rulescomplex information is broken down into its most simple structures (a table) where all of the individual atomic levelelements relate to each other and satisfy the normalization rules.

    6. What's the difference between a primary key and a unique key?

    Good Interview Questions Looking for a Career Change? Find Options & Opportunities for Free. www.BetterCareerSearch.com

    SQL Server Training Access Videos, Articles and More. Join the SSWUG.ORG Community Today! www.sswug.org

    Adaption Business Softw. Makes complex logistics simple Probeer nu onze software! www.adaption-it.nl

    Visual SQL to XML Easy to use Data Mapping environment. Try now! www.ecrion.com

    Ads by Google

    SQL ServerLearn SQL ServerSQL Server Manager

    http://www.indiabix.com/aptitude/questions-and-answers/http://www.indiabix.com/aptitude/questions-and-answers/http://www.indiabix.com/logical-reasoning/questions-and-answers/http://www.indiabix.com/logical-reasoning/questions-and-answers/http://www.indiabix.com/verbal-ability/questions-and-answers/http://www.indiabix.com/general-knowledge/questions-and-answers/http://www.indiabix.com/puzzles/number-puzzles/http://www.indiabix.com/c-programming/questions-and-answers/http://www.indiabix.com/c-programming/questions-and-answers/http://www.indiabix.com/engineering/http://www.indiabix.com/microbiology/questions-and-answers/http://www.indiabix.com/microbiology/questions-and-answers/http://www.indiabix.com/interview/http://www.indiabix.com/interview/http://www.indiabix.com/online-test/categories/http://www.indiabix.com/http://www.indiabix.com/http://www.indiabix.com/technical/interview-questions-and-answers/http://www.googleadservices.com/pagead/aclk?sa=L&ai=BzB_7atw9UJUbiL6KB47ugZgCgvCR_wO6lO-CIMCNtwHAuAIQARgBIKOf2AsoBDgAUInAgZ4EYHWgAe6vpt0DsgEQd3d3LmluZGlhYml4LmNvbboBCTcyOHg5MF9hc8gBAdoBPmh0dHA6Ly93d3cuaW5kaWFiaXguY29tL3RlY2huaWNhbC9zcWwtc2VydmVyLWNvbW1vbi1xdWVzdGlvbnMvgAIByALKvtAnqAMByAMf9QMAAADA9QMAAAAQiAYB4AaK0pwj&num=1&cid=5GhWaYfYtjDFEZtF9kjB_3S9&sig=AOD64_0cgAvewfc_TdWvupsQXnWe4iZpmQ&client=ca-pub-0191447310372013&adurl=http://www.bettercareersearch.com/index.jhtml%3Fspu%3Dtrue%26partner%3DZ4xdm008http://www.googleadservices.com/pagead/aclk?sa=L&ai=BSODEatw9UJUbiL6KB47ugZgCjbWetQLF547zOMCNtwHQ9wcQAhgCIKOf2AsoBDgAUJ6HsY79_____wFgdaAB1Jm9_wOyARB3d3cuaW5kaWFiaXguY29tugEJNzI4eDkwX2FzyAEB2gE-aHR0cDovL3d3dy5pbmRpYWJpeC5jb20vdGVjaG5pY2FsL3NxbC1zZXJ2ZXItY29tbW9uLXF1ZXN0aW9ucy-AAgGoAwHIAx_1AwAAAMD1AwAAABCIBgHgBtThBQ&num=2&cid=5GhWaYfYtjDFEZtF9kjB_3S9&sig=AOD64_3UymVYluul2bgYu3oe-lsmg2GeLA&client=ca-pub-0191447310372013&adurl=http://www.sswug.org/membersignup.aspx%3Fpg%3Dgawhttp://googleads.g.doubleclick.net/aclk?sa=L&ai=BMFcnatw9UJUbiL6KB47ugZgCof-o-gHxjZq6ZsCNtwHQ2REQAxgDIKOf2AsoBDgAUKasrJv6_____wFgdbIBEHd3dy5pbmRpYWJpeC5jb226AQk3Mjh4OTBfYXPIAQHaAT5odHRwOi8vd3d3LmluZGlhYml4LmNvbS90ZWNobmljYWwvc3FsLXNlcnZlci1jb21tb24tcXVlc3Rpb25zL6kCFW1BwDARtT7IArG5mzWoAwHIAx_1AwAAAMD1AwAAABDgBpm8rys&num=3&sig=AOD64_0BIxzkg8VYw9mshcvzo4toRlGazw&client=ca-pub-0191447310372013&adurl=http://www.adaption-it.nlhttp://www.googleadservices.com/pagead/aclk?sa=L&ai=BsFDeatw9UJUbiL6KB47ugZgCsMXmzQGwkojLGMCNtwGg_goQBBgEIKOf2AsoBDgAUJq_v5f5_____wFgdaABjt_r_gOyARB3d3cuaW5kaWFiaXguY29tugEJNzI4eDkwX2FzyAEB2gE-aHR0cDovL3d3dy5pbmRpYWJpeC5jb20vdGVjaG5pY2FsL3NxbC1zZXJ2ZXItY29tbW9uLXF1ZXN0aW9ucy-AAgGoAwHIAx_1AwAAAMD1AwAAABCIBgHgBoTOVQ&num=4&cid=5GhWaYfYtjDFEZtF9kjB_3S9&sig=AOD64_0G1qn8OJ4PSz_drMM7zl7wJtuckA&client=ca-pub-0191447310372013&adurl=http://www.ecrion.com/LandingPage/DatabaseToXML.aspx%3F_kk%3Dsql%2520to%2520xml%26_kt%3D5a630787-8eb0-46dc-81da-535483ec4f80http://www.google.com/url?ct=abg&q=https://www.google.com/adsense/support/bin/request.py%3Fcontact%3Dabg_afc%26url%3Dhttp://www.indiabix.com/technical/sql-server-common-questions/%26gl%3DKH%26hl%3Den%26client%3Dca-pub-0191447310372013%26ai0%3DBzB_7atw9UJUbiL6KB47ugZgCgvCR_wO6lO-CIMCNtwHAuAIQARgBIKOf2AsoBDgAUInAgZ4EYHWgAe6vpt0DsgEQd3d3LmluZGlhYml4LmNvbboBCTcyOHg5MF9hc8gBAdoBPmh0dHA6Ly93d3cuaW5kaWFiaXguY29tL3RlY2huaWNhbC9zcWwtc2VydmVyLWNvbW1vbi1xdWVzdGlvbnMvgAIByALKvtAnqAMByAMf9QMAAADA9QMAAAAQiAYB4AaK0pwj%26ai1%3DBSODEatw9UJUbiL6KB47ugZgCjbWetQLF547zOMCNtwHQ9wcQAhgCIKOf2AsoBDgAUJ6HsY79_____wFgdaAB1Jm9_wOyARB3d3cuaW5kaWFiaXguY29tugEJNzI4eDkwX2FzyAEB2gE-aHR0cDovL3d3dy5pbmRpYWJpeC5jb20vdGVjaG5pY2FsL3NxbC1zZXJ2ZXItY29tbW9uLXF1ZXN0aW9ucy-AAgGoAwHIAx_1AwAAAMD1AwAAABCIBgHgBtThBQ%26ai2%3DBMFcnatw9UJUbiL6KB47ugZgCof-o-gHxjZq6ZsCNtwHQ2REQAxgDIKOf2AsoBDgAUKasrJv6_____wFgdbIBEHd3dy5pbmRpYWJpeC5jb226AQk3Mjh4OTBfYXPIAQHaAT5odHRwOi8vd3d3LmluZGlhYml4LmNvbS90ZWNobmljYWwvc3FsLXNlcnZlci1jb21tb24tcXVlc3Rpb25zL6kCFW1BwDARtT7IArG5mzWoAwHIAx_1AwAAAMD1AwAAABDgBpm8rys%26ai3%3DBsFDeatw9UJUbiL6KB47ugZgCsMXmzQGwkojLGMCNtwGg_goQBBgEIKOf2AsoBDgAUJq_v5f5_____wFgdaABjt_r_gOyARB3d3cuaW5kaWFiaXguY29tugEJNzI4eDkwX2FzyAEB2gE-aHR0cDovL3d3dy5pbmRpYWJpeC5jb20vdGVjaG5pY2FsL3NxbC1zZXJ2ZXItY29tbW9uLXF1ZXN0aW9ucy-AAgGoAwHIAx_1AwAAAMD1AwAAABCIBgHgBoTOVQ&usg=AFQjCNH7I_h9yoZbV45z9rFeBl6HspgmGAhttps://www.google.com/adsense/support/bin/request.py?contact=abg_afc&url=http://www.indiabix.com/technical/sql-server-common-questions/&hl=en&client=ca-pub-0191447310372013&rad0=SQL+Server&rad1=Learn+SQL+Server&rad2=SQL+Server+Managerhttp://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-0191447310372013&output=html&h=90&slotname=3491644029&w=160&lmt=1346231399&flash=11.3.300.257&url=http%3A%2F%2Fwww.indiabix.com%2Ftechnical%2Fsql-server-common-questions%2F&dt=1346231399137&bpp=2&shv=r20120815&jsv=r20110914&prev_slotnames=0020610251%2C6754773581&correlator=1346231398952&frm=20&adk=2381022800&ga_vid=2132345078.1346231274&ga_sid=1346231274&ga_hid=607519744&ga_fc=1&u_tz=420&u_his=5&u_java=1&u_h=768&u_w=1366&u_ah=728&u_aw=1366&u_cd=32&u_nplug=0&u_nmime=0&dff=tahoma&dfs=11&adx=-2&ady=-2&biw=1345&bih=559&oid=3&docm=8&fu=0&ifi=3&dtd=24&xpc=RxWqA0oilS&p=http%3A//www.indiabix.com&rl_rc=true&adsense_enabled=true&ad_type=text_image&oe=utf8&height=90&width=160&format=fp_al_lp&f=verdana&kw_type=radlink&prev_fmts=160x90_0ads_al&rt=ChBQPdxqAARKGgrinCM4AG2aEgpTUUwgU2VydmVyGgj98a6p08ldhygBUhMIq_2P5L6MsgIVSZziCh1UbABA&hl=en&kw0=SQL+Server&kw1=Learn+SQL+Server&kw2=SQL+Server+Manager&okw=SQL+Serverhttp://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-0191447310372013&output=html&h=90&slotname=3491644029&w=160&lmt=1346231399&flash=11.3.300.257&url=http%3A%2F%2Fwww.indiabix.com%2Ftechnical%2Fsql-server-common-questions%2F&dt=1346231399137&bpp=2&shv=r20120815&jsv=r20110914&prev_slotnames=0020610251%2C6754773581&correlator=1346231398952&frm=20&adk=2381022800&ga_vid=2132345078.1346231274&ga_sid=1346231274&ga_hid=607519744&ga_fc=1&u_tz=420&u_his=5&u_java=1&u_h=768&u_w=1366&u_ah=728&u_aw=1366&u_cd=32&u_nplug=0&u_nmime=0&dff=tahoma&dfs=11&adx=-2&ady=-2&biw=1345&bih=559&oid=3&docm=8&fu=0&ifi=3&dtd=24&xpc=RxWqA0oilS&p=http%3A//www.indiabix.com&rl_rc=true&adsense_enabled=true&ad_type=text_image&oe=utf8&height=90&width=160&format=fp_al_lp&f=verdana&kw_type=radlink&prev_fmts=160x90_0ads_al&rt=ChBQPdxqAARKJgrinCM4AG2aEhBMZWFybiBTUUwgU2VydmVyGggRjNnEp3BAnCgBUhMIq_2P5L6MsgIVSZziCh1UbABA&hl=en&kw0=SQL+Server&kw1=Learn+SQL+Server&kw2=SQL+Server+Manager&okw=Learn+SQL+Serverhttp://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-0191447310372013&output=html&h=90&slotname=3491644029&w=160&lmt=1346231399&flash=11.3.300.257&url=http%3A%2F%2Fwww.indiabix.com%2Ftechnical%2Fsql-server-common-questions%2F&dt=1346231399137&bpp=2&shv=r20120815&jsv=r20110914&prev_slotnames=0020610251%2C6754773581&correlator=1346231398952&frm=20&adk=2381022800&ga_vid=2132345078.1346231274&ga_sid=1346231274&ga_hid=607519744&ga_fc=1&u_tz=420&u_his=5&u_java=1&u_h=768&u_w=1366&u_ah=728&u_aw=1366&u_cd=32&u_nplug=0&u_nmime=0&dff=tahoma&dfs=11&adx=-2&ady=-2&biw=1345&bih=559&oid=3&docm=8&fu=0&ifi=3&dtd=24&xpc=RxWqA0oilS&p=http%3A//www.indiabix.com&rl_rc=true&adsense_enabled=true&ad_type=text_image&oe=utf8&height=90&width=160&format=fp_al_lp&f=verdana&kw_type=radlink&prev_fmts=160x90_0ads_al&rt=ChBQPdxqAARKKQrinCM4AG2aEhJTUUwgU2VydmVyIE1hbmFnZXIaCHOQebvQLwt7KAFSEwir_Y_kvoyyAhVJnOIKHVRsAEA&hl=en&kw0=SQL+Server&kw1=Learn+SQL+Server&kw2=SQL+Server+Manager&okw=SQL+Server+Manager

  • SQL Server - Common Interview Questions and Answers

    http://www.indiabix.com/technical/sql-server-common-questions/[08/29/2012 4:10:02 PM]

    Both primary key and unique key enforces uniqueness of the column on which they are defined. But by defaultprimary key creates a clustered index on the column, where are unique creates a nonclustered index by default.Another major difference is that, primary key doesn't allow NULLs, but unique key allows one NULL only.

    1 2 3 4 5 6 Next >

    2008-2012 by IndiaBIX Technologies. All Rights Reserved | Copyright | Terms of Use & Privacy Policy

    Contact us: [email protected] Follow us on twitter!

    Bookmark to:

    Consulting Case PrepInteractive interview prep: math drills,

    frameworks & market-sizingwww.casequestions.com

    http://www.indiabix.com/technical/sql-server-common-questions/2http://www.indiabix.com/technical/sql-server-common-questions/3http://www.indiabix.com/technical/sql-server-common-questions/4http://www.indiabix.com/technical/sql-server-common-questions/5http://www.indiabix.com/technical/sql-server-common-questions/6http://www.indiabix.com/technical/sql-server-common-questions/2http://www.indiabix.com/about/copyright.phphttp://www.indiabix.com/about/privacy-policy.phpjavascript:void(0)http://googleads.g.doubleclick.net/aclk?sa=L&ai=BYwyJatw9UMi7DOi_igeI24HwDOPR9vABs5CalBrAjbcBwIsREAEYASCjn9gLOABQzsy9hQdgdbIBEHd3dy5pbmRpYWJpeC5jb226AQozMzZ4MjgwX2FzyAEB2gE-aHR0cDovL3d3dy5pbmRpYWJpeC5jb20vdGVjaG5pY2FsL3NxbC1zZXJ2ZXItY29tbW9uLXF1ZXN0aW9ucy_gAQKAAgGoAwHIAx_1AwAAAMT1AwAAABDgBr2E1QM&num=1&sig=AOD64_0QxYYHjhITClZf9Hwk2-D7GW3DbA&client=ca-pub-0191447310372013&adurl=http://www.casequestions.comhttp://www.google.com/url?ct=abg&q=https://www.google.com/adsense/support/bin/request.py%3Fcontact%3Dabg_afc%26url%3Dhttp://www.indiabix.com/technical/sql-server-common-questions/%26gl%3DKH%26hl%3Den%26client%3Dca-pub-0191447310372013%26ai0%3DBYwyJatw9UMi7DOi_igeI24HwDOPR9vABs5CalBrAjbcBwIsREAEYASCjn9gLOABQzsy9hQdgdbIBEHd3dy5pbmRpYWJpeC5jb226AQozMzZ4MjgwX2FzyAEB2gE-aHR0cDovL3d3dy5pbmRpYWJpeC5jb20vdGVjaG5pY2FsL3NxbC1zZXJ2ZXItY29tbW9uLXF1ZXN0aW9ucy_gAQKAAgGoAwHIAx_1AwAAAMT1AwAAABDgBr2E1QM&usg=AFQjCNHh6yAId3U3hlt5x83OBAKUI71UJg

    indiabix.comSQL Server - Common Interview Questions and Answers

    J2ZXItY29tbW9uLXF1ZXN0aW9ucy8A: form1: q: sa: