User-defined parameter

More
1 year 2 months ago - 1 year 2 months ago #21930 by Bozik
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.
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.

More
1 year 2 months ago - 1 year 2 months ago #21931 by admin
Replied by admin on topic User-defined parameter
Select * from tbl.oders whrere (OrderId =1 or <Parameter>=1)

  1. When <Parameter> is 0 only OrderId =1 is returned
  2. 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.

More
1 year 2 months ago #21932 by Bozik
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?
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.

More
1 year 2 months ago #21933 by admin
Replied by admin on topic User-defined parameter
Sorry about the confusion.
How about this one?


Mike
ETL Architect
Attachments:

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #21934 by Bozik
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 :unsure:

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.

More
1 year 2 months ago #21936 by admin
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

Mike
ETL Architect

Please Log in or Create an account to join the conversation.