2009年12月29日 星期二

http 方式連結 analysis server

連線到olap server 時,如果USER不加入DOMAIN,則無法連線.

在msdn看到文章說,可以透過http的方式來連線,這樣就不會受限於是否為DOMAIN USER.

這篇是說明AS2000的做法, 記得, sql 2000 要上service pack 3 以上.
Microsoft SQL Server 2000 Analysis Services 中增強的 Web 連線功能

按著文件建置後,連到網站http://localhost/olap/msolap.asp一直發生找不到這個頁面, 照文件的步驟該開的權限都開了,但還是找不出原因.
最後才發現, 原來是windows 2003 的 IIS 網頁延伸服務中,Active Server Pages的狀況為已禁止, 啟動後,就ok了. 也讓我花了半天的時間.
文件說,畫面為空白頁面表示連結成功.

接著, 更改程式中,olap的連線字串


"Data Source=http://SQL2000/OLAP/;Initial Catalog=TEST;Provider=MSOLAP.2"

測試程式, 連線成功....

這篇是說明SSAS20005的做法,
在 Microsoft Windows Server 2003 上設定 SQL Server 2005 Analysis Services 的 HTTP 存取
這個設定比2000簡單一些, 照著做, 很順利就連線成功了.

另外,寫了一個網頁,想要透過owc元件連結到analysis server 2005的cube進行瀏覽.有幾個額外步驟
1.client 機器要安裝owc元件,這個元件隨著office授權
2.要將網站加入信任網站,不然會出現無法跨網域存取的錯誤訊息
3.要安裝SQLServer2005_ASOLEDB9.msi, 這是最重要的一步.






2009年12月22日 星期二

insert into 還是 select into ?

Recovery mode is bulk logging.
If you are using the bulk-logged model, SELECT INTO will perform much better.

測試結果, INSERT INTO .. SELECT ..FROM ....
log快速的長大

2009年12月14日 星期一

sql server clr user defined functions

需要可以在sql server中直接批次更改使用者密碼的function

利用既有的加解密function,在visual studio新建一個database project ,稍微改一下function把他變成 Microsoft.SqlServer.Server.SqlFunction()

function 寫法可以參考 msdn上的範例

寫好後有二個方式可以放到sql server上
1.直接在vs project 中,按右鍵選 deploy, 會將有所有帶
Microsoft.SqlServer.Server.SqlFunction() 的function都部署到sql server, 這個方式比較適合開發測試用,按一下就可以直接用了.

2.把compile好的.dll檔 複製到sql server主機的任一路徑下,執行下列scripts.

--Step 1, congfigure database
USE [tempDB]
GO
sp_configure 'clr enabled', 1
GO
RECONFIGURE
GO

--Step 2, drop depency objects
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[zfnEncryption]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
DROP FUNCTION [zfnEncryption]
GO
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[zfnDecryption]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
DROP FUNCTION [zfnDecryption]
GO

--Step 3. create assembly
IF EXISTS (SELECT * FROM sys.assemblies asms WHERE asms.name = N'sqlUtility')
DROP ASSEMBLY [sqlUtility]
GO
CREATE ASSEMBLY sqlUtility
FROM 'c:\test\sqlUtility.dll' -- depends on what server you are in
WITH PERMISSION_SET = safe
GO

--Step 4, create clr function
--Step 4.1, Encryption function
CREATE FUNCTION zfnEncryption(@pwd nvarchar(128))
returns nvarchar(128)
as EXTERNAL NAME [sqlUtility].[sqlUtility.UserDefinedFunctions].[Encryption]
GO

--Step 4.2, Decryption function
CREATE FUNCTION sr.zfnDecryption(@pwd nvarchar(128))
returns nvarchar(128)
as EXTERNAL NAME [sqlUtility].[sqlUtility.UserDefinedFunctions].[Decryption]

--Step 999, test function
select userid,dbo.zfnEncryption('prefix'+ userid) as encryptionPwd
from test

2009年12月9日 星期三

Request.ServerVariables["REMOTE_HOST"] 無法回傳機器名稱

在客戶的環境中, 有一段取client機器名稱的程式碼
Request.ServerVariables["REMOTE_HOST"] 一直無法取得機器名稱,只回傳ip address
但在自已的開發環境卻ok

