Results 1 to 2 of 2

Thread: Openrowset

  1. #1
    Join Date
    Nov 2003
    Posts
    2

    Unanswered: Openrowset

    Hi,

    I am trying to execute a Stored procedure of SQL 2000 from Sql 7 using OPENROWSET.

    There are some # tables, that are created within the SP..


    select a.* from OpenRowset('MSDASQL', 'DRIVER={SQL Server}; SERVER=<SERVERNAME>;UID=<USER>;PWD=<PWD>;DataBase= <DB>','exec <Procedure>')AS a

    I am getting the following Error Msg..

    [OLE/DB provider returned message: [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name '#HASHTABLE'.]

    can anyone suggest, what could be the reason for this ??

  2. #2
    Join Date
    Nov 2002
    Location
    Jersey
    Posts
    10,322
    I'd say you have a problem in the sproc...can ypu look at the code?
    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.

Posting Permissions

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