SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 How do I add a row to when a column is read only?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Xarzu
Starting Member

25 Posts

Posted - 04/18/2013 :  15:47:05  Show Profile  Reply with Quote
How do I add a row to when a column is read only? I think this issue I am having is because I am using an ID field (column) that is automatically generated and incremented whenever a new row is added in Microsoft SQl Server Management Studio, I cannot manually change an ID field and it appears a different (grayer) color.

Somehow, once, after I entered all the other items in the row and hit "Enter" on my keyboard, I managed to have a row added and the ID field was automatically generated. The problem is that it did not seem to add it out of sequence. I do not know why it would be 159 and not 157



I deleted the row and tried again. This time, it gave me an error:



When I try to edit the field by hand, it seems i am not allowed to:



Please advise.

I am using SQL Server 2008 R2

Here are the version numbers:

Microsoft SQL Server Management Studio 10.50.2500.0
Microsoft Analysis Services Client Tools 10.50.2500.0
Microsoft Data Access Components (MDAC) 6.1.7601.17514
Microsoft MSXML 3.0 4.0 5.0 6.0
Microsoft Internet Explorer 9.0.8112.16421
Microsoft .NET Framework 2.0.50727.5466
Operating System 6.1.7601

visakh16
Very Important crosS Applying yaK Herder

India
52249 Posts

Posted - 04/19/2013 :  02:22:26  Show Profile  Reply with Quote
are you sure its not an identity column ?

Also why are you adding the records through GUI? why not use INSERT t-sql statement instead?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000