看到這篇KB 297795

1.打開DOS命令提示字元
2. cd C:\Inetpub\Adminscripts.
3. set w3svc/EnableReverseDNS TRUE

設置了IIS 的EnableReverseDNS 後, 就OK了

KB里頭提到
Warnings
Enabling reverse DNS on your IIS server can affect the performance of your Web server and DNS servers. Some examples are:
Resources such as CPU utilization and network bandwidth may be taken up.
Client requests can take longer to process.
Client requests can be blocked if IP restrictions by DNS domain names are used.

這些警告.....待觀察啊

2009年12月6日 星期日

email html task

前輩都說, 輪子不要重覆造
想要一個ssis email html 內容的task,
codeplex上找到toddmcdermid寫的 task "Send HTML Mail Task"

有ssis2005及ssis2008的版本

我安裝了ssis2005, 裝完後, 在toolbox加入這個control flow task
點選編輯或f4時,出現以下這個錯誤

TITLE: Microsoft Visual Studio
------------------------------

The task with the name "Send HTML Mail Task" and the creation name "ToddMcDermid.SSIS.SendHTMLMailTask, SendHTMLMailTask90, Version=1.0.0.0, Culture=neutral, PublicKeyToken=6c005605b216cf47" is not registered for use on this computer.
Contact Information:
Send HTML Mail Task

------------------------------
BUTTONS:

OK
------------------------------

看來是沒有註冊正確
利用GACUtil -i "C:\Program Files\Microsoft SQL Server\90\DTS\Tasks\SendHTMLMailTask90.dll"

要重開機嗎?
看來是要, 重開後...再編輯....ok

測試......body中文有問題.
加了 charset=big5 也沒用,看來要好好研究一下原作者的source code 了..
殘念........輪子是破的

回歸簡單,最後直接用 SmtpClient 自已寫吧, code很多, google 一下就有了

2009年12月1日 星期二

SSMS 文字編輯器使用Collapse & Expansion

SSMS Tools Pack 下載安裝檔
里有頭有一些功能, 在feature 頁可以看得到pack包含的所有功能說明

我主要是想要用Regions and Debug sections

希望在使用text editor 也能像visual studio一樣,可以collapse 和Expansion 程式碼

安裝完後, 這樣寫得"漏漏等"的scripts 就 以分段做收合囉.



SSMS 上的SVN 功能

公司用TortoiseSVN做版本控制,開發.NET專案時,安裝VISUALSVN,就可以在VISUAL STUDIO上直接進行UPGRADE,COMMIT,SHOW DIFF....等
但在SQL SERVER MANAGEMENT STUDIO(SSMS)上VISIUALSVN不起作用
GOOGLE一下,在網上看到一個覺得得聊勝於無的方法,
SQL Server Management Studio and TortoiseSVN

也是利用EXTERNAL TOOL的方式加自已的COMMAND

作法就和之前找到的 為你的SSMS專案排序吧 方法一樣

轉貼以下指令, 自已去COPY PASTE吧.

Title: SVN Commit
Command: C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe
Arguments: /Command:commit /path:"$(SolutionDir)
Initial directory: $(SolutionDir)

Title: SVN Update
Command: C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe
Arguments: /Command:update /path:"$(SolutionDir)"
Initial directory: $(SolutionDir)

Title: SVN Log (Solution)
Command: C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe
Arguments: /Command:log /path:"$(SolutionDir)"
Initial directory: $(SolutionDir)

Title: SVN Log (Current Item)
Command: C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe
Arguments: /Command:log /path:"$(ItemFileName)$(ItemExt)"
Initial directory: $(ItemDir)

Title: SVN Diff
Command: C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe
Arguments: /Command:diff /path:"$(ItemFileName)$(ItemExt)"
Initial directory: $(ItemDir)


2009年11月26日 星期四

rdlc matrix overlap

通常習慣先用rdl design layuout測試sql,preview後沒問題再把rdl rename成rdlc,然後再放在asp.net進行程式碼撰寫

這幾天用到martix做了一張表,因為有複雜的邏輯,試了幾天好不容易試出來,用了二個martix做重疊再加上寫一些iif的判斷,最後preview報表數字也都很ok.

