Time of Update: 2018-12-06
--備份環境:把資料庫伺服器(192.168.1.1)的資料庫(TEST)備份到用戶端(192.168.1.107)的C$下 --首先,做一個與用戶端的映射 exec master..xp_cmdshell 'net use z: \\192.168.1.107\e$ "密碼" /user:192.168.1.107\administrator' --說明: /* z: 是映射網路路徑對應原生盤符,與下面的備份對應 \\192.168.1.107\e$ 是要映射的網路路徑 192.
Time of Update: 2018-12-06
官方網:http://www.uploadify.com/ 只有PHP版本 對於我們.net的來說是一個遺憾!現在奉獻一個c#版本,希望對大家有用。看代碼其實很簡單,在做這個之前遇到許多問題,特別是在IHttpHandler 裡面,只有經曆過了才會體會到,還是給解決了!直接運行html出現下面錯誤 要在vs運行下才沒有下面錯誤 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3
Time of Update: 2018-12-06
ALTER PROCEDURE [dbo].[example1] ( @booker varchar(100) ) AS declare @str varchar(1000) set @str='select * from tb_itregister where booker in(' + @booker + ')' execute (@str) 調用: string booker = "a,b"; booker = booker.Replace(",", "','");
Time of Update: 2018-12-06
--找出與某id相近的四條記錄: declare @tb table(id int,cName char(10)) insert into @tb select 3,'a' UNION ALL select 5,'b' UNION ALL select 6,'c' UNION ALL select 7,'d' UNION ALL select 10,'e' UNION ALL select 12,'g' UNION ALL select 13,'y' UNION ALL
Time of Update: 2018-12-06
--txt檔案分割匯入資料庫 drop table a; --Step 1:建表 create table a(a1 varchar(5), a2 varchar(5), a3 varchar(5), a4 varchar(5)); --Step 2:在'C:\'建立一個名為'test.txt'的記事本檔案,輸入以下內容 a1|a2|a3|a4$$b1|b2|b3|b4$$c1|c2|c3|c4$$ --Setp 3:匯入資料:[MRM20090721]是資料庫名,[dbo]是對象名,
Time of Update: 2018-12-06
/* ID NUM 1 800 2 855 3 866 4 800 5 844 如何查NUM欄位指定資料後一行記錄?如NUM欄位中800後一條記錄 */ create table tb(ID int, NUM int) insert into tb values(1 , 800 ) insert into tb values(2 , 855 ) insert into tb values(3 , 866 )
Time of Update: 2018-12-06
loading 載入提示 ······ 透明遮罩 置中 body{margin: 0;font-size: 12px;line-height: 100%;font-family: Arial, sans-serif;}.background {display: block;width: 100%;height: 100%;opacity: 0.4;filter: alpha(opacity=40);background:while;position:
Time of Update: 2018-12-06
HTML:<input id="titleFilter" onkeyup="ApplyFilter('artTitle','titleFilter');" /><TABLE ><TBODY><TR ><TD >17</TD><TD ><a href="#" name="artTitle">Alice Mutton</a></TD></TR><TR >&
Time of Update: 2018-12-06
CascadingDropDown是jquery聯動下拉框外掛程式,可以用於asp.net,或者mvc3,採用ajax,返回json資料。 <asp:DropDownList ID="ddlRegion" runat="server"></asp:DropDownList><asp:DropDownList ID="ddlProvince"
Time of Update: 2018-12-06
添加對using System.Runtime.InteropServices的引用[ DllImport ( "USER32.DLL" ) ] public static extern int GetSystemMenu(int hwnd, int bRevert); [ DllImport ( "USER32.DLL" ) ] public static extern int RemoveMenu(int hMenu, int nPosition, int wFlags);
Time of Update: 2018-12-06
<select id="Select1"></select><select id="Select2"></select><select id="Select3"></select><select id="Select4"> </select><script src="Scripts/jquery-1.6.1.min.js"
Time of Update: 2018-12-06
<select id="CategoryFirst" class="ld-select-1" name="CategoryFirst"><option value="">請選擇大類</option></select><select id="CategorySecond" class="ld-select-1" name="CategorySecond"><option
Time of Update: 2018-12-06
問題瀏覽器DEMO解決方案1input[button | submit] 不能用 margin:0 auto; 置中IE8bug | fixed為input添加width2body{overflow:hidden;}沒有去掉捲軸IE6/7bug | fixed設定html{overflow:hidden;}3hasLayout的標籤擁有高度IE6/7bug | fixed*height:0;_overflow:hidden;4form>[hasLayout]元素有margin-left時,
Time of Update: 2018-12-06
create table news(id int,bid int, title varchar(10)) insert into news values(1 , 0 , '分類1') insert into news values(2 , 0 , '分類2') insert into news values(3 , 0 , '分類3') insert into news values(4 , 1 , '文章1') insert into news values(5 , 1 ,
Time of Update: 2018-12-06
win7 64位“/”應用程式中的伺服器錯誤。未能負載檔案或程式集“XXX.XXX”或它的某一個依賴項。試圖載入格式不正確的程式。 說明: 執行當前 Web 請求期間,出現未處理的異常。請檢查堆疊追蹤資訊,以瞭解有關該錯誤以及代碼中導致錯誤的出處的詳細資料。 異常詳細資料: System.BadImageFormatException: 未能負載檔案或程式集“XXX”或它的某一個依賴項。試圖載入格式不正確的程式。源錯誤: 執行當前 Web
Time of Update: 2018-12-06
if not object_id('Tempdb..#T') is null drop table #TGoCreate table #T([ID] int,[NAME] nvarchar(1),[DTIME] Datetime)Insert #Tselect 1,N'張','2007-12-15' union allselect 2,N'劉','2008-10-12' union allselect 3,N'王','2009-10-13' union allselect 4,N'趙','
Time of Update: 2018-12-06
xhEditor開源HTML編輯器,精簡迷你,使用簡單,支援Word,基於jQuery,Ajax上傳,遠程抓圖……For .Net:配置: <asp:TextBox ID="txtnewsContent" runat="server" TextMode="MultiLine"></asp:TextBox><script src="../Scripts/jquery-1.6.2.min.js"
Time of Update: 2018-12-06
xml結構: <?xml version="1.0" encoding="GBk"?> <News> <Item Title=" " Url=" " Time="2017-8-13 22:12:00" Content=" " /> <Item Title=" " Url=" " Time="2017-8-13 22:12:00" Content=" " /> <Item Title=" " Url=" " Time="2017-8
Time of Update: 2018-12-06
--電話通話次數以及時間長度 DECLARE @T TABLE (id INT,號碼 INT,通話時間長度 VARCHAR(8)) INSERT INTO @T SELECT 1,21981052,'00:01:19' UNION ALL SELECT 2,21981052,'00:00:26' UNION ALL SELECT 3,21980021,'00:00:56' UNION ALL SELECT 4,21980389,'00:02:05' UNION ALL SELECT 5,2198
Time of Update: 2018-12-06
declare @t varchar(255),@c varchar(255) declare table_cursor cursor for select a.name,b.name from sysobjects a,syscolumns b ,systypes c where a.id=b.id and a.xtype='u' and c.name in ('char', 'nchar', 'nvarchar', 'varchar','text','ntext') decl