51 lines
1.9 KiB
Plaintext
51 lines
1.9 KiB
Plaintext
<%
|
|
'=======================================================================
|
|
'업 무 명 : KRI-common
|
|
'모듈기능 : 데이터베이스 서버 연결자 설정
|
|
'파 일 명 : DBSrv.asp
|
|
'작성일자 : 2004/10/09
|
|
'작 성 자 : 김홍완
|
|
'-----------------------------------------------------------------------
|
|
'변경일자 변경자 변동내역
|
|
'=======================================================================
|
|
'
|
|
'=======================================================================
|
|
'Response.Expires = -1
|
|
%>
|
|
<%
|
|
|
|
'//-------------------------------
|
|
'//-- hwkim 2020-08-19 17:28:41
|
|
Dim rs_ip: rs_ip = Request.ServerVariables("REMOTE_ADDR"): 'Response.Write ip
|
|
Dim rs_DevNode: rs_DevNode = "real"
|
|
|
|
If( rs_ip = "10.10.13.82" or rs_ip = "10.10.13.115" or rs_ip = "10.10.13.117" or rs_ip = "10.10.13.118" or rs_ip = "10.10.13.130" )Then
|
|
rs_DevNode = "dev"
|
|
|
|
'response.write "----------------"& fncRequestVariables("LOCAL_ADDR") &"<br>"
|
|
'response.write "----------------"& fncRequestVariables("REMOTE_ADDR") &"<br>"
|
|
|
|
Else
|
|
rs_DevNode = "real"
|
|
End if
|
|
'-------------------------------//
|
|
'
|
|
rs_DevNode = "real"
|
|
|
|
'서버 디비 연결자
|
|
'**************************************
|
|
Dim DBConCapi, DBConKrcSurvey, DBConKon
|
|
|
|
DBConCapi = "Provider=SQLOLEDB;User Id=sa;PWD=krco#51304;Data Source=1.235.195.34;Initial Catalog=capi;" 'capi 디비연결
|
|
DBConKrcSurvey = "Provider=SQLOLEDB;User Id=sa;PWD=krco#51304;Data Source=1.235.195.34;Initial Catalog=krc_survey;" 'krc_survey 디비연결
|
|
|
|
If( rs_DevNode = "dev" )then
|
|
DBConKon = "Provider=SQLOLEDB;User Id=kon;PWD=kon#51304;Data Source=10.10.13.177,1313;Initial Catalog=kon;" 'K-ON 개발 디비연결
|
|
else
|
|
DBConKon = "Provider=SQLOLEDB;User Id=kadmin;PWD=it#51304;Data Source=mssql-7sq2n-kr.vpc-pub-cdb.ntruss.com;Initial Catalog=konkiwi;" 'K-ON 디비연결
|
|
end if
|
|
|
|
'response.write "----------------"& DBConKon &"<br>"
|
|
|
|
%>
|