結果用rdlc 試跑程式後,發現有一行數字差很大, 而且二個martix overlap在rdl 很ok,但rdl 卻變成不無法重疊, 折成二塊了.

檢查了半天,看不出rdl和rdlc的差異在哪? 都是一樣的sql 啊???

無解ing......





2009年11月25日 星期三

set vs select variable

在sqltips上看到這篇When to use SET vs SELECT when assigning values to variables
說明得很詳細.

以前只以為 select 只能接一個變數, 後來在sqltips上看到某一篇文的scripts時,
才知,原來一次select 可以接多個變數

select @var1 = col1 , @var2= col2 from table1 where pk = 1

mssqltips 是一個很不錯的網站, 多去逛逛收穫不少

2009年11月18日 星期三

informix openrowset

要先安裝informix odbc,設定好dsn

SELECT * FROM OPENROWSET('MSDASQL','DSN=ifxdb;UID=test;PWD=test','select * from tabTest')

2009年11月17日 星期二

sql server linked db error -

某天, sql 2000上的 連到informix 的liked db 發生了以下的錯誤..

---------------------------
SQL Server Enterprise Manager
---------------------------
錯誤 7399: OLE DB Provider 'MSDASQL' 報告了錯誤。提供者報告了未預期的重大錯誤。
OLE DB 錯誤追蹤 [OLE/DB Provider 'MSDASQL' IDBInitialize::Initialize returned 0x8000ffff: 提供者報告了未預期的重大錯誤。]。
---------------------------
確定
---------------------------

查了半天, 相關的設定都沒有錯, 重新建立linked db設定....都沒用哩.
更奇怪的是, dts 透過相同的odbc 設定直接連到informix 下載資料也都ok
唯獨透過linked db , 以openquery 的方式就發生以上的錯誤



想說重新啟動一下sql server 吧. 結果, 竟然好了耶

針正是賭著鬼啊.........


2009年11月16日 星期一

並未將物件參考設定為物件的執行個體

vs2008+sp1, rebuild solution時會有這個error, 但沒有指出是哪一個page或物件,
再rebuild幾次,然後又ok
搞不清到底是哪兒發生問題
直接run web site又沒問題, 只有發生在build site的時候

也不是這位仁兄說的問題
"後來發現是 Solution 的 Startup Page 重新設一下就行了"-----> 沒用沒用

開始發生這個奇怪問題時,是把web site solution搬到另一個儲存路徑.

why????

後記....
半年後的一天,同事終於煩了,於是一個一個目錄加入想要測看看到底是什麼原因造成的
結果他說是因為在某個目錄有加入rdlc的原因,如果把rdlc檔案移除掉,compiler就不會出現問題了...
我在想,是不是因為在設計rdlc時,我通常都是先在SSRS 的report designer先做一個rdl,測試沒什麼問題後,再rename rdl to rdlc,然後再加入到vs的專案?

如果沒在vs專案修改過rdlc檔, compile似乎也沒問題.

another why????

you must choose a publish location that is not a sub-folder of the source web site

vs.net 2005, publish website with http://localhost/mywebsite
appears errors,

“you must choose a publish location that is not a sub-folder of the source web site”

just replace localhost with yourServerName,

it should be resolved.


2009年11月6日 星期五

Debug a SQL Assembly

參考 Overview of T-SQL and CLR debugging in SQL Server 2005

由Server Explorer 来Debug
  1. 开启assembly 的project, 例asmStatistics.sln, 进入Visual Studio (也可以不必开启任何Solution或Peoject)
  2. 在工具列-》 VIew -》 Server Explorer (Ctrl+ Alt + F5 ), 开启Server Explorer Window
  3. 在Server Explorer Window 的Data Connections , 按右键,选Add Connection,连线到要Debug的Database
  4. 展开这个Database,在 Assembly 下选要Debug的Assembly,例如asmStatistics, 展开后,选要Debug的Function, 例如zspAsmStatistics_test
  5. 在zspAsmStatistics_test按右键,选’‘Step Into Stored Procedure‘‘,即可进入Debugg Mode

2009年11月5日 星期四

sql server 取date 及 time

