Groups | Blog | Home
all groups > sql server programming > january 2005 >

sql server programming : Two Methods of retrieving SQL



Deepson Thomas
1/18/2005 10:47:04 PM

Hi,
i was just going thru the interview questions in web for SQL. There in
almost all sites i found this questions without answer. Can anybody help me
by giving an answer for this ?? The questions is only this much "Two Methods
of retrieving SQL"

Thanks in advance. waiting for ur reply

--
Keith Kratochvil
1/19/2005 6:38:18 AM
Well, the question is not a question because it does not have a question
mark. How can you answer something that is not a question? The sentence
that you provided is more of a statement than a question.

Without proper context it is difficult to determine what the "question" is
asking.
Do they want you to retrieve the Transact-SQL that makes up stored
procedures and views? You can use sp_helptext.
Do they want you to retrieve the sql statements that are being executed by a
user? If so you can use Profiler, DBCC INPUTBUFFER, or fn_get_sql. Read up
on these within Books Online (within the SQL Server program group).

--
Keith


[quoted text, click to view]
Ross Presser
1/19/2005 10:06:09 AM
[quoted text, click to view]

It's not even a statement. It's a noun phrase. There is no action and no
Keith Kratochvil
1/19/2005 10:08:29 AM
In any case it is a long way from a question. If it was phrased that way it
should be corrected!

--
Keith


[quoted text, click to view]
AddThis Social Bookmark Button