본문 바로가기
반응형

개발언어/SQL46

MSSQL 2008 R2 Transaction 로그삭제 (100MB로 제한) MSSQL 트랜젝션 및 쿼리 속도가 느려질 때 Log 자르기 처리를 하여야 합니다. /* MSSQL 2008 R2 Transaction 로그삭제 (100MB로 제한) */ use tax000003 ALTER DATABASE [tax000003] SET recovery simple GO DBCC SHRINKFILE ('tax000003_log', 100); GO ALTER DATABASE [tax000003] SET recovery full GO 쿼리 속도가 느려지는 원인은 여러가지 있습니다. http://www.dbguide.net/db.db?cmd=view&boardUid=13767&boardConfigUid=9&categoryUid=216&boardIdx=66&boardStep=1 위의 상세한 설명이.. 2014. 2. 26.
Mysql if exists insert 하기 Mysql에서 데이타 존재여부를 확인하여 insert 처리를 하려고 합니다. MSSQL처럼 if exists로 쉽게 처리할 수 있을거라고 생각했지만 고생을 조금하였네요. not exists 의 경우 제약사항이 있어 mssql처럼 if then 문으로 처리는 불가능하지만 where에서 어느정도 처리를 할 수 있었습니다. MYSQL - IF NOT EXISTS ... INSERT INTO 처리를 하려면 where에 넣어야 합니다. 아래의 쿼리는 제가 작성한 쿼리입니다. 간단히 ofgroupprop 테이블에 '0000007' 이 존재하지 않으면 insert하는 간단한 코드입니다. INSERT INTO ofgroupprop (groupName, name, propValue) SELECT groupName, na.. 2011. 12. 1.
SQLite 어셈블리어 실행오류 - BadImageFormatException이(가) 처리되지 않았습니다. BadImageFormatException이(가) 처리되지 않았습니다. 파일이나 어셈블리 'System.Data.SQLite, Version=1.0.76.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' 또는 여기에 종속되어 있는 파일이나 어셈블리 중 하나를 로드할 수 없습니다. 프로그램을 잘못된 형식으로 로드하려고 했습니다. System.BadImageFormatException: Could not load file or assembly 'System.Data.SQLite, Version=1.0.65.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. An attem.. 2011. 11. 12.
SQLite - Unable to load DLL 'SQLite.Interop.DLL' DllNotFoundException이(가) 처리되지 않았습니다. DLL 'SQLite.Interop.dll'을(를) 로드할 수 없습니다. 지정된 모듈을 찾을 수 없습니다. (예외가 발생한 HRESULT: 0x8007007E) SQLite을 이용하여 Conncet을 하려는 데 오류가 발생하였다. 해결책 Robert Simpson saids The only time you'll ever see any reference to SQLite.Interop.DLL is if you downloaded the provider source code and compiled it yourself in Debug mode. In Release mode, the SQLite.Interop.DLL doesn't exist. .. 2011. 11. 11.
반응형