Red Gate forums :: View topic - ConnectionProperties problem
Return to RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Compare 10
SQL Compare 10 forum

ConnectionProperties problem

Search in SQL Compare 10 forum
Post new topic   Reply to topic
Jump to:  
Author Message

Joined: 06 Dec 2012
Posts: 1

PostPosted: Thu Dec 06, 2012 11:26 am    Post subject: ConnectionProperties problem Reply with quote

I have a little problem with connection to Database.
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...");


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
View user's profile Send private message
Display posts from previous:   
Reply to topic 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