|
|
@@ -28,10 +28,12 @@ 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();
|
|
|
@@ -42,10 +44,12 @@ 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
|
|
|
{
|