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?
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] 삭제
몇 마디 만하겠습니다