Results 1 to 4 of 4

Thread: Not to display

  1. #1
    Join Date
    Oct 2003
    Posts
    83

    Unanswered: Not to display

    I want to to run a query which will not display anything.Means display would be restrickted only a message like 'This commands run successfully' will be enough.
    That is thing I like to have in Grid.

  2. #2
    Join Date
    Nov 2002
    Location
    Jersey
    Posts
    10,322
    Can you post the statement? What do you mean by "grid"? QA?

    What does the statement do?
    Brett
    8-)

    It's a Great Day for America everybody!

    dbforums Yak CorralRadio 'Rita
    dbForums Member List
    I'm Good Once as I ever was

    The physical order of data in a database has no meaning.

  3. #3
    Join Date
    Jun 2003
    Location
    Ohio
    Posts
    12,592
    Provided Answers: 1
    You are writing a query that does nothing? Is this a government contract?

    Try this to return your message:
    select 'This commands run successfully'

    Or this to return nothing at all:
    select 1 where 1 = 0

    blindman

  4. #4
    Join Date
    Jun 2003
    Location
    Ohio
    Posts
    12,592
    Provided Answers: 1
    ...or do you mean you don't want all the processing comments to display, in which case put the following statement at the start of code:

    SET NOCOUNT ON

    blindman

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •