Hi Krzysztof,
It seems as if you can't do that. Look at this code:
----------------
def execute_procedure(proc_name, *variables)
vars = variables.map{ |v| quote(v) }.join(', ')
sql = "EXEC #{proc_name} #{vars}".strip
name = 'Execute Procedure'
...
-----------------
It seems parameters are split, 'special characters' escaped and passed to the SP.
I guess it'll be possible to create another function to pass named parameters, but that means the stored procedure creator has to have set defaults as otherwise the stored proc will throw an error for missing parameters that do no have defaults set.
I've just discovered Ruby and it seems a fantastic language and I'm just starting to investigate DB functionalities ... currently looking at tinyTDS
Justin