我创建了一个访问 SQL 数据库的 Windows 服务。连接字符串是从 app.config 文件中获取的。
以下是连接字符串的格式
connectionString="Integrated Security=SSPI;Persist Security Info=False;server=xxxxx\SQLEXPRESS;database=Sample;uid=sa;password=xxxxx;Trusted_Connection=False"
Windows 安装程序帐户类型是 LocalSystem。此服务在某些系统上成功运行,但在某些系统上显示“SA”登录失败。
请提出解决方案。