Files
KON/Lib/DBSrv.asp
2026-08-07 12:53:18 +09:00

55 lines
2.2 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
'-------------------------------//
'서버 디비 연결자
'**************************************
Dim DBConCapi, DBConKrcSurvey, DBConKon, DBConHmcGmc
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 디비연결
DBConHmcGmc = "Provider=SQLOLEDB;User Id=kon;PWD=kon#51304;Data Source=1.235.195.8,20022;Initial Catalog=HMC_2004045;" 'hmc_gmc 디비연결
'DBConHmcGmc = "Provider=SQLOLEDB;User Id=2020poll;PWD=krco#51304;Data Source=1.235.195.8,20022;Initial Catalog=HMC_2004045;" 'hmc_gmc 디비연결
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=kon;PWD=kon#51304;Data Source=1.235.195.8,20022;Initial Catalog=kon;" 'K-ON 디비연결
end if
'response.write "----------------"& DBConKon &"<br>"
%>