question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extra metadata lookup for stored procedures with named parameters

See original GitHub issue

When calling a stored procedure with named parameters, the driver does an extra metadata lookup query per each invocation of the stored procedure call. The jTDS driver does not do any metadata lookup, even if parameters are set by name.

Also in case of Stored Procedure Call Stored Procedure directly without calling sp_executesql Ref #263

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:7
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ghostcommented, Oct 1, 2019

Would be really nice to see this released! 😃

2reactions
AfsanehR-zzcommented, Nov 9, 2017

I created pr #547 to address the issue with calling stored procedures directly. I would appreciate getting reviews and feedback on that.

Notice that this still does not have the push for avoiding the metadata lookup with named params. Will be adding that soon to the same pr in another commit.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Parameter List for all SQL Server Stored Procedures and ...
In this tip we look at a simple query you can use to get a list of parameters for all stored procedures and...
Read more >
TSql Getting meta data of stored procedure parameters
It's an attempt to extract your procedure creation up to the 'as'. SELECT --charindex('create proc',[definition]) as SubstringStartLocation ...
Read more >
sp_describe_parameter_encrypti...
Analyzes the specified Transact-SQL statement and its parameters, to determine which parameters correspond to database columns that are ...
Read more >
A complete guide to T-SQL Metadata Functions in SQL Server
This article describes metadata functions in SQL Server using T- SQL. ... views, constraints or stored procedures etc.
Read more >
Azure Data Factory Lookup and Stored Procedure
A typical scenario for using the lookup would be to return one row of data that may include parameters to be used as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found