G
Guest
I have an application I deploy that makes a number of internal SQL calls for
all sorts of purposes. In order to isolate the connection, I used a global
CONST, cnn, that reads:
"ODBC;Database=testing;UID=;PWD=;DSN=SQL Server"
The problem with this approach is that it requires me to set up a SQL Server
DNS on every new machine. Since the hardware guys are there at odd hours,
this invariably leaves new machines without a link in the morning.
Reading over the excellent wiki article on MDAC suggests that this isn't
really the way to do this anyway, and that I should be using a OLE DB link
(is there such a thing in these strings?).
Can anyone recommend a better way of doing this? The connection is the same
one that is being used by the Access application itself, can I use that in my
rstThingy.open "SOMETHING", cnn? Or should I change the connection string and
continue to use that method?
Maury
all sorts of purposes. In order to isolate the connection, I used a global
CONST, cnn, that reads:
"ODBC;Database=testing;UID=;PWD=;DSN=SQL Server"
The problem with this approach is that it requires me to set up a SQL Server
DNS on every new machine. Since the hardware guys are there at odd hours,
this invariably leaves new machines without a link in the morning.
Reading over the excellent wiki article on MDAC suggests that this isn't
really the way to do this anyway, and that I should be using a OLE DB link
(is there such a thing in these strings?).
Can anyone recommend a better way of doing this? The connection is the same
one that is being used by the Access application itself, can I use that in my
rstThingy.open "SOMETHING", cnn? Or should I change the connection string and
continue to use that method?
Maury