How can I change properties of FK in SQL Server database project?

Arseni Mourzenko

When working on an SQL Server database project in Visual Studio 2012, I'm encountering a strange issue. While I can easily modify the properties of a table, column or primary key, the Properties fields other than "(Name)" are disabled for foreign keys.

Why? Is there something I can do to be able to edit foreign keys directly through the Properties tab, or modifying them through the T-SQL pane is the only way?

여기에 이미지 설명 입력

Karunish

Try this cheat.

Open the corresponding table out of VS using a notepad and change the table.sql file permissions from read only to editable. After this, update the foreign key and save table.sql file.

이제 다시 한 번 VS 테이블 디자이너에서 테이블을 열면 작동합니다. 파일을 tfs에 연결 한 경우 파일에 대한 더미 체크 아웃 및 체크인을 수행하여 TFS에서도 최신 파일을 사용할 수 있는지 확인할 수 있습니다.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

how can we change the date format of SQL Server(2008) Database?

분류에서Dev

How can I access a SQL Server database with . in name via set-location

분류에서Dev

Change LogOn properties of a SQL server instance

분류에서Dev

How can I make large IN clauses more efficient in SQL Server?

분류에서Dev

In SQL Server, how can I compare a part of a string?

분류에서Dev

How can I start using MS-SQL Server ( express )

분류에서Dev

How can I back up a stored procedure in SQL Server?

분류에서Dev

SQL Server : How can I enable/reconfigure xp_cmdshell through a linked server

분류에서Dev

How to import huge blob into SQL Server database?

분류에서Dev

How to change the name of table in SQL Server that is a keyword

분류에서Dev

How can I use a Maven project as a dependency to another Maven project?

분류에서Dev

How can I do this as 1 database query?

분류에서Dev

열이 PK 및 FK 둘 다인 SQL Server

분류에서Dev

FK 제약 조건 WITH CHECK 추가 (SQL Server)

분류에서Dev

How can I import existing local tatuk shape to ms sql server

분류에서Dev

How can I insert a record retrieved from an ms access table into an sql server table?

분류에서Dev

How can I use a CASE condition based on a junction table in SQL Server?

분류에서Dev

How can I change the prompt of the terminal permanently

분류에서Dev

How can I change the default gateway?

분류에서Dev

How can I change button value with stylish?

분류에서Dev

Docky - how can I change jDownloader icon?

분류에서Dev

How can i change hyperlink color with JQuery?

분류에서Dev

How can I change the default Nautilus Bookmarks?

분류에서Dev

How can I change the colors of the slices of the pie?

분류에서Dev

How can I run a script on resolution change?

분류에서Dev

Can I change how file completion is displayed?

분류에서Dev

How can I change the system font?

분류에서Dev

How can I write the code to get all the properties of a class?

분류에서Dev

How can I have a TextBox style with properties of other TextBox style

Related 관련 기사

  1. 1

    how can we change the date format of SQL Server(2008) Database?

  2. 2

    How can I access a SQL Server database with . in name via set-location

  3. 3

    Change LogOn properties of a SQL server instance

  4. 4

    How can I make large IN clauses more efficient in SQL Server?

  5. 5

    In SQL Server, how can I compare a part of a string?

  6. 6

    How can I start using MS-SQL Server ( express )

  7. 7

    How can I back up a stored procedure in SQL Server?

  8. 8

    SQL Server : How can I enable/reconfigure xp_cmdshell through a linked server

  9. 9

    How to import huge blob into SQL Server database?

  10. 10

    How to change the name of table in SQL Server that is a keyword

  11. 11

    How can I use a Maven project as a dependency to another Maven project?

  12. 12

    How can I do this as 1 database query?

  13. 13

    열이 PK 및 FK 둘 다인 SQL Server

  14. 14

    FK 제약 조건 WITH CHECK 추가 (SQL Server)

  15. 15

    How can I import existing local tatuk shape to ms sql server

  16. 16

    How can I insert a record retrieved from an ms access table into an sql server table?

  17. 17

    How can I use a CASE condition based on a junction table in SQL Server?

  18. 18

    How can I change the prompt of the terminal permanently

  19. 19

    How can I change the default gateway?

  20. 20

    How can I change button value with stylish?

  21. 21

    Docky - how can I change jDownloader icon?

  22. 22

    How can i change hyperlink color with JQuery?

  23. 23

    How can I change the default Nautilus Bookmarks?

  24. 24

    How can I change the colors of the slices of the pie?

  25. 25

    How can I run a script on resolution change?

  26. 26

    Can I change how file completion is displayed?

  27. 27

    How can I change the system font?

  28. 28

    How can I write the code to get all the properties of a class?

  29. 29

    How can I have a TextBox style with properties of other TextBox style

뜨겁다태그

보관