由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - DSN-less connection to SQL server
相关主题
how to link to remote access database?Alternative to Embedded SQL for MS SQL Server
get value returned by SQLstored procedure from python (转载)create table on SQL server from python pyodbc (转载)
run SQL stored procedure from pythonpypyodbc error access netezza SQL server on win7
大俠 问个关于asp连SQL server的问题可不可以用asp把Server上的数据另存到本地
Question about DSN (for oracle)newbie's question:想用vb.net做数据库程序,
怎么从VBA里读SQL procedure?我的code有什么问题?Question
wuwu... I hate doing this...One question on SQL Server
大家关于用VC透过ODBC来操作SQL数据库是什么看法?question on SQL Server
相关话题的讨论汇总
话题: sql话题: server话题: odbc话题: dsn话题: connection
进入Database版参与讨论
1 (共1页)
b******u
发帖数: 676
1
still old question:
I have a SQL server db and some Access front-end reports. I will have multiple
users that need to use the Access reports. I don't want to set system DSN for
everyone of them. because that would make it hard for me to modify my tables
since every time I would need to refresh the linked table for every computer.
So, I am trying to write a DSNless connection:
strCnct = "ODBC; DRIVER=SQL
server;SERVER=myServer;DATABASE=myDB;UID=myUser;PWD=myPWD"

DoCmd.TransferDatabase acLink,
k*******d
发帖数: 237
2
As what I know, ODBC is the only way for connection between SQL Server and
Access. Even you set up a connection string, Access still askes you for the
ODBC information including UID and PWD.
My suggestion is: set up a system DSN without login information, for all
users. When user uses access, it will ask user to input the login information.

multiple
for
computer.
still

【在 b******u 的大作中提到】
: still old question:
: I have a SQL server db and some Access front-end reports. I will have multiple
: users that need to use the Access reports. I don't want to set system DSN for
: everyone of them. because that would make it hard for me to modify my tables
: since every time I would need to refresh the linked table for every computer.
: So, I am trying to write a DSNless connection:
: strCnct = "ODBC; DRIVER=SQL
: server;SERVER=myServer;DATABASE=myDB;UID=myUser;PWD=myPWD"
:
: DoCmd.TransferDatabase acLink,

b******u
发帖数: 676
3
Thanks a lot for your help.
I can do something like
strCnct = "ODBC; DRIVER={SQL
server};SERVER=ABC-SQL-01;DATABASE=ABC2;trusted_connection=yes"
As I understand it, the "trusted_connection=yes" is supposed to antomatically
use the UserName and Password that the person used to log into thier windows
boxes. This way I don't need a login screen...
sigh. but I still get same error...

information.
tables
"ODBC:

【在 k*******d 的大作中提到】
: As what I know, ODBC is the only way for connection between SQL Server and
: Access. Even you set up a connection string, Access still askes you for the
: ODBC information including UID and PWD.
: My suggestion is: set up a system DSN without login information, for all
: users. When user uses access, it will ask user to input the login information.
:
: multiple
: for
: computer.
: still

b******u
发帖数: 676
4

This one I understand..What I am trying to get, is a DSN-less ODBC connection.
I assume it's not too hard to do. For example ADO/RDO are all doing this,
right?
information.
tables
"ODBC:

【在 k*******d 的大作中提到】
: As what I know, ODBC is the only way for connection between SQL Server and
: Access. Even you set up a connection string, Access still askes you for the
: ODBC information including UID and PWD.
: My suggestion is: set up a system DSN without login information, for all
: users. When user uses access, it will ask user to input the login information.
:
: multiple
: for
: computer.
: still

D****N
发帖数: 430
5
Try distributing it with a file dsn.
[ODBC]
DRIVER=SQL Server
UID=myUser
PWD=myPWD
Trusted_Connection=NO
DATABASE=myDB
APP=MicrosoftAccess
SERVER=myServer
It'd still be an ODBC datasource but doesn't need setting up..

【在 b******u 的大作中提到】
: still old question:
: I have a SQL server db and some Access front-end reports. I will have multiple
: users that need to use the Access reports. I don't want to set system DSN for
: everyone of them. because that would make it hard for me to modify my tables
: since every time I would need to refresh the linked table for every computer.
: So, I am trying to write a DSNless connection:
: strCnct = "ODBC; DRIVER=SQL
: server;SERVER=myServer;DATABASE=myDB;UID=myUser;PWD=myPWD"
:
: DoCmd.TransferDatabase acLink,

1 (共1页)
进入Database版参与讨论
相关主题
question on SQL ServerQuestion about DSN (for oracle)
SQL Server 和Access到底有多大区别怎么从VBA里读SQL procedure?我的code有什么问题?
SQL server Express 怎么加 link tablewuwu... I hate doing this...
Help on SQL 2012 Add a Linked Server through ODBC大家关于用VC透过ODBC来操作SQL数据库是什么看法?
how to link to remote access database?Alternative to Embedded SQL for MS SQL Server
get value returned by SQLstored procedure from python (转载)create table on SQL server from python pyodbc (转载)
run SQL stored procedure from pythonpypyodbc error access netezza SQL server on win7
大俠 问个关于asp连SQL server的问题可不可以用asp把Server上的数据另存到本地
相关话题的讨论汇总
话题: sql话题: server话题: odbc话题: dsn话题: connection