New version: Download link:     This new example showing how to create stored procedure on MS SQL, and how to get variable from SQL Query (TransactSQL) to AutoIt Func _Example_MSSQL_COMMAND_StoredProcedure() Local $oCOMERRHander = ObjEvent("AutoIt.Error", _ADO_COMErrorHandler) #forceref $oCOMERRHander Local $sDriver = 'SQL Server' Local $sDatabase = 'YourBASENAME' ; change this string to YourDatabaseName Local $sServer = 'loc