| Author |
Message |
kavaler
Joined: 06 Dec 2012 Posts: 1
|
Posted: Thu Dec 06, 2012 11:26 am Post subject: ConnectionProperties problem |
|
|
Hi!
I have a little problem with connection to Database.
Code:
using (Database dbSource = new Database(), dbTarget = new Database())
{
// create connection to DB
Console.WriteLine("Registering databases...");
dbSource.Register(new ConnectionProperties("TRON\\KAVALER", "db3", "sa", "1"), Options.Default);
dbTarget.Register(new ConnectionProperties("kavasql", "db4", "sa", "2"), Options.Default);
Console.WriteLine("Comparing Databases...");
//code...
}
===============================================
dbTarget.Register(new ConnectionProperties("kavasql", "db4", "sa", "2"), Options.Default); - connection is set
dbSource.Register(new ConnectionProperties("TRON\\KAVALER", "db3", "sa", "1"), Options.Default); - connection is failed
Problem with serverName - "TRON\\KAVALER" .
Error: "ExecuteReader: CommandText property has not been initialized"
How i should type serverName correct? |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group