connection string to a SQL Server cluster

后端 未结 4 727
时光说笑
时光说笑 2020-12-17 04:13

Could anyone point me or tell me how to write connection string to a SQL Server cluster instance?

I want to establish trusted connection to a database (initial cata

4条回答
  •  星月不相逢
    2020-12-17 04:45

    This is not documented anywhere that I could find, but I had to use the name of the availability group listener on the cluster. For example:

    data-source=tcp:AG1-Listener
    

    Literally, this is documented nowhere. I got lucky and found a connection string to a cluster on a blog somewhere and figured it out from there.

提交回复
热议问题