NRabbit

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

07 2009 档案

摘要:1.概论 先来阐述一下DLL(Dynamic Linkable Library)的概念,你可以简单的把DLL看成一种仓库,它提供给你一些可以直接拿来用的变量、函数或类。在仓库的发展史上经历了“无库-静态链接库-动态链接库”的时代。 静态链接库与动态链接库都是共享代码的方式,如果采用静态链接库,则无论你愿不愿意,lib中的指令都被直接包含在最终生成的EXE文件中了。但是若使用DLL,该DLL不必被... 阅读全文
posted @ 2009-07-28 12:39 kevin.nrabbit 阅读(314) 评论(0) 推荐(0)

摘要:1、VC to Delphi Delphi源程序: library ExportChartData; uses SysUtils, Classes; {$R *.res} const DLL_VER : Word = $0001; function GetVer: Word; begin Result := DLL_VER; end; pr... 阅读全文
posted @ 2009-07-28 12:38 kevin.nrabbit 阅读(1091) 评论(0) 推荐(0)

摘要:exec master..xp_cmdshell 'dtsrun ...' --如果成功,调用xp_cmdshell来调用dtsrun工具执行包在命令行窗口中 执行 DTSRUN 命令Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->C:\Documen... 阅读全文
posted @ 2009-07-20 15:44 kevin.nrabbit 阅读(340) 评论(0) 推荐(0)

摘要:方法一(get/set pixel) 核心语句: resultBitmap.SetPixel(x, y, sourceBitmap.GetPixel(offsetX + x, offsetY+y)) /// /// get a certain rectangle part of a known graphic /// /// path ... 阅读全文
posted @ 2009-07-19 17:41 kevin.nrabbit 阅读(1287) 评论(1) 推荐(0)

摘要:Normal 0 7.8 磅 0 2 false false false MicrosoftInternetExplorer4 C#代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->int s... 阅读全文
posted @ 2009-07-13 09:51 kevin.nrabbit 阅读(528) 评论(0) 推荐(0)

摘要:1.当前用户下是否有某个表 select count(*) from user_tables where table_name = 'TABLE_NAME'; 注意,一般情况下,引号里面的table_name要全部用大写。 如果结果为1,表示有这个表,为0表示没有这个表。 2.某个用户下是否有某个表? select count(*) from dba_tables where owner = '... 阅读全文
posted @ 2009-07-11 18:46 kevin.nrabbit 阅读(832) 评论(0) 推荐(0)

摘要:ORACLE段: 首先在ORACLE建立PACKAGE和PACKAGE BODY,将在这里面定义函数和存储过程返回结果集。 1:建立PACKAGE: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->CREATE OR REPLACE packag... 阅读全文
posted @ 2009-07-11 18:32 kevin.nrabbit 阅读(274) 评论(0) 推荐(0)

摘要:摘自:http://www.codeproject.com/KB/database/ORACLE_UDT.aspx?display=PrintIntroduction This code shows how to use Oracle's User Defined Types such as VARRAY using ODP.NET in a WHERE clause of a query in... 阅读全文
posted @ 2009-07-10 13:45 kevin.nrabbit 阅读(514) 评论(0) 推荐(0)

摘要:Record和PL/SQL表 一,什么是记录Record和PL/SQL表? 记录Record:由单行多列的标量类型构成的临时记录对象类型。类似于多维数组。 PL/SQL表:由多行单列的索引列和可用列构成的临时索引表对象类型。类似于一维数组和键值对。 都是用户自定义数据类型。 二,Record + PL/SQL表 用途是什么? Record + PL/SQL表可以进行数据的多行多列存储。这样我们... 阅读全文
posted @ 2009-07-10 13:42 kevin.nrabbit 阅读(472) 评论(0) 推荐(0)

摘要:摘自:http://forums.oracle.com/forums/thread.jspa?threadID=386484&tstart=0 http://forums.oracle.com/forums/thread.jspa?threadID=911710&tstart=29We have an Oracle SP that is being called in C#. N... 阅读全文
posted @ 2009-07-10 13:39 kevin.nrabbit 阅读(289) 评论(0) 推荐(0)

摘要:---------------------------------------------------------------------------------------------- Create or replace package packtest as type string_array is table of varchar2(21) index by binary_inte... 阅读全文
posted @ 2009-07-10 13:36 kevin.nrabbit 阅读(1108) 评论(0) 推荐(0)

摘要:摘自:http://www.c-sharpcorner.com/UploadFile/john_charles/CallingOraclestoredproceduresfromMicrosoftdotNET06222007142805PM/CallingOraclestoredproceduresfromMicrosoftdotNET.aspxIntroduction This article ... 阅读全文
posted @ 2009-07-10 13:33 kevin.nrabbit 阅读(173) 评论(0) 推荐(0)

摘要:摘自:http://support.microsoft.com/kb/321718创建 Oracle 表 此示例使用在 Oracle 中定义的表 Scott/Tiger 架构。 默认,Oracle Scott/Tiger 架构附带标准 Oracle 安装。如果不存在此架构,必须运行以下的"创建表和插入"脚本,表: CREATE TABLE DEPT (DEPTNO NUMBER(2,0) N... 阅读全文
posted @ 2009-07-10 13:31 kevin.nrabbit 阅读(213) 评论(0) 推荐(0)