PC Review


Reply
Thread Tools Rate Thread

C# ASPnet SQL Connection string question

 
 
Jason Huang
Guest
Posts: n/a
 
      28th Sep 2005
Hi,

Will it make it any difference if I replace the 'data source' in the
"data source=MyServer;uid=SA;password=MyPwd;database=MyDB"
with IP, e.g.,192.168.1.1? Where MyServer's IP is 192.168.1.1.
We are thinking if the Primary SQL Server failed, then we just change the
BackUP SQL server's IP,
(givent that the Primary and BackUP SQL Server are syncronized to some
extent),
so that our application could come back running real soon.
Please give me advise. Many thanks in advance.

Jason


 
Reply With Quote
 
 
 
 
carion1
Guest
Posts: n/a
 
      28th Sep 2005
In DNS add a generic host name pointed at the primary server. If the
primary ever goes down you simply change the IP in DNS to point at the back
up. You could also use Windows Clustering Service.

--

Derek Davis
(E-Mail Removed)

"Jason Huang" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> Will it make it any difference if I replace the 'data source' in the
> "data source=MyServer;uid=SA;password=MyPwd;database=MyDB"
> with IP, e.g.,192.168.1.1? Where MyServer's IP is 192.168.1.1.
> We are thinking if the Primary SQL Server failed, then we just change the
> BackUP SQL server's IP,
> (givent that the Primary and BackUP SQL Server are syncronized to some
> extent),
> so that our application could come back running real soon.
> Please give me advise. Many thanks in advance.
>
> Jason
>
>



 
Reply With Quote
 
Nick Malik [Microsoft]
Guest
Posts: n/a
 
      28th Sep 2005
Since DNS can take time to clear the cache, using DNS as part of a manual
failover process has to be practiced to make sure that the manual fail-over
instructions are correctly followed and have a timely effect. Don't assume
this will work out of the gate.

There is nothing wrong with coding the IP address in the connection string.
This is a quick and efficient way to set up the backup. That said, if you
are planning to change the config file, you could put the name of the backup
db server just as easily.

Remember to set up a mechanism for the data in the backup db to be up to
date with the data in the primary db. search for Log Shipping and SQL
Clustering (two different mechanisms).

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"carion1" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> In DNS add a generic host name pointed at the primary server. If the
> primary ever goes down you simply change the IP in DNS to point at the
> back up. You could also use Windows Clustering Service.
>
> --
>
> Derek Davis
> (E-Mail Removed)
>
> "Jason Huang" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi,
>>
>> Will it make it any difference if I replace the 'data source' in the
>> "data source=MyServer;uid=SA;password=MyPwd;database=MyDB"
>> with IP, e.g.,192.168.1.1? Where MyServer's IP is 192.168.1.1.
>> We are thinking if the Primary SQL Server failed, then we just change the
>> BackUP SQL server's IP,
>> (givent that the Primary and BackUP SQL Server are syncronized to some
>> extent),
>> so that our application could come back running real soon.
>> Please give me advise. Many thanks in advance.
>>
>> Jason
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ADO connection string question Corta Microsoft Access 0 17th Oct 2007 04:35 PM
Connection string question Tony Girgenti Microsoft ADO .NET 6 4th Apr 2007 05:31 PM
Connection String question - accessing one string throughout solut =?Utf-8?B?Z2FyeSBnLg==?= Microsoft Dot NET 2 26th Apr 2006 06:48 PM
ASPNET Access Connection String Question =?Utf-8?B?U2lzbmF6?= Microsoft ASP .NET 5 16th Jul 2005 04:53 PM
Connection String question William Microsoft VB .NET 4 29th Jul 2004 08:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:24 AM.