SQL寫的日曆

DECLARE @d smalldatetimeSET @d = '2004-7-1'SELECT IDENTITY(int,0,1) AS i INTO #t FROM sysobjectsSELECT    MAX(M1) AS M1,    MAX(M2) AS M2,    MAX(M3) AS M3,    MAX(M4) AS M4,    MAX(M5) AS M5,    MAX(M6) AS M6,    MAX(M7) AS M7FROM    (    SELECT    

擷取當前系統字型

<!-- 寶玉 2004-2-26[url]http://www.webuc.net[/url][url]http://www.nwpubbs.net[/url]--><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><TITLE> 擷取當前系統字型和排版樣式 </TITLE><SCRIPT LANGUAGE="JavaS

看看你多大了

DECLARE @s datetime,@e datetimeSET @s = '1978-2-24' --寫你的生日SET @e = getDate()+1DECLARE @y int,@m int,@d intSET @y = DATEDIFF(yy,@s,@e)SET @s = DATEADD(yy,@y,@s)SET @m = DATEDIFF(mm,@s,@e)SET @s = DATEADD(mm,@m,@s)IF @m<0BEGIN    SET @y = @y-1    S

升級到IIS7的若干問題

剛剛將一台伺服器升級到IIS7,傳統模式沒有任何問題。換成整合模式碰到以下問題問題一:狀況:程式啟動報“Request is not available in this context”錯誤。原因:在整合模式下Application_Start時HttpContext並不可用。解決:在Application_BeginRequest中使用單件模式類比Application_Start。具體參閱http://mvolo.com/blogs/serverside/archive/2007/11/10

[SQL] 上月的月頭和月尾

DECLARE @now datetime,@LastMonth datetimeDECLARE @star datetime,@end datetimeSET @now = DATEADD(dd,DATEDIFF(dd,'1900-1-1',getDATE()),'1900-1-1') --當前日期SET @LastMonth = DATEADD(mm,-1,@now)  -- 上個月的今天SET @star = @LastMonth - DAY(@now)+1 -- 上月頭SET @end 

不錯的MSDN 中文教學課程(推薦)

撰寫安全的 ADO.NET 命令字串本課程將介紹如何利用 ADO.NET 的 Command 物件,執行 T-SQL 語法,包括 DML、DCL、DDL,以提高應用程式的彈性與功能。並探討這些語法所可能造成的安全性漏洞,以及正確安全的用法。UML Modeling 技術與程式實作  本課程將介紹軟體開發的發展趨勢 – 如何使用 UML 建構系統模型。從 UML Model 產生程式碼是提高生產力的捷徑,而且現在已經有數個廠商推出整合 Modeling 的 IDE 開發工具,如 Borland

Gmail式的上傳

原理參見http://www.cnblogs.com/xbf321/archive/2007/11/09/954317.html<%@ Page Language="C#" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w

[SQL] 產生無級樹

--處理樣本--樣本資料create table tb(ID int,Name varchar(10),ParentID int)insert tb select 1,'AAAA'    ,0union all select 2,'BBBB'    ,0union all select 3,'CCCC'    ,0union all select 4,'AAAA-1'  ,1union all select 5,'AAAA-2'  ,1union all select 6,'BBBB-1'  ,

ADO.NET 2.0 中的ConnectionStringBuilder

對於所有開發人員來說,寫連接字串永遠不是一件困難的事,但卻是一件很頭痛的事情。看ADO.NET

擴充Array方法

Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->       Array.prototype.where = function (callback) {            var array = []            for (var i = 0; i < this.length; i++) {                if (

The ‘Microsoft.Jet.OLEDB.4.0′ provider is not registered on the local machine

64位的作業系統(包括xp,2003,vista,2008等)在使用OLEDB去訪問時回收到下面的一個錯誤The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine問題出在'Microsoft.Jet.OLEDB.4.0'

[SQL]消除重複的資料

DECLARE @t TABLE(    id_num INT IDENTITY(1,1) UNIQUE CLUSTERED,    i INT)INSERT INTO @t(i)SELECT 1 UNION ALLSELECT 1 UNION ALLSELECT 1 UNION ALLSELECT 2 UNION ALLSELECT 2 UNION ALLSELECT 3DELETE @tFROM @t AS t,(SELECT MIN(id_num) AS id_num,i FROM @t 

supervisor 3.0a8-1 安裝失敗

在ubuntu 11.04上安裝supervisorsudo apt-get install supervisor會得到以下錯誤Reading package lists... DoneBuilding dependency treeReading state information... Donesupervisor is already the newest version.0 upgraded, 0 newly installed, 0 to remove and 0 not

一堆DLL中找一個類

using System;using System.Collections.Generic;using System.IO;using System.Reflection;using System.Linq;namespace SampleConsole{class Program{        static void Main(string[] args)        {            string find = "SessionState";            string 

JScript中的eval方法的應用例子

<body style="font-size:14px;color=#0033CC">請輸入一個對象(如navigator document window),斷行符號顯示他的下一級所有子物件屬性和方法<br><br><input type="text" id="strObj" name="strObj" value="window"><input type="submit" value="ShowDetail"

$(“.class”)後到底發生了什麼 — jquery選取器分析

$(".class")到底發生了什麼。讓我們一步一步來看 var jQuery = function( selector, context ) {// The jQuery object is actually just the init constructor 'enhanced'return new jQuery.fn.init( selector, context );},看看jQuery.fn.init( selector, context

將指定的表/視圖中的資料匯出為 html 檔案

Code highlighting produced by Actipro CodeHighlighter

docky模式下背景不透明

docky模式下背景不透明的解決辦法: 由於ubuntu10.10-netbook採用了unity介面,所以,安裝完Docky後,螢幕下方會出現一條黑邊,並提示需安裝混合管理器以啟用Docky。解決方案:開啟配置編輯器(press Alt-F2 to open the Run Application dialog and type

資料庫鏡像出現“無法訪問或不存在”故障的原因和解決方案

如果兩個伺服器不是在同一個域中, 並且sql server服務不是用域使用者做為啟動服務的身份。那麼在做資料庫鏡像很可能收到如標題所示的錯誤。這時,你就必須改用認證做端點的身分識別驗證才能將運行起資料庫鏡像。現在假設環境:Host_A為主伺服器,Host_B為鏡像伺服器。已經按要求進行將Host_A的目標Database Backup,並在Host_B中還原。通過UI介面已經配置好鏡像,端點的連接埠兩邊都是5022,名稱都為[鏡像]。防火牆的相關連接埠已經開啟,SQL

Mercurial host fingerprint warning

The problem:Recently I have updated my system and also mecrurial. Today I tried to do some work with a repository hosted in another machine and I got the following warning:warning: bitbucket.org certificate with fingerprint 81:2b:08:90:dc:d3:71:ee:e0

總頁數: 61357 1 .... 3740 3741 3742 3743 3744 .... 61357 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.