Loading ...

  • Restoring database via SSMS via GUI produces some time lag in doing that. If you want to do the same restore stuff via command it can be an instant process. You can use the following query to restore your database from a backup: RESTORE DATABASE <YourDBName> FROM DISK='<Database backup physical location>' WITH REPLACE
    Raghav Khunger  · 5/31/2013  · 0  · 1427
    Sql sql-server restore
     /5
    Avg: 0 / 5 (0votes)
  • Kill all processes by database name instead of spid
    How often you have to kill processes of a database and run "sp_who2" command and then "kill <spid>" to kill each processes? This is a tedious task. I have written a Stored procedure which you can run in your "master" database and can use it to kill all processes of a database. You need to supply database name onl
    Raghav Khunger  · 5/31/2013  · 0  · 2171
    Sql sql-server kill-process sp_who2
     /5
    Avg: 0 / 5 (0votes)
  • Sometimes it is useful to display IPv4 address in binary to compare it with subnet mask
    Viral Pandya Vasaiwala  · 5/24/2013  · 0  · 5487
    IPV4 Powershell
    4.83 
     /5
    Avg: 4.83 / 5 (1votes)
  • ASP.NET FormsAuthentication Login cookie not working in Internet Explorer 10
    Vivek Thakur  · 5/24/2013  · 0  · 2158
     /5
    Avg: 0 / 5 (0votes)
  • Using devenv.exe /SafeMode allows you to run any version of visual studio (devenv.exe) in SafeMode with 3rd party plugins disabled.
    Raghav Khunger  · 5/22/2013  · 0  · 1780
    visual-studio visual-studio-2010
     /5
    Avg: 0 / 5 (0votes)
  • We shifted one of our sites to new server today. While accessing the new site (which was running on new IP now) I started getting 404 error. I did the ping for that site and it was still whoing the old ip. I tried "ipconfig /flushdns" and it didn't work. I was still seeing the same response.
    Raghav Khunger  · 5/19/2013  · 0  · 3280
    ipconfig-flushdns
     /5
    Avg: 0 / 5 (0votes)
  • Adding line breaks in tooltip text
    Today, I was trying to add line breaks in one of the anchors on my page, I tried various solutions like adding "<br/>" or "\n" to my title text but none of these solutions was working consistent across different browsers. Then I tried the line separator as "&#013;" and it worked.
    Raghav Khunger  · 5/8/2013  · 0  · 8323
    HTML tooltip
     /5
    Avg: 0 / 5 (0votes)
  • To detect the http or https scheme in ASP.NET in server side code we can use Uri.Scheme property. Below is the sample code to do the same: string url = "https://www.yourwebsite.com/"; Uri uri = new Uri(url); string scheme = uri.Scheme; Response.Write(scheme); The output of above code is "https"
    Raghav Khunger  · 5/6/2013  · 0  · 1713
    asp.net
     /5
    Avg: 0 / 5 (0votes)
  • We were getting the following error while trying to access a url from server side code. It was working without any issue locally but after deploying it to remote server we started getting the error: "Navigation error. The remote host name was not found Details" Solution: The solution for this issue was to enter the domain of that url in h
    Raghav Khunger  · 5/3/2013  · 0  · 2287
     /5
    Avg: 0 / 5 (0votes)
  • Page 1 of 1 (9 items)

Filter blogs

Top Producers

Quick Vote

What kind of email newsletter would you prefer to receive from CodeAsp.Net?