Hi Gregory, Even when I added the identity to an int column in the database, I cant use it for editing tha datagrid & writing the values back to the SQL database. I am too confused at the moment.please help
Hi Gregory, Even when I added the identity to an int column in the database, I cant use it for editing tha datagrid & writing the values back to the SQL database. I am too confused at the moment.please help
After you added the identity column - did you make it the key? I'm guessing the problem is that your table isn't keyed, in which case neither the CommandBuilder or the configuration wizard is of any use for Updates. -- W.G. Ryan, MVP www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com use multiple IDENTITY although posted the table have one. of MS not ,
Yes Ryan , the problem is that my table isnt Keyed. Thats bcoz when i try to create a field in the table as the primary key , it is not made bcoz i get the alert message that aTEXT DATA TYPE cant be made a primary key. I have that field as TEXT DATA TYPE coz that filed should have voth numeric digits & characters. Is there any other data type which supports both numeric & character values?
1.PRIMARY KEY required for WRITING data to SQL DATABASE using DATA G
I am posting this question here too coz I was not sure whether I had posted this earlier in the right group. I need an editable datagrid. But for editing a datagrid as shown in the walkthrough: Using a DataGrid Web Control to Read and Write Data, the table in the SQL database should have a primary key. But my table doesnt have one. So what is the best way I can create primary key in SQL database? Is UNIQUE IDENTIFIER a good option? Is it something like Auro Number of MS Access which is automatically filled by the database for each row? If not , how can i make a primary key for that SQL table? -- pmud
2.PRIMARY KEY required for WRITING to SQL DATABASE using DATA GRID?
I need an editable datagrid. But for editing a datagrid as shown in the walkthrough: Using a DataGrid Web Control to Read and Write Data, the table in the SQL database should have a primary key. But my table doesnt have one. So what is the best way I can create primary key in SQL database? Is UNIQUE IDENTIFIER a good option? Is it something like Auro Number of MS Access which is automatically filled by the database for each row? If not , how can i make a primary key for that SQL table? -- pmud
3.Primary key and identity fields information got lost by "Import Da
Hi all! I want to import data from Sql Server 2000 into Sql Server 2005. When i select "Import Data" in 2005 and import tables directly from the 2000 Data Source, the primary keys and the identity fields information is lost in 2005. Who knows why? Best regards Ulrich Schumacher
4.delete one secondary data file and increase size of primary da
5.Cannot add primary key constraint since primary key is already set for the table
Hi, I am getting the following error when I run my Visual Basic application: "Cannot add primary key constraint since primary key is already set for the table" I am using datasets with primary keys which are filled from an SQL Server database. These datasets were automatically generated in Visual Studio. Now, the application worked fine for a while until I added buttons onto a form. I did not touch any datasets or the data in the database. I did not touch the file in which the error is thrown. Does anybody know what causes this error? I have searched extensively on Microsoft and Google, and the only solution I can find is to remove the primary key constraints in the dataset. I would be grateful if there was another solution to this rather frustrating problem. Thankyou Stephen.
6. Primary Keys : Distributed Database : Not using GUID or Indentity columns
7. Primary Key fields require index?
8. How to tell if primary key is used as foreign key before deleting
Users browsing this forum: No registered users and 96 guest