Time of Update: 2018-12-04
要成功,你只需要做好兩件事情。do things , tell
Time of Update: 2018-12-04
1、在c盤根目錄建立test的文字檔,輸入如下資料 1 222 333 4442 aaa bbb ccc2、建立測試表tb,並匯入資料if object_id('tb') is not null drop table tbgocreate table tb(id varchar(10),code varchar(10),name varchar(10),remark varchar(10) )goBULK INSERT tb FROM 'c:/test.txt' WITH
Time of Update: 2018-12-04
英文原文:Continuous improvement軟體開發人員是一個日新月異的領域——IT 中的大師,今天的編程方式與明天的編程或許截然不同,技術在不斷地革新,新語言、新平台的如雨後春筍般出現、更好的解決方案的冒出,因此我們需要跟得上節奏,我們沒有選擇,唯有努力提高自己。 下面的幾點建議或許能協助你成為一個優秀的開發人員。 你是否聽說過 Kaizen
Time of Update: 2018-12-04
SQL2000中建立作業(定時查詢,更新)企業管理器 --管理 --SQL Server代理 --右鍵作業 --新增作業 --"常規"項中輸入作業名稱 --"步驟"項 --建立 --"步驟名"中輸入步驟名 --"類型"中選擇"Transact-SQL 指令碼(TSQL)" --"資料庫"選擇執行命令的資料庫 --"命令"中輸入要執行的語句: update base set flag=0 where datediff(dd,date,getdate())=0--確定 --"調度"項
Time of Update: 2018-12-04
使用SqlBulkCopy提高匯入資料的效能向SQL Server中匯入大量數量可以用bulk insert,但是必須要求插入的檔案在資料庫機器上或者一個資料庫可以訪問的共用資料夾中(我不知道怎麼設定共用資料夾,以使得SQL Server能訪問到) SqlBulkCopy 是.net中的一個類,提供了匯入大量資料的功能。 基本用法如下:using (SqlBulkCopy bc = new SqlBulkCopy(sqlConn, SqlBulkCopyOptions.TableLock |
Time of Update: 2018-12-04
手機由於螢幕尺寸的限制,可顯示內容要比PC螢幕少得多。在手機介面設計中,若直接把所有內容在一屏內顯示,會使介面混亂不堪,醜陋且不可用。我們需要對資訊進行有效組織,通過合理布局把資訊展示給使用者。合理的布局設計可以使資訊變得井然有序,使用者可以很容易地找到自己想要的資訊,產品的互動效率和資訊的傳遞效率都得到提升。下面來看看手機介面設計中常用到的一些布局。1,豎排列表豎排列表是最常用的布局之一。手機螢幕一般是列表豎屏顯示的,文字是橫屏顯示的,因此豎排列表可以包含比較多的資訊。列表長度可以沒有限制,通
Time of Update: 2018-12-04
從所有表及所有庫中搜尋索引鍵 -- 1 簡單查詢,在所有表中搜尋索引鍵declare @str varchar(100)set @str='a' --要搜尋的字串declare @s varchar(8000)declare tb cursor local for select 'if exists(select 1 from ['+b.name+'] where ['+a.name+'] like ''%'+@str+'%'') print '' ['+b.name+']
Time of Update: 2018-12-04
--測試if object_id('[tb]') is not null drop table [tb]gocreate table tb( Student varchar(10),Math int,Class varchar(2), History int)insert tb values('張三', 90 ,'A1', 90)insert tb values('李四', 80 ,'A1', 89)insert tb values('王五', 95 ,'A2', 85)goselect
Time of Update: 2018-12-04
--測試環境建立if object_id('tableA') is not null drop table tableAgocreate table tableA(Mon int,Dept int,yj int)insert tableAselect 1 ,1 ,10 union allselect 1 ,2 ,12 union allselect 2 ,1 ,10 union allselect 3 ,3 ,13 union allselect 2 ,2 ,24 union
Time of Update: 2018-12-04
SQL Server2000安裝故障排除 新裝或者以前裝過sql server,後來刪掉。現在重裝,卻出現“以前的某個程式安裝已在安裝電腦上建立掛起的檔案操作。運行安裝程式之前必須重新啟動電腦”錯誤。無法進行下去。 參考網上資料,總算搞定。步驟是: 1)添加刪除程式中徹底刪除sql server。 2)將沒有刪除的sql server目錄也刪除掉。 3)開啟登錄編輯程式,在HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession
Time of Update: 2018-12-04
BroadcastReceiver是android中的一個非常重要的組件,常用於接收廣播資訊。廣播的註冊使用有兩種方式:靜態註冊(在 AndroidManifest.xml 中 )<receiver android:name=".BroadcastReceiverDemo" > <intent-filter> <action
Time of Update: 2018-12-04
在SQLServer中添加XP特殊帳號Network Service和Local Service 從XP開始,Windows提供了兩個特殊帳號“Network Service”和“Local Service”,專用於啟動服務,前者較通常的“Local System”帳號許可權更低,後者再次之。如果一個服務需要訪問SQLServer,通常會使用的NT整合驗證來登入資料庫,這就要求在SQLServer裡建立相應的NT帳戶。把Network
Time of Update: 2018-12-04
在Android4.0的系統中,手機中顯示訊號強度格數的代碼在frameworks\base\telephony\java\android\telephony\SignalStrength.javagetLevel( )函數,該函數是主要用來擷取訊號的強度。public int getLevel() { int level; if (isGsm) { level = getLteLevel(); if (level ==
Time of Update: 2018-12-04
1 當項目中遇到時:項目丟失了default.properties這個檔案導致的,從別的項目中拷貝一個過來,修改成對應的target即可2 當eclipse遇到時:eclipse版本不相容adt,導致adt沒有下載完全,但eclipse只是禁用了這個adt沒有把它卸載掉,"Help" -> "SoftwareUpdates" -> "Manage Configuration"
Time of Update: 2018-12-04
可見(visible)XML檔案:android:visibility="visible"Java代碼:view.setVisibility(View.VISIBLE);不可見(invisible)XML檔案:android:visibility="invisible"Java代碼:view.setVisibility(View.INVISIBLE);隱藏(GONE)XML檔案:android:visibility="gone"Java代碼:view.setVisibility(View.GON
Time of Update: 2018-12-04
函數+check 解決多表資料間的約束 --需求/*有以下兩個資料表:Restableid intIStatus bitRestableSid int要求:當RestableS表中存在與Restable相同的ID時,Restable表的IStatus欄位不允許更改值為0,這個約束應該如何??*/--建立測試表IF OBJECT_ID('Restable') IS NOT NULL DROP TABLE RestableGOCREATE TABLE Restable (id
Time of Update: 2018-12-04
ServiceDiscoveryServerServiceClassID_UUID = '{00001000-0000-1000-8000-00805F9B34FB}'BrowseGroupDescriptorServiceClassID_UUID = '{00001001-0000-1000-8000-00805F9B34FB}'PublicBrowseGroupServiceClass_UUID =
Time of Update: 2018-12-04
看到很多網友都有使用treeview的問題,而且還有人總是給出一些誤導性的回答,特此寫了此文證實treeview在web中依然很好用首先看我的兩個treeview:1、是一個設定功能的:開啟時: 點開節點 在瀏覽器裡: 2、這個大家應該比較熟 再來一個treeview的datawindow: 相信大家看到這些,不會再對pb11.5開發web介面上使用treeview有什麼可懷疑的了吧 部分代碼1、treeview初始化部分tv_1.deleteitem(0)dw_function
Time of Update: 2018-12-04
--本例以外鍵為例,其他約束類似1、增加 Alter Table tb Add Constraint fk_tb_ta Foreign Key ( aid ) References ta ( id ) 如果增加時不想對已有資料強制新的約束,可以在表名後加 With NoCheck Alter Table tb With NoCheck Add Constraint fk_tb_ta Foreign Key ( aid ) References ta ( id ) 2、刪除
Time of Update: 2018-12-04
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. 如果你使用的資料庫連接類是 the Data Access Application Blocks "SqlHelper" 或者 SqlClient Class , 你在執行一個很費時的SQL 操作時候,可能就會碰到下面的逾時異常。---------------------