Hello All,
After reading in this group about the preference for connecting to a SQL
Server using a connection string instead of a DSN file, I have done just
that.
BUT, I cannot update my data. I have gone back and forth between using a DSN
file and a DSN-less connection string and I have found the following issue.
When I utilize the DSN file to create the link, there is a step where it
asks me to identify a unique key for the file. If I do not identify a unique
key, then I am unable to update data.
My question is whether it is possible to identify the unique key in my
connection string? I assume that there is another parameter for specifying
the unique key. I have seached around in the A2k help files and in Google
but haven't found a listing of all of the possible parameters. Here is my
current code:
strTable = "Roster"
strConnect =
"ODBC;Driver=SQ LServer;Server= SQL04/INST04;Database =SQLEmployeeTra cking"
set db = CurrentDB
set tdf = db.CreateTableD ef(strTable)
tdf.Connect = strConnect
tdf.SourceTable Name = strTable
db.TableDefs.Ap pend tdf
Thank you in advance,
Fred Zuckerman
San Diego, CA, USA
After reading in this group about the preference for connecting to a SQL
Server using a connection string instead of a DSN file, I have done just
that.
BUT, I cannot update my data. I have gone back and forth between using a DSN
file and a DSN-less connection string and I have found the following issue.
When I utilize the DSN file to create the link, there is a step where it
asks me to identify a unique key for the file. If I do not identify a unique
key, then I am unable to update data.
My question is whether it is possible to identify the unique key in my
connection string? I assume that there is another parameter for specifying
the unique key. I have seached around in the A2k help files and in Google
but haven't found a listing of all of the possible parameters. Here is my
current code:
strTable = "Roster"
strConnect =
"ODBC;Driver=SQ LServer;Server= SQL04/INST04;Database =SQLEmployeeTra cking"
set db = CurrentDB
set tdf = db.CreateTableD ef(strTable)
tdf.Connect = strConnect
tdf.SourceTable Name = strTable
db.TableDefs.Ap pend tdf
Thank you in advance,
Fred Zuckerman
San Diego, CA, USA
Comment