SQL Server CE RDA replication configurationWhat needs be installed before this tutorialTo complete this tutorial I am using the following configuration:Win 2000 IIS 5 running eVB (eMbedded Visual Basic) SQL Server 2000 Developer Edition
1. 查看 SQL 2005 使用者所屬資料庫角色 use yourdbgoselect DbRole = g.name, MemberName = u.name, MemberSID = u.sid from sys.database_principals u, sys.database_principals g, sys.database_role_members m where g.principal_id = m.role_principal_id and u.principal_
表資料:ID Name1 a2 b3 c 預存程序: set ANSI_NULLS ONset QUOTED_IDENTIFIER ONgoALTER procedure [dbo].[test1]--@Id varchar(50) outputasdeclare @ID varchar(50)--設定中間變數declare vari_Cursor Cursor scroll for select ID from
from:http://lwlzyjl.cnblogs.com/方法一:CREATE TABLE #tabTmp(id int) INSERT #tabTmp EXECUTE('SELECT id FROM '+@TableName) declare curOne cursor for SELECT id FROM #tabTmp open curOne FETCH NEXT from
很久沒寫日誌了,最近在研究西曆與農曆的,在用微軟的Calendar控制項時候,無聊看看它最早能到几几年,驚奇的發現居然只到1753年。原來,現行的西曆是格利戈裡曆法,這個曆法並不是連續的,中間缺少了11天。緊接在1752年9月2日的日期是1752年9月14日。抹掉這11天是由英國議會在1752年做出的決定。而微軟之所以沒加入之前的日期應該是因為之前的日期混亂,各國去掉的11天日期並不統一:Albania:December 1912 Austria:Different regions on
1. 如果要查詢是否串連沒有釋放引起的, 你可以用查詢分析器串連到你的資料庫伺服器, 執行下面的代碼: select * from master.dbo.sysprocesses where spid>50 and waittype = 0x0000 and waittime = 0 and status = 'sleeping' and last_batch <
無意中閱讀了一個使用for xml path來取以逗號分隔的多行資料的應用,之前只是用過for xml auto,為了弄清之間的差異,特地去msdn補習了一下。在此列出來,mark一下學習結果。有需要詳細學習,請自行登入msdnfor xml後面除了以上兩個修飾符外,還有兩個修飾符,一共有四種,分別是:1、RAW2、AUTO3、PATH4、EXPLICIT基本上是按照功能的強弱正序排列的,閑話少說,直接看代碼:for xml學習--RAW--SELECT CorpCode FROM
建了一個asp.net網站,使用membership身分識別驗證,在VS2010裡調試運行時,一切正常,但是到了IIS(7.5)下,就出現了如下錯誤:Server Error in '/me' Application.-------------------------------------------------------------------------------- Failed to generate a user instance of SQL Server due to
--建立表Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->use tempdbIF OBJECT_ID('Tab') is not null DROP TABLE TabGOCREATE TABLE Tab( [Col1] INT ,[Col2] nvarchar(1))--產生測試資料Code highlighting