Renault Posted April 26, 2017 Report Share Posted April 26, 2017 i have some q;ns ...in interiew..plz answer Quote Link to comment Share on other sites More sharing options...
Android_Halwa Posted April 26, 2017 Report Share Posted April 26, 2017 @loveindia Quote Link to comment Share on other sites More sharing options...
khabardar Posted April 26, 2017 Report Share Posted April 26, 2017 post ur qustins 1st Quote Link to comment Share on other sites More sharing options...
SwamyRaRa Posted April 26, 2017 Report Share Posted April 26, 2017 52 minutes ago, khabardar said: post ur qustins 1st Gp Quote Link to comment Share on other sites More sharing options...
Renault Posted April 26, 2017 Author Report Share Posted April 26, 2017 Please answer below q'ns When inserting a record into a table having an identity column, how do you capture the newly-generated number 1. How would you capture the last identity value created by your database session (assuming other connections are actively inserting records into the same table)? How would you run a dynamically-generated T-SQL string? When running a dynamically-generated T-SQL string, which method has a chance of reusing query plans? What tools do you use when determining query performance? 1. When using SQL Profiler, what do you measure when comparing the performance of 2 queries that are constructed differently but return the same set of data? What might you see in a query plan that would indicate a potential performance issue? Are there instances where a table scan does not indicate a performance issue? That is, are table scans ok sometime? What is a potential drawback of adding an index to a table? What is a potential drawback of adding an index to a table? 1. How do you check for errors in T-SQL scripts? Quote Link to comment Share on other sites More sharing options...
Android_Halwa Posted April 26, 2017 Report Share Posted April 26, 2017 LTT Quote Link to comment Share on other sites More sharing options...
mtkr Posted April 26, 2017 Report Share Posted April 26, 2017 When inserting a record into a table having an identity column, how do you capture the newly-generated number Scope IDentity 1. How would you capture the last identity value created by your database session (assuming other connections are actively inserting records into the same table)? @@Identity How would you run a dynamically-generated T-SQL string? Exec and sp_executesql When running a dynamically-generated T-SQL string, which method has a chance of reusing query plans? sp_executesql What tools do you use when determining query performance? SQL traces and Database engine tuning advisor What might you see in a query plan that would indicate a potential performance issue? Depends... cost, indexes, seek or scan.... Are there instances where a table scan does not indicate a performance issue? That is, are table scans ok sometime? Good on small data tables... What is a potential drawback of adding an index to a table? Adds disk space... slows onserts and updates,,... How do you check for errors in T-SQL scripts? using Try Catch block Quote Link to comment Share on other sites More sharing options...
mtkr Posted April 26, 2017 Report Share Posted April 26, 2017 29 minutes ago, Renault said: Please answer below q'ns When inserting a record into a table having an identity column, how do you capture the newly-generated number 1. How would you capture the last identity value created by your database session (assuming other connections are actively inserting records into the same table)? How would you run a dynamically-generated T-SQL string? When running a dynamically-generated T-SQL string, which method has a chance of reusing query plans? What tools do you use when determining query performance? 1. When using SQL Profiler, what do you measure when comparing the performance of 2 queries that are constructed differently but return the same set of data? What might you see in a query plan that would indicate a potential performance issue? Are there instances where a table scan does not indicate a performance issue? That is, are table scans ok sometime? What is a potential drawback of adding an index to a table? What is a potential drawback of adding an index to a table? 1. How do you check for errors in T-SQL scripts? ee anni Qs ki google lo ans untaiiii Quote Link to comment Share on other sites More sharing options...
Android_Halwa Posted April 26, 2017 Report Share Posted April 26, 2017 7 minutes ago, mtkr said: ee anni Qs ki google lo ans untaiiii babu ki google lo question search chesina, answer ela chudalo telidu anukunta Quote Link to comment Share on other sites More sharing options...
sarvamangalam Posted April 26, 2017 Report Share Posted April 26, 2017 atb ltt Quote Link to comment Share on other sites More sharing options...
Renault Posted April 26, 2017 Author Report Share Posted April 26, 2017 1 hour ago, mtkr said: When inserting a record into a table having an identity column, how do you capture the newly-generated number Scope IDentity 1. How would you capture the last identity value created by your database session (assuming other connections are actively inserting records into the same table)? @@Identity How would you run a dynamically-generated T-SQL string? Exec and sp_executesql When running a dynamically-generated T-SQL string, which method has a chance of reusing query plans? sp_executesql What tools do you use when determining query performance? SQL traces and Database engine tuning advisor What might you see in a query plan that would indicate a potential performance issue? Depends... cost, indexes, seek or scan.... Are there instances where a table scan does not indicate a performance issue? That is, are table scans ok sometime? Good on small data tables... What is a potential drawback of adding an index to a table? Adds disk space... slows onserts and updates,,... How do you check for errors in T-SQL scripts? using Try Catch block thanks baaa Quote Link to comment Share on other sites More sharing options...
Renault Posted April 26, 2017 Author Report Share Posted April 26, 2017 1 hour ago, mtkr said: ee anni Qs ki google lo ans untaiiii ee q'n ki kuda ans cheppu ba..google la dorkatle When using SQL Profiler, what do you measure when comparing the performance of 2 queries that are constructed differently but return the same set of data? Quote Link to comment Share on other sites More sharing options...
mtkr Posted April 27, 2017 Report Share Posted April 27, 2017 15 hours ago, Renault said: ee q'n ki kuda ans cheppu ba..google la dorkatle When using SQL Profiler, what do you measure when comparing the performance of 2 queries that are constructed differently but return the same set of data? profiler use cheyyaled bro eppudu... http://stackoverflow.com/questions/7569186/compare-two-sql-server-profiler-traces @Renault Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.