× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
tomconrad reported 2018-11-09T22:37:04Z  · Lwaugh last modified 2019-06-03T22:47:48Z

Investigate parameterized SELECT script to export data via "Tools > Export Data"


customer request
Dev
Lisa Waugh
Lwaugh
QA
Priority Low
Complexity Unknown
Component Tools - Export Tool
Version Future

We use "Tools > Export Data" heavily to export data from various databases, and for more than one-off instances we write and save a SELECT statement to retrieve the needed data. In many cases, the SELECT statement does extensive filtering (e.g., by date and organization abbreviation) and those filtering criteria can be used in multiple places within the SELECT SQL. We'd like to declare parameters with those filtering values and then reference the parameters in the SQL, but ADS doesn't like the fact that the SQL used for the exporting the data doesn't begin with SELECT. (We've encountered other situations where we'd like to export with something that doesn't necessarily start with the SELECT keyword, but those are less common.)

For example, we'd like to have something like the following supported:

DECLARE @y INT = 2017;
DECLARE @org_abbrev VARCHAR(16) = 'FIREFLY';

SELECT
...
WHERE
...
AND data_year = @y
AND org_abbrev = @org_abbrev
...

Having to have filtering criteria like that explicitly specified rather than parameterized means we have to go rooting through sometimes elaborate SELECT's, ensuring we find all of the particular places each such criteria is used.

Issue #15643

New
 
 
Completion
No due date
No fixed build
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017