What string do I use to connect to an SQL Server?

后端 未结 2 394
失恋的感觉
失恋的感觉 2021-01-28 03:05

I\'m trying to execute an SQL Job using a CRM Workflow by making a custom activity. In my code, an online tutorial had me construct it like this (in c#):

[CrmWo         


        
2条回答
  •  臣服心动
    2021-01-28 04:02

    Ok, I think I figured it out now.

    Because there is only one instance of SQL running on our server, I don't actually need to use the ServerName\InstanceName format. Both hbssql2008 and HBSSQL2008 allow me to connect. In addition, the IP works as well.

    Also, another issue I came across was the the user name and password I was using was from Windows Integrated Security, not the sql server's security. Therefore, I created a new account on the server with appropriate permissions and sql security info and it allowed me to connect.

    Thank you all for your help!

提交回复
热议问题