.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Kaviya Balasubramanian
Sgraph Infotech
Imran Ghani
Post New Web Links

Can we set up two mirror databases to one principle server in Mirroring?

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :
 

Can we set up two mirror databases to one principle server in SQL Server

Mirroring?




View Complete Post


More Related Resource Links

Fails to run TRN backups on a principle server while the mirror server is offline

  

We have a DB mirror. We run a planned failover from one server to the other and everything worked fine. (including maintenance plan for backup of all types (Full, Diffrential, Log).

Yesterday we stopped the mirror server and everything was fine beside of that the backup log job (Maintenance plan) and another Maintenance plan job worked for all the time the mirror server was down (the jobs usually take 0.5- 5 minutes) and only when the mirror server was back on they finished with the following error:

Database 4 cannot be autostarted during server shutdown or startup

 

Why?


Linq with two databases (oracle and sql server)

  

Hey,
i have a problem to bring the data from the oracle (external database) and the sql server together (with similar data). The linq entities are linked to each other. The structure is like different countries with different cities and so on. To display these "non original linq objects" i need to put them into entities (linked to each other). Now i add some of them to my sql database. But for every entity i must check the connection to the other objects i don't want to add and delete them (otherwise linq will add all the connected objects, even those I don't want to add). If this goes wrong the whole input-method crashes. Is there any other possibility, except from checking every single entity and removing unwanted connections, to handle this procedure?
Thanks a lot, preg


SQL Server Mirroring

  
If when using SQL Mirroring does it replicate both ways I.e Server A and Server with Serve A as principal server, Server A falls over for whatever reason and B then becomes used server. When A comes back online will Server B replicate all changes to A and will B become the Principal server.

Joining tables from 2 SQL Server CE databases

  
Is it possible to join 2 or more tables in different SQL Server CE databases? I am currently using VB.NET 2008 and SQL Server CE 3.5.

(SQL Server 2008) Exporting entire databases to SQL CREATE/INSERT statements

  
Hi All, I'm looking for a way to export SQL Server 2008 (Express or otherwise) databases to CREATE/INSERT statements.  I've seen a million threads (give or take) with instructions for creating large (often illegible) TSQL scripts for the task.  However, I'm hoping that this isn't the only way by which to do it.  I have need to regularly back up the data from existing MS SQL Server DBs (which are used by some of our standard apps) to various other MySQL and PostgreSQL databases (which are used by PHP and Rails web front ends).  I need to export them from MS SQL Server 2008 to a general format (i.e. INSERT statements) and perform regex edits on the file as necessary. FYI, I've written a few applications that connect to the various DBs over ODBC, etc. and transfer the data row by row.  You can image how painful this process is... I realize that there are many tools that do this.  However, most of them approach the issue from the standpoint of migration, and not that of regularly scheduled backups.  Also, this tool will need to eventually be distributed so having to purchase a license for the migration app for each person/group simply isn't feasible. Anyway, if you guys have a quality, straightforward solution to this issue, it would certainly be appreciated. Best.

need help moving System Center SQL Databases to new SQL Server about30 databases to be moved...

  
We are running various System Center products, SCSM, SCVMM, SCCM, DPM, OPALIS. and a few other servers all using the same SQL server, which currently is a VM. We have configured and built a new Physical box that will replace this. In the past we have moved SQL databases by doing a full backup and then restoring the backup on the new server, then renaming the servers, both network name and internal sql name.  This has worked fine in the past. However I've never had to move 30 databases before, nor have I had to move reporting services. Is there a better method. a recomended method? 

Run Reporting services 2005 with databases housed on SQL Server 2008?

  
Hi, I have a RS 2005 install in which the ReportServer and ReportServerTempDB databases reside on a different SQL Server 2005 server. I am planning to upgrade both to 2008 at some point but would like to do the SQL database engine first. So I would be running something like this: Server A: SQL 2005 Reporting Services Server B: SQL 2008 database engine - housing ReportServer and ReportServerTempDB Is this configuration supported? If I do this would I just need to run the DB's in 9.0 compatibility mode until we upgrade the RS server? Would it be better to upgrade the RS box first or both of them at the same time instead of doing the database engine first?

Run Reporting services 2005 with databases housed on SQL Server 2008?

  
Hi, I posted this in the RS forum as well but was thinking it would be better here. I'm not sure if I can move a post to  a different forum or not so sorry for the double post. I have a RS 2005 install in which the ReportServer and ReportServerTempDB databases reside on a different SQL Server 2005 server. I am planning to upgrade both to 2008 at some point but would like to do the SQL database engine first. So I would be running something like this: Server A: SQL 2005 Reporting Services Server B: SQL 2008 database engine - housing ReportServer and ReportServerTempDB Is this configuration supported? If I do this would I just need to run the DB's in 9.0 compatibility mode until we upgrade the RS server? Would it be better to upgrade the RS box first or both of them at the same time instead of doing the database engine first?

SQL Server Security > Logins vs. Databases > Security > Users

  
Why isn't all security needs done just in logins?  When migrating databases, the Logins are not brought over when restoring a backup.  It does not make sense.  Could it not be done all just in the Security > Logins area or why not?  That COULD be designed to track users and rights on various databases rather than a thing owned by each database....Thanks for your time.Gib

SQL Server 2008 Database Restore(Database Mirroring)

  
HI,I tried to impliment Database mirrorin in SQL Server 2008.I have 3 Sqlserver 2008 Eneterprise Edition in 3 diiferent computers with same domain.Pricnicipal server =TCP://SPHDev.sphinet.com.sg:5022.Mirror=TCP://SPHPrimary.sphinet.com.sg:5022 and witness =TCP://wsc211.sphinet.com.sg:5022.But when i click start mirroring button i got an error TITLE: Database Properties------------------------------ An error occurred while starting mirroring. ------------------------------ADDITIONAL INFORMATION: Alter failed for Database 'SPH_MSCRM'.  (Microsoft.SqlServer.Smo) ------------------------------ An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo) ------------------------------ The server network address "TCP://SPHPRIMARY.sphinet.com.sg:5022" can not be reached or does not exist. Check the network address name and that the ports for the local and remote endpoints are operational. (Microsoft SQL Server, Error: 1418).This is the error message i got from Error Log"2009-06-03 17:01:08.89 spid27s     Database mirroring connection error 2 'DNS lookup failed with error: '11001(No such host is known.)'.' for 'TCP://SPHPRIMARY.sphinet.com.sg:5022"I restored Principal server DB  by using RESTORE WITH NORECOVERY and now this  database in mirror server is now look like as DBName(Restoring....).How i can identify

Restoring Databases form SQL Server 2000 and SQL Server 2005 to SQL Server 2008 -Side by Side --he

  
Hi all I Installed SQL Server 2008 R2 in Server and I took backup of all the User databases backup from 2000 and 2005(two instance are running) Now I am doing restore the Databases,while I am restoring I am information icon in bottom of the restore window that is "The Full-Text Upgrade Option server property controls whether full-text indexes are improved,rebuild or reset" that means I have to upgrade full-text indexes or this just inforamtion.If I want find out whither Database using full-text how to check ? once I done this I have to move the users as well.Please dome body share the script you have.   Thanks in AdvanceSNIVAS

Best practices on moving SharePoint databases physically, while keeping them on the same SQL server?

  
I'd need to move the SharePoint 2010 databases (preferably all of them) with as little hassle as possibly from one partition to another. I tried once, and ended up with a broken SharePoint and had to recover from backups. What's the best practices for moving the databases without breaking SharePoint completely in the process? I'm guessing I need to shut down the SharePoint server for this... That's not impossible if needed.

How do I get all databases on a server?

  

For some versions it appears to be "select name from sysdatabases" and for some "sp_databases"

??? - thanks - dave


Very funny video - Reporting as a Metaphor

How do I get all databases on a server?

  

For some versions it appears to be "select name from sysdatabases" and for some "sp_databases"

??? - thanks - dave


Very funny video - Reporting as a Metaphor

get the databases names attached to specific SQL server instance

  

Hi guyz,

How can I get the databases names attached to specific SQL server instance?


SQL SERVER 2008 Replication Databases

  

HI all,

I Need to configure Merge Replication, in this replication Can i chose the Replication Databases Recove model are Simple is there any problem or not, why i am asking this question is, every time my log file size is become very large nearly 250GB. 

Please help me

Thanks, Prasad.  


On Automatic Indexing of SQL Server Databases

  

While SQL queries don't reference indexes explicitly, we all know how important indexes are to database performance. They constitute the backbone of database operations. Indexing currently is a difficult undertaking usually mastered by senior DBAs/developers. What happens if a SQL Server site does not have an indexing expert? Performance will range from less than optimal to unacceptable.

The SQL Server Database Engine has access to all the technical information, albeit not all recorded currently, to enable automating indexing.  The DBA would have to supply query priority information, especially indicate which are the Business Critical queries. It is safe to assume that very frequent queries are Business Critical. However, there are less frequent queries which maybe Business Critical as well.

 

In a nutshell current indexing wisdom: Primary Key columns (this is already automatic), Foreign Key columns and columns in WHERE clause predicates should be indexed.  In addi

Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend