Hi Saiyam,
Greetings! Thank you for posting to Microsoft Community.
I find a reference may help.
Open ADO connection and Recordset objects - SQL Server | Microsoft Learn
==================================
Sub runstoreproc()
Dim conn As New adodb.Connection
Dim cmd As New adodb.Command
Dim strconn As String
strconn = "Driver=HanaAkash;" & "Server=xxx.xxx.xx.xx;" & "UID=SYSTEM;PWD=ABC@12345;" & "Database=mydatabase;" & "Trusted_Connection=yes;"
conn.Open strconn
cmd.ActiveConnection = conn
cmd.CommandType = adCmdStoredProc
cmd.CommandText = "mystoreproc"
cmd.Execute
Set cmd = Nothing
Set conn = Nothing
End Sub
==================================
Best Regards,
Snow Lu