sp_lock1 MS-SQL 알면 유용한 명령어 MS-SQL 알면 유용한 명령어 생성된 오브젝트 리스트 얻기 (테이블, 뷰, 프로시저 등...) -- 생성된 테이블, 뷰, 프로시저 정보 확인 select * from sysobjects where type = 'U' U : User Table S : System Table P : Procedure V : View Table K : Primary Key F : Foreign Key -- 테이블 리스트 확인 sp_tables; -- 테이블정보 확인 sp_columns 테이블명 select a.* from syscolumns a join sysobjects b on a.id = b.id where b.name = '테이블이름' MS-SQL 버전 확인 select @@version lock정보 확인 및 처리 .. 2022. 5. 10. 이전 1 다음