허당 레몬도리
[Windows] bat 파일 ip 가져오기

출처 : https://blog.fabioiotti.com/ip-address-batch/ This is a way to get the computer's IP address from a Batch script with a single line of code. Jump to TL;DR for the copy-paste ready code.So... what do we need the IP address of this computer for? Do we need the our network address or our public address?Getting Local IP AddressIf the IP we need is the internal address (the one within current ne..

mongodb Index 정보 보기

var collectionNames = db.getCollectionNames(); for(var i = 0, len = collectionNames.length; i

Mongodb 쉘 스크립트 사용

What you want is: mongo sm-repository2.db.qa.test.com:27017/testdb --eval "db.stats()"Or for longer scripts: mongo sm-repository2.db.qa.test.com:27017/testdb script.js 출처 : http://stackoverflow.com/questions/4837673/how-to-execute-mongo-commands-through-shell-scripts

MongoDB Qurey

Insert // 한개db.getCollection('restaurants').insert( { item: "box", qty: 20 } ) // 여러개 db.getCollection('restaurants').insert( [ { _id: 11, item: "pencil", qty: 50, type: "no.2" }, { item: "pen", qty: 20 }, { item: "eraser", qty: 25 } ] ) Update db.books.update( { item: "XYZ123" }, { item: "XYZ123", stock: 10, info: { publisher: "2255", pages: 150 }, tags: [ "baking", "cooking" ] } ) 위와 같이 명령을 실행..

Stairway to SQL Server Replication(MSSQL 리플리케이션 설명)

Stairway to SQL Server Replication SQL Replication can solve many problems in running database-driven applications. The publication/subscriber model isn't completely easy to understand, the complexities of scripting and monitoring replication systems takes some thought. Here, at last, is a series of articles that takes care to produce a jargon-free approach to SQL Server Replication of all types..

[MSSQL]Procedure, Function 등에서 사용되는 문자열 검색하기

--사용 방법 프로시저에 특정문자가 있는 프로시저를 찾고 싶을 때 사용--조회 : 이름, 타입DECLARE @p_SearchText nvarchar(MAX)SET @p_SearchText = '*'select t1.name, t1.typefrom sys.objects t1where exists ( select 'x' from syscomments t2 where t1.object_id = t2.id and t2.text like '%' + @p_SearchText + '%' ) 출처 : http://cooldragon.tistory.com

WMI공급자에 연결할 수 없습니다 . 권한이 없거나 서버에 연결할 수 없습니다. SQL Server 구성관리자에서는 SQL Server2005 서버만관리할 수 있습니다. 지정된 모듈을 찾을 수 없습니다 0x8007007e

에러메시지 WMI공급자에 연결할 수 없습니다 . 권한이 없거나 서버에 연결할 수 없습니다. SQL Server 구성관리자에서는 SQL Server2005 서버만관리할 수 있습니다. 지정된 모듈을 찾을 수 없습니다 0x8007007e Cannot connect to WMI provider. You do not have permission or the server is unreachable. Note that you can only manage SQL Server 2005 and later servers with SQL Server Configuration Manager. The specified module could not be found. 0x8007007e 해결 Copy the file: "frame..

article thumbnail
Windows 7 Oracle 10g 설치

프로젝트에 Oracle이나 MSSql 프로시저로 한다는 말에 일단 Oracle을 설치해 보았다. 파일 다운로드는 http://www.oracle.com 현재(2010.05.19) 경로는 http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10203vista.html 다운 받고 압축을 풀면 아래와 같은 경로에 보면 Setup.exe 파일이 있다 하지만 Windows 7이라면 잠시 Setup.exe를 실행시키고 싶은 욕구(?)를 참고 \stage\prereq\db \stage\prereq\db_prereqs\db 두 폴더에 있는 refhost.xml 를 메모장이나 기타 에디트 가능한 프로그램을 열어보자 ....생략.... ..