Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditional in sp_who2

Status
Not open for further replies.
Apr 18, 2002
185
US
When I run sp_who2 active and look at the 'command' field I am seeing many different things including "conditional"

What exactly does "conditional" mean?
 
Books Online has the following definition:

BOL said:
Database Engine command (Transact-SQL statement, internal Database Engine process, and so on) executing for the process.

So I'm going to assume that "Conditional" means the part of the SQL statement the engine is processing (as in the WHERE clause or a JOIN clause). Of course, this is a wild stab in the dark, so if anyone has any better info, I'd love to hear it.



Catadmin - MCDBA, MCSA
"No, no. Yes. No, I tried that. Yes, both ways. No, I don't know. No again. Are there any more questions?"
-- Xena, "Been There, Done That"
 
Can anyone else explain what conditional means?? Is it based on if the sql is doing a conditional statment -- i.e. "if" or "while" ???
 
If you're asking what conditional literally means, it means "a true/false check for a specific criteria". So, a conditional can be found in an IF...ELSE, WHILE...DO, CASE statement or in WHERE / JOIN / HAVING clauses in T-SQL. You can even have a conditional in a SELECT statement if you're using subqueries in your SELECT.

Does that help?



Catadmin - MCDBA, MCSA
"No, no. Yes. No, I tried that. Yes, both ways. No, I don't know. No again. Are there any more questions?"
-- Xena, "Been There, Done That"
 
What I was trying to figure out ... is when it shows up in an sp_who-- what does it mean??
 
Ah, okay. So, MRDenny? SQLBill? You guys are the local gurus. Any thoughts?



Catadmin - MCDBA, MCSA
"No, no. Yes. No, I tried that. Yes, both ways. No, I don't know. No again. Are there any more questions?"
-- Xena, "Been There, Done That"
 
I've never seen that one and unfortunately I'm in a LINUX class, so I don't have access to my books or SQL Server to test it.

-SQLBill

Posting advice: FAQ481-4875
 
Can you run the sp_who2 and paste one of those 'conditional' lines into a post? That might give us an idea of what it is for.

-SQLBill

Posting advice: FAQ481-4875
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top