Jump to content

MSBI lo pani chese vallu randi va plz.. ..help plz..


Renault

Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Ā 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...