在SQL Server生成資源忙/閒查詢2005年我有一個表有以下欄目:使用SQL Server
Table Reservations:
ID
arrival datetime
departure datetime
reservation_object (FK to objects table)
現在我需要生成一個報告,顯示在指定時間內的對象的狀態。 這份報告將有看起來像這樣:
6/1/09 6/2/09 6/3/09 6/4/09 ...
object 1 free free busy busy
object 2 busy free busy busy
...
什麼是從SQL Server此信息的最佳方式?我打算在C#.Net中使用它。
你能解釋一下這個數組可能看起來像什麼嗎? – jao 2009-06-18 15:14:12