Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MS SQL implementation does not retrieve all overloads of SPs #7

Open
shantstepanian opened this issue Apr 25, 2017 · 1 comment
Open
Labels

Comments

@shantstepanian
Copy link
Contributor

shantstepanian commented Apr 25, 2017

Search GITHUB#7 in code for examples

Update 2017-11-18: A few thoughts

  1. sp_helptext: Will return the value for an overloaded procedure, but this is not easily queryable

  2. sql_modules or INFORMATION_SCHEMA is the preference according to SQL Server docs; however, it does not work for overloads

select object_name(object_id), definition
from sys.sql_modules as m
join sys.procedures as p
on m.object_id = p.object_id

  1. syscomments does work (similar to Sybase ASE); however, we'd need to update the AbstractDbMetadataDialect class and add a method like searchExtraRoutineInfo (akin to searchExtraViewInfo)

select obj.name name, com.number number, obj.type, com.texttype
--, colid2 colid2
, colid colid, text text
from dbdeploy03..syscomments com
, dbdeploy03..sysobjects obj
, dbdeploy03..sysusers sch
where com.id = obj.id
and obj.uid = sch.uid and sch.name = 'dbo'
and obj.type in ('P','FN')
and com.texttype = 0
order by com.id, number
--, colid2
, colid

@shantstepanian shantstepanian modified the milestone: 6.3.0 Jul 23, 2017
@shantstepanian shantstepanian modified the milestones: 6.3.0, 6.4.0 Oct 1, 2017
@shantstepanian shantstepanian removed this from the 6.4.0 milestone Nov 19, 2017
@shantstepanian
Copy link
Contributor Author

Deprioritizing this for now as it is not critical for our deployment activity

We should also evaluate the JTDS driver to see if it helps anything here: #114

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant