What is the process for linking a bank account to a demat account?

What is the procedure to link a bank account to a demat account for transactions?,