Access 2000 MDB with SQL Server Express 2005.
I have upsized my Access database into SSE2005. I had search the net and they say SQL Server needs Primary Keys. Not much details were given and why.
I have a Function to delete/create new link tables in Access which is connected to SSE2005. But the linked tables were unable to insert new records. However, if I do a connection from a named DSN ODBC administrator, it asked for a unique identifier and it worked.
Before I go mucking around my tables in SSE2005. I like to know, do I really need to create a Primary Key – Data Type UniqueIdentifier – RowGuid Yes in every tables in my database.
Now, I know what is a primary/foreign key as I already have it in my Access database. In Access, I don’t need every table to have a Primary Key, just an Index will do.
Now, it seems that SSE2005 requires you to have a Primary Key in every Table. The table was unable to insert a new record if there wasn’t a Primary Key. I have existing Primary Key in my Main Table…fine, no problem. But the Child Tables (one to many) had a Field/Column Index – create the relationship, no luck. Until I created a new Primary Key in each Table, now I can add new records.
Second question, is there a way to code using ODBC connection to create a unique identifier? All I see on the net are codes creating linked tables without the unique identifier and there is no way to create one during the linking. You could create one after the linking but that wouldn’t work.
Anyone got a link or a solution or idea?
I have upsized my Access database into SSE2005. I had search the net and they say SQL Server needs Primary Keys. Not much details were given and why.
I have a Function to delete/create new link tables in Access which is connected to SSE2005. But the linked tables were unable to insert new records. However, if I do a connection from a named DSN ODBC administrator, it asked for a unique identifier and it worked.
Before I go mucking around my tables in SSE2005. I like to know, do I really need to create a Primary Key – Data Type UniqueIdentifier – RowGuid Yes in every tables in my database.
Now, I know what is a primary/foreign key as I already have it in my Access database. In Access, I don’t need every table to have a Primary Key, just an Index will do.
Now, it seems that SSE2005 requires you to have a Primary Key in every Table. The table was unable to insert a new record if there wasn’t a Primary Key. I have existing Primary Key in my Main Table…fine, no problem. But the Child Tables (one to many) had a Field/Column Index – create the relationship, no luck. Until I created a new Primary Key in each Table, now I can add new records.
Second question, is there a way to code using ODBC connection to create a unique identifier? All I see on the net are codes creating linked tables without the unique identifier and there is no way to create one during the linking. You could create one after the linking but that wouldn’t work.
Anyone got a link or a solution or idea?