Time of Update: 2018-12-04
Xml2OleDb簡介XML是互連網共用資料的最好的方法,XML格式的資料可以很輕鬆的整合到不同的Web應用中去。但如果你想將XML檔案插入到資料庫,怎麼辦?Xml2OleDb將向您說明往OleDb資料庫,比如SQL Server, Access, Excel, Visual FoxPro, FoxPro, and dBase等插入XML檔案的資料是如何輕鬆。首先,將XML檔案裝載進DataSet,並得到第一個表,這個表就是我們要加入到資料庫的DataTable;接下來,去除XML檔案的副檔名,
Time of Update: 2018-12-04
js組織關係由數組體現出來在 body onload 事件中初使化數組,取得組織關係圖的層次和下及關係中節點最多的層次中節點數,用以取得水平線的最大寬度以下為 htm 原碼<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>組織圖</title><style> .dvItem {
Time of Update: 2018-12-04
Delphi水平測試試卷(初中級)樣題一. 選擇題(共40道)1. 使用者開發程式時需要經常在表單和編輯器視窗之間來回切換,可使用快速鍵()。A、 F12和F11 B、 F12和F13 C、 F12和Ctrl+F12 D、 F12和Alt+F12 E、F12和Shift+F122. 某函數如下:Function check(n,k:Integer):Integer;Var m:Integer;Begin Repeat m:=n
Time of Update: 2018-12-04
http://www.codesky.net/article/doc/200308/2003081880503855.htm試試這個吧,不過滑鼠位置可能會有幾個像素的偏差unit MyGraph;interfaceuses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs ,jpeg ,Registry
Time of Update: 2018-12-04
原帖地址:http://blog.csdn.net/kgdiwss/archive/2006/11/30/1422388.aspx 主要是example,code標記等的運用,怕忘了,所以記錄一下. #region GetLatestJobInfo ///<summary> ///擷取最新的職位資訊 ///</summary> ///<example>
Time of Update: 2018-12-04
DDBC語句分類 維護語句DBCC DBREINDEX 重建指定資料庫中表的一個或多個索引DBCC DBREPAIR 除去損壞的資料庫DBCC INDEXDEFRAG 整理指定的表或視圖的叢集索引和輔助索引片段DBCC SHRINKDATABASE 收縮指定資料庫中的資料檔案大小DBCC SHRINKFILE 收縮相關資料庫的指定資料檔案或記錄檔大小DBCC
Time of Update: 2018-12-04
頁面是三個架構頁面組成 topfra 放標頭檔 leftfra 放樹菜單 mainfra 首頁面 代碼: <frameset rows="120,*" cols="*" framespacing="0" frameborder="NO" border="0"> <frame src="top.shtml" name="topFrame" id="topFrame" scrolling="NO" noresize />
Time of Update: 2018-12-04
需求:為了提高安全性.某人擁有某個認證,才能進行登入.環境:Tomcat設計:採用SSL,https登入.伺服器驗證認證.(貌似SSL裡面自己做了驗證)讀取認證資訊,檢查是否該對應登入人員.
Time of Update: 2018-12-04
using System; using System.Text.RegularExpressions; namespace bobomousecom.crm ...{ /**//// <summary> /// Regexlib 的摘要說明。 /// </summary> public class Regexlib ...{ public Regexlib() ...{ // // TODO: 在此處添加建構函式邏輯 // } //搜尋輸入字串並返回所有 h
Time of Update: 2018-12-04
Nhibernate是一個面向.NET環境的對象/關聯式資料庫映射工具.對象/關聯式資料庫映射(object/relational mapping (ORM))這個術語表示一種技術,用來把物件模型表示的對象映射到基於SQL的關聯式模式資料結構中去。 上面可能說得很抽象,我解釋一下,為什麼用Nhibernate省時省力. 如果在沒有用Nhibernate的時候,如果往資料庫中插入一條資料,我們可能會要寫一個SQL語句,寫的時候要瞭解資料表結構,然後這樣寫: insert into 表名 ([欄位1
Time of Update: 2018-12-04
今天寫一個預存程序,由於執行的時間比較長(7秒)所以打算最佳化一下.結果在最佳化測試代碼中發現如下一個奇怪的現象.現在有一個表mis_gl_balance,其中有一個欄位ACC_SEGMENT VARCHAR(181) NULL ,他的內容的形式如下:3810.105301.5414070180.000000.00000000.0000.000000另外一個表finance_budget_account 主要記錄了budget_type 預算類型和mis_code
Time of Update: 2018-12-04
1.測試環境:vb6.0+SQL2000+ASP3.0+WinXp+IIS5.1 2.建立三個預存程序: a.添加使用者 CREATE proc add_user @username varchar(20), @password varchar(20) as insert into userinfo(username,password) values (@username,@password) GO b.修改使用者 create proc modify_user@username
Time of Update: 2018-12-04
CREATE FUNCTION dbo.f_split_strings(@s varchar(8000),@mc varchar(10),@dc varchar(10))RETURNS @t TABLE(s1 varchar(4000),s2 varchar(4000))ASBEGIN--作者:pbsql--將指定字串@s以字串@mc為分隔拆分,再將拆分後的字串按@dc拆分,最後得到記錄集 DECLARE @string varchar(8000),@i int,@j int,@ml int,
Time of Update: 2018-12-04
在做項目的時候會常會遇到列印問題。有時間我們需要選擇性的列印,在網上找到一些方法,擴充了一下,經IE和firfox測試都可用。function PrintOut() { bdhtml = window.document.body.innerHTML; sprnstr = "<!--startprint-->"; eprnstr = "<!--endprint-->"; prnhtml = bdhtml.substr(
Time of Update: 2018-12-04
CREATE FUNCTION dbo.f_bin_dec(@s varchar(64))RETURNS bigintASBEGIN--作者:pbsql--參數不得含'0'、'1'之外的任一字元(首尾空格除外),否則返回0 DECLARE @i int,@result bigint SELECT @i=0,@result=0,@s=RTRIM(LTRIM(REVERSE(@s))) WHILE @i<LEN(@s) BEGIN IF SUBSTRING(@s,@i+1,1)
Time of Update: 2018-12-04
原文地址:http://blog2.matthidinger.com/archive/2009/09/08/automatically-roll-back-your-linq-to-sql-integration-tests.aspx今天我開始做MVC下資料部分的測試,開始的時候我試著搜尋一些簡單的測試linq部分的方法,因為在這一部分大多數情況會用到復原,但最終我還是選擇了自己寫。我把它記錄下來或許對一些人有協助,這個基類是在微軟的環境下寫的但是在簡單的修改後可以用到
Time of Update: 2018-12-04
using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;using System.Net;using System.Net.Sockets;using System.IO;using System.Runtime.Remoting.Messaging;namespace
Time of Update: 2018-12-04
1 >屏蔽功能類1.1 屏蔽鍵盤所有鍵<script language="javascript"><!--function document.onkeydown(){event.keyCode = 0;event.returnvalue = false;}--></script>1.2 屏蔽滑鼠右鍵在body標籤裡加上oncontextmenu=self.event.returnvalue=false或者<script
Time of Update: 2018-12-04
try { if(!Page.IsPostBack) { Stack s1 = new Stack(); Stack s2 = new Stack(); Stack s3 = new Stack(); s1.Push("00"); string temp = ""; string strSql = "select rights.right_code from rights,user_right where rights.right_
Time of Update: 2018-12-04
1 一個漢字長度是2,是指它的位元組數是2,如:"a12你好",字串的位元組數為7,字串的長度為5,調用系統的Length=5,說明Length只對字元不對位元組進行查詢; public int GetLength(string inputString) { return System.Text.Encoding.Default.GetByteCount(inputString.Trim()); }2 用ASCII碼值來區分是漢字還是英文是可行的<script language="