Skip to content

using Invoke-SqlScalar to execute a store procedure in MySQL not completed/notify completion until timeout of command #172

@Strada-EricFr

Description

@Strada-EricFr

Hi,
I use
Invoke-SqlScalar to call a store procedure in MySQL
The store procedure do a lot of update and takes for example 3700 seconds.

I have trace the process of the store procedure, see the last command (logged in a table that the Store procedure is completed)

The issue:

  • i suse the followig to call store procedure :
    $result = Invoke-SqlScalar -Query $query -ConnectionName $this.Connection.ConnectionName -CommandTimeout 4800 -ErrorAction SilentlyContinue -ErrorVariable SqlError -WarningAction SilentlyContinue

so after 3700 the strore procedure complte on MySQL side, but the run of the Invode-SqlScalar is completed/finish when reach the time of of 4800

Why is the invoke-scalar not notify about the completion/end of the Store Procedure ?

regards

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions