- Posts: 291
- Thank you received: 8
User-defined parameter
1 year 2 months ago - 1 year 2 months ago #21930
by Bozik
Peter
Product: Visual Importer Enterprise & Active Table Editor
Repository: Microsoft SQL Server - 11.0.2100.60
Windows: Server 2012 Standart 64Bit
User-defined parameter was created by Bozik
Is it possible to limit the result by a parameter specified by the user?
I have a table with more than a million rows, but I don't need all of them at once, even if I know that a filter is then possible but loading and then searching is time consuming.
If it were possible to define a parameter by the user for SQL, e.g. parOrderId = 1456 or parOrderIDfrom = 1 and parOrderIdTo = 10 it would be possible to limit the size of the result.
Thanks
I have a table with more than a million rows, but I don't need all of them at once, even if I know that a filter is then possible but loading and then searching is time consuming.
If it were possible to define a parameter by the user for SQL, e.g. parOrderId = 1456 or parOrderIDfrom = 1 and parOrderIdTo = 10 it would be possible to limit the size of the result.
Code:
Select * from tbl.oders whrere OrderId between parOrderIDfrom and parOrderIDto
Thanks
Peter
Product: Visual Importer Enterprise & Active Table Editor
Repository: Microsoft SQL Server - 11.0.2100.60
Windows: Server 2012 Standart 64Bit
Last edit: 1 year 2 months ago by Bozik.
Please Log in or Create an account to join the conversation.
1 year 2 months ago - 1 year 2 months ago #21931
by admin
Mike
ETL Architect
Replied by admin on topic User-defined parameter
Select * from tbl.oders whrere (OrderId =1 or <Parameter>=1)
- When <Parameter> is 0 only OrderId =1 is returned
- When <Parameter> is q only all records are returned
Mike
ETL Architect
Last edit: 1 year 2 months ago by admin.
Please Log in or Create an account to join the conversation.
1 year 2 months ago #21932
by Bozik
Peter
Product: Visual Importer Enterprise & Active Table Editor
Repository: Microsoft SQL Server - 11.0.2100.60
Windows: Server 2012 Standart 64Bit
Replied by Bozik on topic User-defined parameter
I think we didn't understand each other..
The user does not have now the option to limit the result set with the parameter. Or?
The user does not have now the option to limit the result set with the parameter. Or?
Code:
Select * from tbl.Orders where OrderId=<userdefinedparameter>
Peter
Product: Visual Importer Enterprise & Active Table Editor
Repository: Microsoft SQL Server - 11.0.2100.60
Windows: Server 2012 Standart 64Bit
Please Log in or Create an account to join the conversation.
1 year 2 months ago #21933
by admin
Mike
ETL Architect
Replied by admin on topic User-defined parameter
Mike
ETL Architect
Please Log in or Create an account to join the conversation.
1 year 2 months ago #21934
by Bozik
Peter
Product: Visual Importer Enterprise & Active Table Editor
Repository: Microsoft SQL Server - 11.0.2100.60
Windows: Server 2012 Standart 64Bit
Replied by Bozik on topic User-defined parameter
This is fine but the user cannot enter/change it operatively... it's the same as if I defined it in SQL .. unfortunately it does not solve our problem

Peter
Product: Visual Importer Enterprise & Active Table Editor
Repository: Microsoft SQL Server - 11.0.2100.60
Windows: Server 2012 Standart 64Bit
Please Log in or Create an account to join the conversation.
1 year 2 months ago #21936
by admin
Mike
ETL Architect
Replied by admin on topic User-defined parameter
That only means that we have to modify our software to suit your needs.
We will have a look at it for you.
That might take a while though
We will have a look at it for you.
That might take a while though
Mike
ETL Architect
Please Log in or Create an account to join the conversation.