select convert(varchar(10) , getdate(),112 ) as myDate, convert(varchar(8),getdate(),8) as myHour
回傳:20091105 17:44:57

select convert(varchar(10) , getdate(),121 ) as myDate, convert(varchar(8),getdate(),8) as myHour

回傳:2009-11-05 17:44:57


2009年11月4日 星期三

tsql 多值的參數傳入stored procedure

在tsql中,如果單一條件要符合多個條件值時,都會以 in 的方式
select * from test where col1 in ( '1234','5678,'abcd')

如果這個多值的參數想要傳入做為stored proedure 的input parameter時,看來是不可行的
有二種方法:
1. 用charindex
select * from test where charindex ( col1 , '1234,5678,abcd') > 0

2.寫一個table function,
select * from test
where col1 in ( select valuString from dbo.zfnRtnStringTable ( '1234,5678,abcd' ) )

以下function來自一段不曉得在哪看過的script...,引用一下
CREATE FUNCTION dbo.zfnRtnStringTable ( @key varchar(8000))
RETURNS @rtnTable TABLE ( stringValue varchar(10))
AS
BEGIN
DECLARE @strValue varchar(10), @pos int
SET @key = @key+ ','
SET @pos= charindex(',', @key, 1)
IF replace(@key, ',', '') <> ''
BEGIN
WHILE @pos> 0
BEGIN
SET @strValue = left(@key, @pos- 1)
IF @strValue <> ''
BEGIN
insert into @rtnTable values( @strValue )
END
SET @key = right(@key, len(@key) - @pos)
SET @pos= charindex(',', @key, 1)
END
END
RETURN
END

2009年10月29日 星期四

outlook 2007 中的連結無效

有一天, 小黑的 outlook 2007, 郵件里頭的網頁連結,點下去之後變成跳出選擇開啟程式的視窗
如果選用ie開啟, 並設為永遠用這個程式開啟, 下次再進來,還是一樣會彈出選擇開啟程式的視窗.

MSN中,別人傳來的連結,點下去,完全沒反應...

怪哉.

最後, 找到原因, 在ie的網際網路設定, 程式集頁籤下, 把ie設為預設的瀏覽器就ok了

informix unload後, 置換衝碼的中文字

unload出來的內容,如果帶有衝碼中文字, 例 , 則這個中文字後面會多一個 \
1. 透過vi 方式置換 , $s/\\\\/\\/g
2.如果檔案很大, vi 打不開,
sed '1,$s/\\\\/\\/g' unload.txt > unlodaNew.txt

Excel openrowset 奇怪的問題

在某台機器上,利用openrowset讀取Excel出現以下錯誤, sql server 2005上surface area configuration的ad hoc remote query也啟用了,但就是不work...
重裝service pack後問題就解決, 但只要重新開機, 問題又來了,而且只有某台機器才會這樣,奇怪奇怪真奇怪...

已获得 OLE DB 记录。源:“Microsoft SQL Native Client” Hresult: 0x80040E14 说明:“无法初始化链接服务器 "(null)" 的 OLE DB 访问接口 "Microsoft.Jet.OLEDB.4.0" 的数据源对象。”。
已获得 OLE DB 记录。源:“Microsoft SQL Native Client” Hresult: 0x80040E14 说明:“链接服务器"(null)"的 OLE DB 访问接口 "Microsoft.Jet.OLEDB.4.0" 返回了消息 "未指定的错误"。”。

An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E14 Description: "Cannot initialize the data source object of OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)".".
An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E14 Description: "The OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)" reported an error. The provider did not give any information about the error.".

最後找到方法, 設定 registry key,
HKLM\SOFTWARE\Microsoft\Microsoft Sql Server\\Providers\Microsoft.Jet.OLEDB.4.0
AdHocAccess = 0

原文參考 Jet.OLEDB.4.0 and Linked Servers
Check Disallow AdHoc Access, this will create the right key with the wrong value (1 instead of the correct 0). Unchecking this option will remove the key and the value, this is interpreted as 'value = 1'. This 'Removing' in combination with the standard-value 1 (if no key exists) is the bug.
Close the Sql-Management-Studio, open RegEdit and search for the specific key. If you have more than one instance, use the right internal name (MSSQL.1 / MSSQL.2 etc.).
Change the value to 0
Restart your MS-SqlServer. Using Reconfigure doesn't help.


VSTO ActionsPane 看不到

OFFICE 2003 Professional SP3以上,開啟word後, vsto 的action pane看不到.

因為安裝了安全性更新,要刪除 registry key

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{5f61f809-422a-4152-91f5-9ec1b935efd7}

ps. VSTO在 OFFICE 2003 Standard版本沒法執行,只能在 OFFICE 2003 Professional 以上的版本上執行, 但 OFFICE 2007不限.

解決方法參考

Office 2003 SP3 : ActionsPane's content does not appears

2009年10月28日 星期三

SQLServer 2005 找db 所有欄位及屬性

use youDBName
GO
select * from sys.tables a inner join sys.columns b
on a.object_id = b.object_id left outer join sys.extended_properties c
on b.object_id = c.major_id and b.column_id = c.minor_id
and c.major_id > 0 left outer join sys.systypes d
on b.system_type_id = d.xtype
order by b.column_id
GO

2009年10月27日 星期二

在SSIS 使用自訂的DLL方法

1.開發的dll需要簽署
2.複製dll到 C:\Program Files\Microsoft SQL Server\90\DTS\PipelineComponents(此步驟可以省略)
3.複製dll到 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
4.拖曳dll到 C:\WINDOWS\assembly
5.SSIS中在 Script Task 加入dll參考

如何共用單一個 dtsConfig

多個package要共用同一個dtsConfig時,如果package的參數不是共通的,就要分開設定不同的dtsCOnfig.
但如果只想要共用一個,這樣比較好維護呢?

Step 1: 首先,先設好一個完整且含有每個package會用到的參數dtsConfig檔

Step 2: 然後view code by 每個.dtsx , 在code中手動加入一個Configuration tag

<dts:configuration><dts:property name="ConfigurationType">1</DTS:Property><dts:property name="ConfigurationString">c:\test\CRIMBIS.dtsConfig</DTS:Property><dts:property name="ConfigurationVariable"></DTS:Property><dts:property name="ObjectName">TestConfig</DTS:Property><dts:property name="DTSID">{E54F62C7-C936-4E2E-903C-0694706E7C96}</DTS:Property><dts:property name="Description"></DTS:Property><dts:property name="CreationName"></DTS:Property></DTS:Configuration>

Step3: 將package 的屬性 SupressConfigurationWarnings 設為 True.這樣當這個dtsConfig中的參數未出現在這個package時,開啟package就不會有錯誤跑出來了

來自 dtsConfig Sharing - Suppress Configuration Warnings

里面有很多ssis 的小撇步,推

編譯器錯誤訊息: CS0016: 無法寫入輸出檔

有一天, 網站執行時會出現編譯錯誤

編譯器錯誤訊息: CS0016: 無法寫入輸出檔 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\asp\3431bdf7\e3641c1\App_Web_default.aspx.cdcab7d2.rsphwbc0.dll' — '存取被拒。 '

試了幾個步驟:

爬文查了些資料後, C:\WINDOWS\TEMP 目錄加入networkservice的安全性即可,xp應該是要加aspnet吧

想了一下,好像 做完磁碟清理後 , 都會有這種狀況...

System.Data.OracleClient 需有 Oracle 用戶端軟體版本 8.1.7 或以上版本

連結oracle 資料庫, 在SSRS design環境可以執行報表,但deploy後,發生以下問題
System.Data.OracleClient 需有 Oracle 用戶端軟體版本 8.1.7 或以上版本。
描述: 在執行目前 Web 要求的過程中發生未處理的例外情形。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。


例外詳細資訊: System.Exception: System.Data.OracleClient 需有 Oracle 用戶端軟體版本 8.1.7
或以上版本。

解決方法
在Reporting Server所在的主機, 其 Oracle\product\10.1.0 的安裝目錄, 加入network service 及asp.net 的修改讀取權限即可

解決 TSVNCache.exe 佔住 CPU 的問題

原文來自 Huan-Lin 學習筆記 on DotBlogs
TortoiseSVN: 解決 TSVNCache.exe 佔住 CPU 的問題

我跟著設定後, 哇咧, 小黑的速度瞬時間飛快.

摘錄其中:

打開TortoiseSVN的 【設定視窗(Settings)→視覺樣式(Look and Feel)→圖示覆蓋(Icon Overlays)】,右邊第一個Radio Group名稱「圖示覆蓋/狀態列」的英文是「Icon Overlays/Status Columns」,其中的Status Columns應譯成狀 態欄才對,它指的是在檔案總管裡把顯示模式切換成詳細資料時, 標題欄位裡的Subversion欄位是否要同步更新狀態。如果你只會在檔案總管裡操作Subversion狀態的話,應該把「僅在檔案總管中顯示圖示覆 蓋」打勾,以免除另存新檔、開啟檔案等對話窗也更新圖示狀態。但我有時會在Total Commander裡操作Subversion,因此就不能勾選。
右邊第二個Radio Group名稱譯成「狀態列」,讓人誤解成以為是顯示訊息的狀態列設 定,但其實英文是Status Cache-狀態快取設 定,指的是資料夾與檔案圖示的SVN小圖示的覆蓋狀態的處理模式。Status Cache有3個選項:

Default
預設的快取設定,使用TSVNCache.exe 來定時掃描檔案系統,找到要變動的檔案後發出更新圖示的通知給作業系統

Shell
在Shell extension裡,只針對目前所在資料夾做圖示異動更新;只佔用1MB記憶體,但因只快取一個資料夾,當Working copy內容較多時會花較多時間才能更新完畢

None
不做任何圖示覆蓋快取,因此圖示更新速度較慢

client found response content type of text/html...

架設一個內部網站,出現這個錯, 很怪...
client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. the request failed with the error message:
...
section or group name 'system.web.extensions' is already defined. updates to this may only occur at the configuration level where it is defined.

最後找到原因
是iis root 的目錄下放一個web.config, 大概是衝到了吧...

VB IIF in C#

Row.Cells[2].Text == "abc" ? "ok" : "not ok";

或加入Microsoft.VisualBasic 參考使用 vb namespace

using Microsoft.VisualBasic.Strings.Format();
using Microsoft.VisualBasic.Interaction.IIf();
Microsoft.VisualBasic.Interaction.IIf( Row.Cells[2].Text="abc", "ok", "not ok");

.net 用css 將gridview 的表頭釘住

定CSS語法:

.FixHeaderSyle
{
background-position: top;
background-repeat: repeat-x;
background-color: #d1dbe0;
position:relative ;
top:expression(this.offsetParent.scrollTop -1);
z-index: 10;
}

.PnlGrid
{
position: relative;
z-index: 1;
top: 0px;
}

ASP.NET 中, GridView要放在 Panel中

Panel ScrollBars="Both" CSS的Style="pnlGrid"

GridViewHeaderSytle設定:"FixHeaderStyle "

不過,scroll時, 表頭那一塊沒法貼齊panel,留下一點空隙

2009年10月26日 星期一

為你的SSMS專案排序吧

SSMS里頭有很多PROJECT很多ITEM,久了,ITEM的名稱都沒按排序放,
透過這個EXTERNAL TOOL的安裝, 就可以升冪降冪排序了
包括.ssmssln及BI的專案都可以用

補上自已的圖說明一下
Title: 自已隨便輸入一個尬意的名稱
Arguments: $(SolutionFileName) Desc
如果你想要依不同類型排序,可以點選右方的小圖示有許多選項
 Initial directory: $(SolutionDir)



Sorting SQL Project Files in SQL Server Management Studio

Excel2003無法顯示造字

excel2003 無法正常顯示造字, 都變成韓文了,但在Excel2007是正常的
只要將C:\WINDOWS\Fonts 下的 New Gulim (ngulim.ttf ) 檔刪除即可

如果要確保輸入的是big5的造字,那就在輸入法的浮動視窗最左邊,按滑鼠右鍵選內容,然後將只顯示BIG5字集的選項打勾吧.

publish error allowDefinition='MachineToApplication'

一個老舊的aspx web form專案,調了一些功能建置成功,但進行部署時顯示以下錯誤。 在應用程式層級之外使用註冊為 allowDefinition='MachineToApplication' 的區段發生錯誤。錯誤的原因可能是虛擬目錄尚未在 IIS 中設定為...