CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: sp_help problem

  1. #1
    Join Date
    Jul 2004
    Location
    Chennai, India
    Posts
    1,064

    sp_help problem

    At Query Anlyser,from Master database, this works
    select * from test..tt
    but not this
    sp_help 'test..tt'
    test is dbname and tt is table name
    any reason?
    Madhivanan

    Failing to plan is Planning to fail

  2. #2
    Join Date
    Nov 2004
    Location
    Poland
    Posts
    1,355

    Re: sp_help problem

    any reason?

    Because!



    The sp_help procedure looks for an object in the current database only.
    So it is by design.

    And So it will work if U do this:
    Code:
     USE test
    EXEC sp_help 'test..tt'
    Best regards,
    Krzemo.

  3. #3
    Join Date
    Jan 2003
    Location
    North Carolina
    Posts
    309

    Re: sp_help problem

    Another way to do is like so

    EXEC test..sp_help 'tt'

  4. #4
    Join Date
    Jul 2004
    Location
    Chennai, India
    Posts
    1,064

    Re: sp_help problem

    Quote Originally Posted by antares686
    Another way to do is like so

    EXEC test..sp_help 'tt'
    Thanks
    It worked
    Madhivanan

    Failing to plan is Planning to fail

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured