Skip to content

Question: calling stored procedure which returns values #426

@Radamonas

Description

@Radamonas

Reviewed documentation on calling stored procedures and SQL commands, and I would like to know:

  1. is it possible to retrieve and pass further stored procedure output into the pipeline? Based on the documentation: ToSqlCommand always returns the input events as is.;
  2. if script used in ToSqlCommand has variable declarations like:
DECLARE @typeVar Char(1) = 'A';
SELECT * FROM dbo.myTable WHERE type = @typeVar;

How we could use @ within, isn't it reserved for parameter injection from upper stream? Checked the code, and its a bit strange to use @ for params, as @ is used in MS SQL for variable definitions and @@ for system variables as well.

Metadata

Metadata

Assignees

Labels

documentationDocumentation may be added or completed on the portal

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions