如何将已部署的程序与数据库连接 [英] How to connect deployed program with Database

查看:84
本文介绍了如何将已部署的程序与数据库连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想在我的计算机上设置特定的自定义程序,并且我有SQL Server 2005,
我将程序的mdf文件附加到SQL Sever 2005,
但是当我尝试启动自定义程序消息时,提示:



连接失败:
SQLState:``28000''
SQL Server错误:18456
[Microsoft] [ODBC SQL Server驱动程序] [SQL Server]用户"easphr9"的登录失败.


如何使程序与SQL Server 2005连接?

Hi everybody,

I want to set up specific custom program on my computer, and i have SQL Server 2005,
I attached the mdf file of the program to the SQL Sever 2005,
but when i try to start the custom program message appear and tell that:



Connection failed:
SQLState: ''28000''
SQL Server Error: 18456
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user ''easphr9''.


How to make the program connected with SQL Server 2005 ?

推荐答案

检查用户是否在服务器登录名中.
接下来尝试在数据库中重新创建"easphr9"用户.
Check if the user exists in the server logins.
Next try recreating the ''easphr9'' user in the database.


这篇关于如何将已部署的程序与数据库连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