Reply to Re: Java DatabaseMetaData and MS SQL 2005

Your name:

Reply:


Posted by Erland Sommarskog on 02/13/07 22:40

(jweaver@xaware.com) writes:
> I'm having a problem getting back appropriate metadata for stored
> procedures from MS SQL Server 2000 and 2005.
>
> I've created a simple stored procedure that has an output param that
> is a cursor.
>
> When I ask for the metadata for that stored procedure using a JDBC
> driver I get back a datatype value for my parameter specifying an int
> not a result set.

I'm not really sure that I understand what you get back, but since there
is no result set from this procedure, you can't get back any information
about it.

Anyway, cursor is something you should avoid. In most caes, you should
look for a set-based solution. Cursors can be magnitudes slower.



--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация