|
|
@@ -28,12 +28,10 @@ namespace UAS_MesInterface
|
|
|
if (Environment.ToUpper() == "MES")
|
|
|
{
|
|
|
ConnectionStrings = "Password=select!#%*(;User ID=MES;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.230.200)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));";
|
|
|
- connection = new OracleConnection(ConnectionStrings);
|
|
|
}
|
|
|
else if (Environment.ToUpper() == "MES_TEST")
|
|
|
{
|
|
|
ConnectionStrings = "Password=select!#%*(;User ID=MES_TEST;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.230.200)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));";
|
|
|
- connection = new OracleConnection(ConnectionStrings);
|
|
|
}
|
|
|
command.Connection = connection;
|
|
|
command.Connection.Open();
|
|
|
@@ -44,12 +42,10 @@ namespace UAS_MesInterface
|
|
|
if (Environment.ToUpper() == "MES")
|
|
|
{
|
|
|
ConnectionStrings = "Password=select!#%*(;User ID=MES;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.230.200)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));";
|
|
|
- connection = new OracleConnection(ConnectionStrings);
|
|
|
}
|
|
|
else if (Environment.ToUpper() == "MES_TEST")
|
|
|
{
|
|
|
ConnectionStrings = "Password=select!#%*(;User ID=MES_TEST;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.230.200)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));";
|
|
|
- connection = new OracleConnection(ConnectionStrings);
|
|
|
}
|
|
|
try
|
|
|
{
|