以前這名的主人,會說 Perton 是 普通(台語)。 信主後,Perton 是主の殿與教會,他已不再和以前一樣,舊事已過,今日已成新造之人。 定睛在主的榮面上,遠重於人話語上的小信及自我抵毁。
解除 NuGet 錯誤,@ Visual Studio 2012
"Error: this template attempted to load component assembly 'NuGet.VisualStudio.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.".
要解除這個問題,可以下列步驟進行:
從 開始>執行,你可以使用那些控制台指令? (Start > Run)
使用Windows的人,一定知道什麼是 開始。但是知道 執行 的人,可能就相較少了許多。
首先,要知道的基本知識:可以執行的指令,一定是【可執行檔】,而且這些【可執行檔】一定貯存在 系統環境變數 PATH 的路徑中。
【可執行檔】:是指附檔名為 *.bat, *.com, *.exe 的檔案,這類型的檔案是可執行的。
系統環境變數 PATH:凡是在 PATH 變數中,增設的路徑,都可以成為找尋可執行檔是否存在的依據。
接下來,就是可以使用那些控制台指令?他們各有什麼功用?什麼 控制台 (.cpl) 檔案?
| 檔名 | 用途 |
| Access.cpl | 協助工具內容 |
| Appwiz.cpl | 新增/移除程式內容 |
| bthprops.cpl | Bluetooth裝置 |
| collab.cpl | 近端分享 |
| Desk.cpl | 顯示內容 |
| FindFast.cpl | FindFast (隨附於 Microsoft Office for Windows 95) |
| Firewall.cpl | Windows 防火牆 |
| hdwwiz.cpl | 裝置管理員 |
| igfxcpl.cpl | Intel圖形和媒體控制台 |
| Inetcpl.cpl | 網際網路內容 |
| infocardcpl.cpl | |
| Intl.cpl | 地區設定內容 |
| irprops.cpl | Infrared properties control panel file |
| Joy.cpl | 搖桿內容 |
| Main.cpl | 滑鼠、字型、鍵盤和印表機內容 |
| Mlcfg32.cpl | Microsoft Exchange 或 Windows Messaging 內容 |
| Mmsys.cpl | 多媒體內容 |
| Modem.cpl | 數據機內容 |
| ncpa.cpl | 網路連線 |
| Netcpl.cpl | 網路內容 |
| Odbccp32.cpl | 資料來源 (32 位元 ODBC,隨附於 Microsoft Office) |
| Password.cpl | 密碼內容 |
| powercfg.cpl | 電源選項 |
| RTSnMg64.cpl | 瑞昱高傳真音效 |
| Sticpl.cpl | 掃描器與數位相機內容 |
| Sysdm.cpl | 系統內容與新增硬體精靈 |
| TabletPC.cpl | 手寫筆與觸控 |
| telephon.cpl | 電話、數據機的位置資訊 |
| Themes.cpl | 桌面主題 |
| TimeDate.cpl | 日期/時間內容 |
| Wgpocpl.cpl | Microsoft Mail 郵局 |
| wscui.cpl | 行動作業中心 |
PowerShell Snapin (嵌入式管理單元)
PowerShell Snapin (嵌入式管理單元),內建有七種。若有需要可再以外掛方式來增加。
內建的七種單元:
- Microsoft.PowerShell.Diagnostics
這個 Windows PowerShell 嵌入式管理單元包含 Windows Eventing 及 效能計數器 Cmdlet。 - Microsoft.WSMan.Management
這個 PS 嵌入式管理單元包含 Cmdlet (例如 WSManInstance 和 Set-WSManInstance),Windows PowerShell 主機會使用這些 Cmdlet 管理 WsMan 作業。 - Microsoft.PowerShell.Core
這個 Windows PowerShell 嵌入式管理單元包含用於管理 Windows PowerShell 元件的 Cmdlet。 - Microsoft.PowerShell.Utility
這個 Windows PowerShell 嵌入式管理單元包含用於操控資料的公用程式 Cmdlet。 - Microsoft.PowerShell.Host
這個 Windows PowerShell 嵌入式管理單元包含供 Windows PowerShell 主控台主機使用的 Cmdlet (例如 Start-Transcript 和 Stop-Transcript )。 - Microsoft.PowerShell.Management
這個 Windows PowerShell 嵌入式管理單元包含用於管理 Windows 元件的管理 Cmdlet。 - Microsoft.PowerShell.Security
這個 Windows PowerShell 嵌入式管理單元包含用來管理 Windows PowerShell 安全性的 Cmdlet。
上述單元內容,可執行 Get-PSSnapin 得知。
若是要增加,使用指令:Add-PSSnapin。
Add-PSSnapin SqlServerProviderSnapin100
Add-PSSnapin SqlServerCmdletSnapin100
若是要移除,使用指令:Move-PSSnapin。
Move-PSSnapin SqlServerProviderSnapin100
Move-PSSnapin SqlServerCmdletSnapin100
可執行 Get-PSSnapin –Registered 得知,目前所有外掛的 Snapin 有哪些?
使用 T-SQL 深入了解 SQL Server 的基本資料
EXECUTE xp_regread @rootkey='HKEY_LOCAL_MACHINE',
@key='SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL',
@value_name='MSSQLSERVER'
| Value | Data |
| MSSQLSERVER | MSSQL10_50.MSSQLSERVER |
可使用 SELECT SERVERPROPERTY() 得到 Server 的相關資料。
如:
|
|
|
|
SELECT SERVERPROPERTY('InstanceName') 的資料,來自於:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL
SELECT SERVERPROPERTY('productversion') 的資料,來自於:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\100\Tools\ClientSetup\CurrentVersion
SQL Server Instances
In order to really understand what versions of SQL Server are installed, you have to understand SQL Server Instances. Each instance of SQL Server operates independently and contains its own collection of databases and settings. There are two types of instances:
| Default Instance | a single instance named MSSQLSERVER. You connect to this instance using only the server name (ex: localhost) |
| Named Instance | one or more instances. You connect to these instances uing the server name + instance name (ex: localhost\SQLEXPRESS) |
It's possible have only one instance installed on your machine. But it's also possible to have many instances. And each of those instances could be a different version of SQL Server!
To understand your scenario, use the SQL Server Configuration Manager tool that installs with both SQL Server 2005 and 2008.
On the start menu, expand the "Microsoft SQL Server [YOURVERSION]" menu, and then expand the "Configuration Tools" submenu. Launch the SQL Server Configuration Manager tool.
Here is a screen shot to use as an example:
點選右側 SQL Server (MSSQLSERVER) 選項後,按右鍵/內容,可以看到如下結果:
對於軟體版本的進一步訊息,可參考
更多資訊可參考:
http://technet.microsoft.com/en-us/library/ms174396.aspx
http://learningsqlserver.wordpress.com/2011/01/21/what-version-of-sql-server-do-i-have/
SQLSecurity.com http://www.sqlsecurity.com/faqs-1/sql-server-versions/2008-r2