G
Guest
Hi!
I have an Access front end with linked SQL tables through a DSN. I need
to distribute the application, but, I can't be creating DSN's on user
workstations. Nor can I create DSN's on the fly. And, no, I can't use an
ACCESS project for this application either.
I thought there was a way I could change the connection attributes of
linked tables so that they were linked using an ado connection rather than an
odbc connection, but I can't quite figure that out.
When you right-mouse click on one of the linked tables and select "Design
View", you're taken to the screen that lets you see all the tables fields and
all their properties. From there, if you select the "Properties" button from
the toobar at the top of the screen, that opens up the "Table Properties"
information. Under "Description" I see:
ODBC;DSN=Budget;Description=Budget;UID=Cosmos_Sql;APP=Microsoft Office
2003;WSID=COSMS;DATABASE=Budget;Trusted_Connection=Yes;TABLE=dbo.BudgetInfo
In this connection information, Budget is the name of the DSN, Cosmos_Sql is
the name of the instance of SQL Server that's running on a server on our
network called "COSMOS" The database is Budget and the table name is
"BudgetInfo".
Can I just rewrite this line of information in "Description" to be an ADO
connection instead? What would the syntax for that be? That's partly where
I'm confused. Not only do I NOT know if this will work at all; I don't even
know the correct syntax to make it work if it's supposed to.
Is there another or better way to change the table connections to be DSNless
so my users won't need DSN's and I don't have to work through ODBC?
I know this sounds bad, but we all know that an application is rarely
finished, so I'll probably wind up changing the tables a lot, adding tables,
modifying field attributes, etc. Right now, all I have to do is go into the
Linked Table Manager and relink all the tables to straighten things out, or
link a new table if necessary. I often create views of data to use for
reports, and I'm always adding fields as I need them for a new report or
query, so I need to make sure I can link the views the same way I do now, as
though they were tables.
If I change the table link information in the description to DSNless (ADO)
connections, will the changes I make within SQL Server just automatically be
there or will I continue to need to 'relink' them?
Any advice or guidance would be greatly appreciated.
Thanks!
Karen Grube
I have an Access front end with linked SQL tables through a DSN. I need
to distribute the application, but, I can't be creating DSN's on user
workstations. Nor can I create DSN's on the fly. And, no, I can't use an
ACCESS project for this application either.
I thought there was a way I could change the connection attributes of
linked tables so that they were linked using an ado connection rather than an
odbc connection, but I can't quite figure that out.
When you right-mouse click on one of the linked tables and select "Design
View", you're taken to the screen that lets you see all the tables fields and
all their properties. From there, if you select the "Properties" button from
the toobar at the top of the screen, that opens up the "Table Properties"
information. Under "Description" I see:
ODBC;DSN=Budget;Description=Budget;UID=Cosmos_Sql;APP=Microsoft Office
2003;WSID=COSMS;DATABASE=Budget;Trusted_Connection=Yes;TABLE=dbo.BudgetInfo
In this connection information, Budget is the name of the DSN, Cosmos_Sql is
the name of the instance of SQL Server that's running on a server on our
network called "COSMOS" The database is Budget and the table name is
"BudgetInfo".
Can I just rewrite this line of information in "Description" to be an ADO
connection instead? What would the syntax for that be? That's partly where
I'm confused. Not only do I NOT know if this will work at all; I don't even
know the correct syntax to make it work if it's supposed to.
Is there another or better way to change the table connections to be DSNless
so my users won't need DSN's and I don't have to work through ODBC?
I know this sounds bad, but we all know that an application is rarely
finished, so I'll probably wind up changing the tables a lot, adding tables,
modifying field attributes, etc. Right now, all I have to do is go into the
Linked Table Manager and relink all the tables to straighten things out, or
link a new table if necessary. I often create views of data to use for
reports, and I'm always adding fields as I need them for a new report or
query, so I need to make sure I can link the views the same way I do now, as
though they were tables.
If I change the table link information in the description to DSNless (ADO)
connections, will the changes I make within SQL Server just automatically be
there or will I continue to need to 'relink' them?
Any advice or guidance would be greatly appreciated.
Thanks!
Karen Grube