Archive | Computer Misc RSS feed for this section

How to check version of odbc

12 Mar

To check for correct version of odbc, below is how to access odbc on Windows 64 bits:

  • odbc 32 bit
    • c:\windows\SysWOW64\odbcad32.exe
  • odbc 64 bit
    • c:\windows\System32\odbcad32.exe



You can also check what verson of odbc are installed by going to:

  • odbc administrator – drivers tab – check if 32/62 dll are installed for the different sw (e.g Oracle, sql server)


Read more:




Error while opening Excel in Sharepoint2010

3 Feb

If you get error

‘Unable to process the request. Wait a few miniutes and try performing this operation again”

you need to edit the file

‘C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML’

Remove/comment out lines containing xls/xlsx

<Mapping FileExtension=”xlsx” RedirectUrlTemplate=”/_layouts/xlviewer.aspx?id=|0″ NoGetRedirect=”TRUE” CreateRedirectUrlTemplate=”/_layouts/xlviewer.aspx?new=1″/>


Reset IIS with through e.g command prompt:

iisreset /restart

Read more




Exchange log full – mailbox in quarantine

1 Oct

Sometimes when you experience Exchange log (disk) is full, and some mailboxes will have the status in quarantine. You can do the following:

  1. Check if any users are in quarantine (powershell)
    • Get-MailboxDatabase|Get-Mailbox |Get-Mailboxstatistics |Select Displayname,IsQuarantined |FT -Autosize | Export-Csv c:\temp\mailboxusers.csv
    • Get-MailboxStatistics -identity USERNAME| FL Isquarantined
  2. Solution
    1. Can wait on for the default 6 hours to let exchange release the quarantine
    2. Delete registry (doesn’t work all the time) – use following powershell to check registry for quarantine mailbox
      • Get-ChildItem -Path HKLM:\SYSTEM\CurrentControlSet\services\MSExchangeIS\$env:COMPUTERNAME\ |
        Where-Object {$_.pschildname -ne ‘logstate’ -and $_.pschildname -notlike ‘public*’} |
        Select-Object -ExpandProperty pschildname |
        ForEach-Object {
        Get-ChildItem -Path HKLM:\SYSTEM\CurrentControlSet\services\MSExchangeIS\$Env:COMPUTERNAME\$_\QuarantinedMailboxes |
        Select-Object -ExpandProperty pschildname |
        Get-Mailbox |
        Select-Object -Property name
    3. dismount and mount the maildatabase (powershell)
      • Dismount-Database -Identity MAILBOXDB-Confirm:$False
      • Mount-Database -Identity MAILBOXDB -Confirm:$False
  3. Check status of the mailboxdatabase:
    • Get-MailboxDatabase -Identity MAILBOXDB -Status | Format-Table Name, Mounted, BackupInProgress, OnlineMaintenanceInProgress


Read more



Reset IIS – clear cache

3 Sep

In order to reset IIS or clear cache, you need to do the following:

  1. iisreset or
  2. remove cache
    • Click “Start” on your server, open “Administrative Tools” and then open the “IIS” program
    • Navigate to the website in IIS from which you want to remove the caching feature
    • Right-click on your website, then click “Properties.”
    • Click “Home Directory,” click “Configuration,” then click “App Mappings.”
    • De-select the “Cache ISAPI Applications” box, then click “OK.”


Read more:




Clear .Net cache

3 Sep

If something strange happens on your application/system, you need to clear .NET cache once in a while. You need to do the following from the command line – you might need to start as administrator:

Del /F /Q /S %LOCALAPPDATA%\Microsoft\WebsiteCache\*.*
Del /F /Q /S %LOCALAPPDATA%\Temp\VWDWebCache\*.*
Del /F /Q /S “%LOCALAPPDATA%\Microsoft\Team Foundation\3.0\Cache\*.*“
Del /F /Q /S “C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\*.*“
Del /F /Q /S “C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\*.*“
Del /F /Q /S “C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\*.*“
Del /F /Q /S “C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\*.*“

This is only an example of .NET version that we have on our system, you need to modify the .NET version to suit yours. If you want to schedule clearing the .net you can put everything above in a .bat file and schedule in it windows scheduler.


Read more:


Find SQL Server running port

24 Mar

In order to find which port the sql server instance is running on – run this query towards the database:

USE master GO xp_readerrorlog 0, 1, N'Server is listening on' GO


FROM sys.dm_exec_connections
WHERE local_tcp_port IS NOT NULL

From the command line when you have PID (task manager for sqlsrv.exe)
netstat -ano | findstr *PID*


Read more