Connection string causes "identity" problems

M

Maury Markowitz

After some experimentation last night I changed our connection string to
avoid using ODBC. The string used to be:

"ODBC;DSN=OurServer;Database=OurDB;UID=;PWD="

And I changed it to:

"Provider=sqloledb;Data Source=OurServer;Initial Catalog=OurDB;Integrated
Security=SSPI;"

Everything seemed to work OK, but I didn't test it fully. When new rows are
entered into tables with auto-id's, and we have lots of those, Access returns
an error about not being able to fetch the identity:

"Identity cannot be determined for newly inserted rows."

Can anyone suggest why this might be happening. I got the string right from
connectionsstrings.com, and like I said, everything else seems to work fine.

Maury
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top