I copy a project (A to B)
In project B ,I set the connectionpool(just changed the database name, both of two are in the same instance named "sqlexpress") :
in project A:
pool.Initialize("net.sourceforge.jtds.jdbc.Driver", "jdbc:jtds:sqlserver://localhost:1433;Instance Name=SQLEXPRESS;database=liusql","sa","XXXXX")
in project B
pool.Initialize("net.sourceforge.jtds.jdbc.Driver", "jdbc:jtds:sqlserver://localhost:1433;Instance Name=SQLEXPRESS;database=food","sa","XXXXX")
Now,the question is coming:
I can't connect the table in food(database),
whatever I changed the database name, It always connect the liusql.
so weird?
error information:
database list:
In project B ,I set the connectionpool(just changed the database name, both of two are in the same instance named "sqlexpress") :
in project A:
pool.Initialize("net.sourceforge.jtds.jdbc.Driver", "jdbc:jtds:sqlserver://localhost:1433;Instance Name=SQLEXPRESS;database=liusql","sa","XXXXX")
in project B
pool.Initialize("net.sourceforge.jtds.jdbc.Driver", "jdbc:jtds:sqlserver://localhost:1433;Instance Name=SQLEXPRESS;database=food","sa","XXXXX")
Now,the question is coming:
I can't connect the table in food(database),
whatever I changed the database name, It always connect the liusql.
so weird?
error information:
database list:
Last edited: