I have a couple of "classic" ASP apps that need to connect to a SQL Server database that is using database mirroring. Can ASP handle the failover in a similar way to ASP.NET? As in if I adjust the connection string to put the failover server details?
Can classic ASP handle SQL Server mirroring failovers?
1.1k Views Asked by Piers Karsenbarg At
2
There are 2 best solutions below
1
Mike Verrier
On
Why not just let MSSQL do the job or you.
In your web.config set your connection string this way :
<connectionStrings>
<add name="myConnection" connectionString="Data Source=myDBServerAddress;
Failover Partner=myDBMirrorServerAddress;Initial Catalog=myDataBase;
Integrated Security=True;"
providerName="System.Data.SqlClient" />
</connectionStrings>
Related Questions in SQL-SERVER-2008
- Why does the following script throw database still in use when selecting the master database first?
- Return Duplicate Rows
- SQL Data entry - finding sequence to enter info
- Why is this query in SSMS showing columns/tables as numbers?
- Query from multiple tables based on the table name?
- How to Let Python Connect to a SQL Server Database
- Need to fetch Minimum value for Each Id and make the BidSuccess column to 1
- Spring Boot Scheduled Annotation Job Issue
- Use different WHERE clause based on condition?
- Error when inserting special characters such as Ñ and accents á, é, í, ó, ú. using BULK OPENROWSET from python
- Delete all records except the max value of a group
- How to use SQL Server stored procedures in React js express server
- Loop through date in SQL Server and exclude the dates within a range of one week
- Find amount greater than the average amount
- Update trigger - both INSERTED and DELETE hold same value after update
Related Questions in ASP-CLASSIC
- How can I execute logic code on ASP Classic Server side by using Jquery ajax?
- Migrating an ASP application between services shows ODBC Driver error: data source name not found
- Varchar(max) causing other other accesses of the record set to return null
- ASP Classic / JS multi select filter
- Missing VBScript.Encrypt on Windows Server 2019
- How to identify a user's location
- ASP Fix/Int functions not behaving as expected
- ASP Classic 3rd Party DLL Registration
- How To Capture Form Data using OnChange
- Stream response in a file
- iis 8.5, how to set visitor permission only on current site?
- How do you replace the last comma with "and" in a comma-separated string?
- CRUD operation not work with ADODB and SQL server using MSOLEDBSQL19 Provider and "strict" option (TLS1.3)
- Using a specific User/Domain in a Msxml2.ServerXMLHTTP request in classic ASP
- JavaScript won't execute when calling webpage via VBScript using XMLHttpRequest
Related Questions in DATABASE-MIRRORING
- Exception during db mirroring failover to SQL Server 2022 from previous version
- GCP Database migration service for Postgres - how to migrate a database with a name other than "postgres"?
- MySQL Replication VS Mirroring and how to do both?
- How to do Delayed Replication on MySQL 8?
- Sending SQL alert when WITNESS is disconnected
- How to do mirroring or replication in table level in SQL Server with SQL Query
- The Mirror Monitoring Log contains a gap of several hours - why?
- 'distributor_admin' is not defined as a remote login at the server, login failed for user 'distributor_admin'
- SQL Server 2016 Standard - High performance (async) mirroring
- Using DFS-R instead of mirroring on SQL Server
- Set database to single user mode for database involved in database mirroring session or an availability group
- Mirror Relational Databases to RethinkDB?
- SQL How to make principle db mirror and mirror db principle
- An error occurred in a Service Broker/Database Mirroring transport connection endpoint, Error: 8474, State
- How to set up database mirroring and failover?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Yes, as far as the ASP application is concerned, it is seen as a host. If you have automatic failover setup, SQL server will deal with everything. If you have manual failover, you may need to change the host in the connection string. Everything else will then work as normal.