adspace


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.

Answer Posted / sumesh.tc

SELECT syscomments.text AS text
FROM sysobjects INNER JOIN
syscomments ON sysobjects.id =
syscomments.id where sysobjects.name=(stored procedure name)

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?

1023


Equi join and non equi join is possible with sql server?

1134


Why use identity in sql server?

1199


When should you use an instead of trigger?

1052


If you're given a raw data table, how would perform etl (extract, transform, load) with sql to obtain the data in a desired format?

1047


How do I find query history in sql server?

1024


What are wait types?

1249


What is subquery? Explain the properties of a subquery?

1059


Can you index views?

954


What are the kinds of subquery?

1107


Disadvantages of the indexes?

1223


How to remove duplicate rows from table except one?

1088


How to connect php with different port numbers?

1189


What is acid mean in sql server?

1245


Can we shrink data file in sql server?

1128