What is Flag
Hi,
I am having doubt in flag. plz tell me what is the use of flag in .net and SQL Serevr and why we used it??
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Jul 11, 2011, 3:04 PM
In a database, you could call most boolean fields flags. So a flag could mean Active or Inactive. You could use a one-character field to hold one of many characters (letters) to indicate something. You could use byte fields in the manner that the Wikipedia article describes to contain bit flags that indicate various conditions.
You could use a flag in a loop to indicate things that can result in termination of the loop. A flag could indicate end-of-data and anohter flag could indicate that a certain condition has been met.
You could use a flag as an instance variable that indicates a condition that various members need to use. For example a flag could be used to indicate that an object has been opened.
The word flag in this context is very general.
Vilas GitePosted Jul 11, 2011, 7:58 AM
How to set trace flag in Sql Server?
Please refer:
http://plataan.typepad.com/microsoftdynamics/2007/11/how-to-set-trac.html
If this reply hepls your post…then "MARK AS ANSWER"!
Anil KumarPosted Jul 11, 2011, 7:35 AM
But i have a question that when we should use Flags in our application??
Sam HobbsPosted Jul 7, 2011, 12:23 PM
Dinesh BeniwalPosted Jul 7, 2011, 5:27 AM
Jiteendra SampathiraoPosted Jul 7, 2011, 5:25 AM
Thans vulpes..very Informative.....
Vilas GitePosted Jul 7, 2011, 4:48 AM
HI Anil,
just see:
http://social.msdn.microsoft.com/Forums/en/sqldataaccess/thread/9cb0327e-7fcc-4110-a7c6-c6411e78e36a
----------------------------------------------------------------------------------------------------
If this reply hepls your post…then "MARK AS ANSWER"!
VulpesPosted Jul 7, 2011, 4:41 AM