all groups > sql server clustering > november 2007 >
You're in the

sql server clustering

group:

Database mirroring - Client redirection


Database mirroring - Client redirection Peter
10/28/2007 9:15:00 AM
sql server clustering:
Helo,
i install and configure database mirroring in SQL 2005 with automatic
failover. Client aplications use ADO.NET or the native SQL Server client
driver to connect to database. I know i have to write next connection string:
"Data Source=ServerA;Failover Partner=ServerB;Initial
Catalog=AdventureWorks;Integrated Security=True;"
but the problem is i dont know where. Is there any file on aplication server
that i have to change with this string so that ADO.NET or native SQL client
driver will know what the is second server.
I am only administrating server and dont know much about programing SQL so i
would apreciate any help or link for solution.

Thanks
RE: Database mirroring - Client redirection Linchi Shea
10/28/2007 5:56:00 PM
This is a problem on the client side and it depends on how the client
accesses the connection string. If the client hardcodes the connection
string, you would have to modify the source code and recompile. Hopefully,
this is not case. Often, the client may read the connection string from a
config file. In the case, you can just modify the config file.

So to find out where, you should ask the owners of the client applications.
If you have no clue where you may find the connections strings, chances are
you are not the right person to make the change.

Linchi

[quoted text, click to view]
RE: Database mirroring - Client redirection Peter
10/29/2007 12:00:00 AM
The problem here is that i have to migrate all database from multi sql server
to one server. Currently there are around 8 aplication who use SQL (wsus,
MOM, desktopautority, SIM, sharepoint...). I was hoping that it would be more
easy. :)

What about NLB with SQL mirroring. I test it today and still aplication
didnt want to connect to mirror database. Didnt put a lot of effort yet, but
would that work?

Thanks.

[quoted text, click to view]
RE: Database mirroring - Client redirection Linchi Shea
10/29/2007 5:43:02 PM
I'm not up to date with NLB. But if it's still just for load balancing, I
doubt you should configure it with databbase mirroring since database
mirroring is not meant for load balancing. Note that the standby is not
available, so there is nothing to load balance with.

Linchi

[quoted text, click to view]
Re: Database mirroring - Client redirection Luca Bianchi
11/2/2007 8:25:52 AM
[quoted text, click to view]

....unless you create a snapshot on mirror database...
But in this way you have a secondary db alligned to snapshot time and you
could use it only for reporting and other activity that don't require you
real time data...
It's not properly load balancing but it's a way to reduce some activity on
principal database...

[quoted text, click to view]

Ciao


--
Luca Bianchi
Microsoft MVP - SQL Server
http://community.ugiss.org/blogs/lbianchi
Re: Database mirroring - Client redirection Linchi Shea
11/2/2007 9:19:00 AM
[quoted text, click to view]

That setup would not make sense at all. On one computer, you have a
read/write database and on the other computer you have this snapshot that is
read only. If NLB directs a read/write SQL statement to the snapshot
computer, you are hosed. And if you statically direct all the read-only
queries to the snapshot, you don't need NLB at all.

Linchi

[quoted text, click to view]
AddThis Social Bookmark Button