BUG: Sp_cursor: The Parameter 'Table' Is Invalid w/Long DB Names

Last reviewed: August 19, 1997
Article ID: Q172615
The information in this article applies to:
  • Microsoft SQL Server, version 6.5
BUG #: 17157 (NT)

SYMPTOMS

If a client application references a table using the database..tablename syntax and requests server side cursors, (not a Transact-SQL ANSI cursor) the following error will occur when performing an insert into the database..tablename, if the combination of database plus tablename is greater than 28 characters:

   Msg 16902, Level 16, State 1
   sp_cursor: The parameter 'table' is invalid

WORKAROUND

To work around this problem, do any one of the following:

  • Limit the length of your database plus tablename to less than or equal to 28 characters.
  • If your application only references one database, reference the table by the tablename, and do not use the database..tablename syntax.
  • Have your application use ODBC cursors instead of server side cursors.

STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server version 6.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional query words: table name
Keywords : kbbug6.50 SSrvProg kbprg kbusage
Version : 6.5
Platform : WINDOWS
Issue type : kbbug
Solution Type : kbworkaround


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: August 19, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.