如何在SSMA将ms访问db转换为sql server和其他问题时存储sql server密码 [英] how to store the sql server password while SSMA is converting a ms access db to the sql server and other questions

查看:81
本文介绍了如何在SSMA将ms访问db转换为sql server和其他问题时存储sql server密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI伙计们,

我现在正在寻找好几个小时找到一个好的解决方案,但我找不到任何答案。

I'm looking for hours now to find a good solution, but I can not find any answer.

我有一个包含大量表单,报告等的MS Access DB ...

现在我总是在MS Access DB上脱机工作,但现在我是2个必须在该数据库上工作的人。

I have an MS Access DB with a lot of forms, reports, etc...
Now I always worked offline on the MS Access DB, but now I we are 2 people that must work on that DB.

所以我决定将Access数据库转换为SQL服务器2014.

使用SSMA工具,它很简单地转换我的所有表并将它们导出到sql server,然后重新链接所有表单,报告到新的链表。到目前为止一切都很好,一切正常。

So I decided to convert the Access DB to SQL server 2014.
With the tool SSMA, it's quit simple to convert all my tables and export them to the sql server, and then relink all forms, reports to the new linked tables. So far so good, all works.

但是每次我们启动MS访问时,我们都必须输入用户名和密码到sql server,这不是我们想要的,我们只是想要使用以下两个选项之一: 

1.我们在将数据库迁移到sql时存储密码

2.转换后我们要使用DNS ODBC已经在我们的计算机上完成的连接。

but every time we startup the MS access, we must enter the username and password to the sql server, this is not what we want, we just want to work with one of these 2 options: 
1. we store the password while migrating the db to sql
2. after conversion we want to use a DNS ODBC connection that is allready made on our computer.

如果我们更改表以搜索新连接,我们选择DNS ODBC连接,(因为我们可以说将密码存储在它),然后所有都是okey,我们删除旧的链接表,将新的重命名为旧表的同名,并且
它的工作原理...只有我们失去了很多设置,就像我们使用旧链接表然后日期很好地显示在我们的表格中,如DD / MM / YYYY,但如果我们使用新的ODBC DNS连接重新链接表,那么日期就搞砸了。

if we change the tables to search for new connection and we do choose our DNS ODBC connection,(since there we can say to store the password in it), then all is okey, we delete the old linked table, rename the new one to the same name of the old table, and it works... only we lose a lot of settings, like if we use the old linked table then dates are fine showed in our forms like DD/MM/YYYY, but if we relink the table with the new ODBC DNS connection, then dates are messed up.

我们有什么方法可以解决这个问题,因为非常非常讨厌将所有设置混合起来p。

is there any way we can solve this, since very very enoying to have all setup mixed up.

然后第二个问题,如果我在他的计算机上将MS访问文件提供给我的伙伴,而他没有任何ssma软件在他的计算机上,他是否可以打开数据库,在其中工作,如果我们在我们的计算机上打开这两个数据库它会工作吗?

and then 2nd question, if I give the MS access file to my partner, on his computer, without he has any ssma software on his computer, will he be able to open the DB,work in it and will it work if we have both on our computer this open?

thx任何线索或小费,经过6个小时的搜索,我必须说我没有找到任何解决方案/答案。

thx for any clue or tip, after 6 hours search, I must say I didn't found any solution/answer.

推荐答案

您好Deech123,



您的意思是在导入或链接时您的SQL Server数据源,它总是需要SQL Server登录密码,如下面的屏幕截图?

Hi Deech123,

Do you mean when you import or link your SQL Server data source, it always require the SQL Server login password like the following screenshot?

这不是SSMA的问题,而是Access。根据我的测试,Access无法存储SQL登录密码。但是,如果您使用Windows身份验证,则无需再输入用户名和密码。



您必须在SQL中为Windows帐户创建登录名它需要的服务器和授予权限。然后创建一个新的数据源并使用Windows NT身份验证。这次我不需要输入密码。请参阅

身份验证在SQL Server中

创建登录

This is not the issue with SSMA, but Access. Based on my test, Access can not store the SQL login password. But if you use Windows authentication, you don't need to enter the username and password any more.

You will have to create a login for your Windows account in SQL Server and grant permissions it needs. Then create a new data source and use Windows NT authentication. This time I don't need to enter the password. Please refer to Authentication in SQL Server and Create a Login.

>>  如果我将MS访问文件提供给我的伙伴,在他的计算机上,没有他的计算机上有任何ssma软件,他是否可以打开数据库,工作,如果我们有这两个在我们的电脑上打开了吗?

是的,他可以使用你的MS访问文件。 SSMA它只是一个迁移工具。但您应该在SQL Server中为您的朋友创建一个新的登录名,以
连接到您的SQL Server。


这篇关于如何在SSMA将ms访问db转换为sql server和其他问题时存储sql server密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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