data insert during SQL 2016 AOG failover.


I am using tools, , from this link: to test SQL server 2016 AOG write operation.

I run the 'order-insert' and I see that this tools will keep writing to one of DB and I tried to do the SQL 2016 AOG failover while this application is inserting records, and what i found out is, the record will still be inserted JUST AFTER AOG failover done.

but it seems once it is done the insert (for records it is trying during failover), this application stopped to insert data, the connection string it use is:

Server= tcp:<SQL AOG listener>,1433;Database=<database name> ;Integrated Security=true;Column Encryption Setting=disabled;Max Pool Size=250;

Open in new window

So this mean this application can't keep the insert operation when it see AOG is failovering, any way to make such kinds of operation can detect AOG failover and keep inserting data once failover is done.
marrowyungSenior Technical architecture (Data)Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vitor MontalvãoMSSQL Senior EngineerCommented:
What's the returned error?
marrowyungSenior Technical architecture (Data)Author Commented:
that application from that link, the *.zip files do'nt show errors! I also want that.

that connection string is the default when you launch that application.
marrowyungSenior Technical architecture (Data)Author Commented:
actually this the same related issue of my other post,

from SSMS, when I do a long select i see this error when failovering:

Msg 10054, Level 20, State 0, Line 14
A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 。)

Open in new window

Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

Vitor MontalvãoMSSQL Senior EngineerCommented:
Are you sure you're using the Listener name instead of the Server name?
marrowyungSenior Technical architecture (Data)Author Commented:
yes sir!

you are telling me you don't have it .
marrowyungSenior Technical architecture (Data)Author Commented:
I tried that using server local version of SSMS, it seems it is the SSMS version problem! but what I found out is sth else, the AOG failover will WAIT until the existing select query is finished, not that good, right?
Vitor MontalvãoMSSQL Senior EngineerCommented:
Not sure. Unfortunately I don't have any AOG available to perform tests.
marrowyungSenior Technical architecture (Data)Author Commented:
do you think that behavour is normal ?
Vitor MontalvãoMSSQL Senior EngineerCommented:
I don't have enough information to say if it's normal or not.
marrowyungSenior Technical architecture (Data)Author Commented:
I am sorry, what should I give you to  make information complete?

if it keep waiting like this ! then in a very busy transaction system , it will wait forever.
Vitor MontalvãoMSSQL Senior EngineerCommented:
I mean, I don't have access to the system to perform the necessary troubleshooting.
Vitor MontalvãoMSSQL Senior EngineerCommented:
By the way, Edwin Sarmiento (the guy that knows A LOT of AOG)  just posted this article recently. I think it will be very useful for you to read it and see if it helps you solving this issue.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
marrowyungSenior Technical architecture (Data)Author Commented:
ok. let's see.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.