ASP. NET link database problem, set favorite site, set homepage

Source: Internet
Author: User
Tags mssqlserver

SQL Server 2008 Additional database failure: Unable to open physical file Deny access workaround

The physical file "E:\SQLDATA\EMSXDB.mdf" could not be opened. Operating system error 5: "5 (Access denied. )"。 (Microsoft SQL Server, error: 5120)

This is due to permissions issues, there are two workarounds: one is to move the MDF and LDF files to the database data directory (for example, D:\Program Files\Microsoft SQL Server\mssql10_50.mssqlserver\mssql\ DATA), and the second is to modify the MSSQLServer service logon identity as the local system account.

Previously with win8.1 can be directly attached, now with WIN10 preview version is the problem is many AH.

Bookmark this site, set as homepage

<a href= "javascript:void (0);" id= "setHomePage" onclick= "this.style.behavior= ' url (#default #homepage) '; This.sethomepage (' your homepage '); return (false); "Style=" Behavior:url (#default #homepage); " > Set as Home </a>
<span style= "Cursor:hand" onclick= "Window.external.addFavorite (', ' My Site ')" > Favorites </span>

<a href= "javascript:void (0)" onclick= "Sethome (this,window.location)" > Set homepage </a>
<a href= "javascript:void (0)" onclick= "Addfavorite (window.location,document.title)" > Add to Favorites </a>

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
Set homepage, add to favorite case
</title>
<script type= "Text/javascript" language= "JavaScript" >
function Addfavorite (sURL, Stitle)
{
Try
{
Window.external.addFavorite (sURL, stitle);
}
catch (E)
{
Try
{
Window.sidebar.addPanel (Stitle, sURL, "");
}
catch (E)
{
Alert ("Add to collection failed, please use ctrl+d for adding");
}
}
}
function Sethome (OBJ,VRL)
{
Try
{
Obj.style.behavior= ' url (#default #homepage) '; Obj.sethomepage (VRL);
}
catch (e) {
if (Window.netscape) {
try {
Netscape.security.PrivilegeManager.enablePrivilege ("Universalxpconnect");
}
catch (e) {
Alert ("This action is rejected by the browser!") \ n Please enter "About:config" in the browser address bar and return to \ n and set [Signed.applets.codebase_principal_support] to ' true ');
}
var prefs = components.classes[' @mozilla. Org/preferences-service;1 '].getservice ( Components.interfaces.nsIPrefBranch);
Prefs.setcharpref (' Browser.startup.homepage ', VRL);
}
}
}
</script>
<body>
<div>
<a href= "javascript:void (0)" onclick= "Sethome (this,window.location)" > Set homepage </a>
<a href= "javascript:void (0)" onclick= "Addfavorite (window.location,document.title)" > Add to Favorites </a>
</div>
</body>

Purely for reference, hoping to help people in need.

ASP. NET link database problem, set favorite site, set homepage

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.