When I open saved sql script into mssqlserver get this error.
How can I solve it?

Wed Feb 15, 2017 3:37 am

SysOpSite Admin

Joined: 26 Nov 2006Posts: 6750

You have darkened one of the important parts there - the server name which it's trying to connect to. That name is likely incorrect, it's not what you enter in SQL Server Management Studio (SSMS). Am I right?
If the server name is correct, when you connect to the server, do you use Windows or SQL authentication?

Lastly, which version of SQL Assistant and SSMS are you using?

Thu Feb 16, 2017 10:49 am

hmahdavi921

Joined: 15 Feb 2017Posts: 2Country: Iran, Islamic Republic of

When i select connect option in sql assistance inside mssql server : connected with out error while if I open saved query get this error.
I think my connection string is right.