human
Give me a Python function to store a program on a sql server.
assistant
Here is a Python function to store a program with parameters

import json

def sql_server_stored_proc_with_params(proc_name, proc_params):
    """Return a stored proc with params."""
    return "%s(%s)" % (proc_name, ",".join(["%s=%s" % (k, v) for k, v in list(proc_params.items())]))

# Enter the stored proc name and the stored proc params
proc_name = "test_proc"
proc_params = {"param1": "value1", "param2": "value2"}

# Calling the function
print((sql_server_stored_proc_with_params(proc_name, proc_params)))

#Example Output
# test_proc(param1=value1,param2=value2)

#Remember to inspect code for bugs.