繁星世界

 

2012年5月15日

TortoiseSVN切换用户

TortoiseSVN -> Settings -> Saved Data -> Authentication Data -> Clear

posted @ 2012-05-15 18:03 繁星世界 阅读(2) 评论(0) 编辑

2012年1月30日

oracle两表关联更新

Oracle语法: UPDATE TableName SET (column1[,column2...])= (SELECT column1,[,column2...] FROM TableName1 [WHERE where_definition])

Oracel 示例:

update t_fare_info t
   set (t.currency_code,
        t.fare_type,
        t.allow_alone_sale,
        t.allow_combine_sale) =
       (select f.currency_code,
               f.fare_type,
               f.allow_alone_sale,
               f.allow_combine_sale
          from t_fare f
         where f.fare_id = t.fare_combine)

posted @ 2012-01-30 15:04 繁星世界 阅读(26) 评论(0) 编辑

2012年1月29日

System.Exception: System.Data.OracleClient 需要 Oracle 客户端软件 8.1.7 或更高版本

解决方案:

方案一、在环境变量的系统变量中修改path,添加oracle目录如:C:\oracle\product\10.2.0\client_1\bin;

方案二、启动Window 资源浏览器找到ORACLE_HOME目录,如C:\oracle\product\10.2.0\client_1
右键弹出菜单,选择该目录共享与安全
点击 “安全” 页签
在组和用户名称列表中点击“Authenticated Users” 项.
在该用户的权限列表中,将“读取和运行”的选择框置为不选中状态
再次点击“读取和运行”的选择框,将其设置为选中状态
点击“高级”按钮并在权限项目中确定“Authenticated Users” 是否拥有“读取并运行”权限并应用于“该文件夹,及子文件夹和文件”. 如果不是,双击这样,并确保权限可以“应用于” “该文件夹,及子文件夹和文件”. 该项非常重要你一定要核查.
点击“确定” 按钮

posted @ 2012-01-29 14:00 繁星世界 阅读(98) 评论(0) 编辑

SVN提交报错:服务器发送了意外的返回值(400 Bad Request)

原因是机器装了卡巴斯基导致。

解决方案:

一、停掉卡巴斯基再提交;

二、在“设置”->"服务"->"网络设置"->"端口设置中取消对80端口的监控;

三、在“设置”->保护->信任区域->添加->浏览,浏览TortoiseSvn 安装目录下TortoiseSvn\bin\TortoiseProc.exe文件即可。

posted @ 2012-01-29 13:45 繁星世界 阅读(74) 评论(0) 编辑

2012年1月11日

oracle修改外键列值的方案

先使外键失效,修改完数据后再有效

失效语句:

alter table table_name disable constraint constraint_name;

update数据;

有效语句:

alter table table_name enable constraint constraint_name;

posted @ 2012-01-11 12:13 繁星世界 阅读(98) 评论(0) 编辑

2012年1月10日

DataGridView绑定List集合删除焦点行未变的解决方案

dgvMain.DataSource = new BindingList<集合对象>(绑定集合);

posted @ 2012-01-10 17:05 繁星世界 阅读(174) 评论(0) 编辑

2012年1月5日

Oracle存储过程中游标For循环使用

摘要: procedure copy(a_id int) is cursor t_cursor is select * from table f where f.id = a_id; v_row table%rowtype;begin for v_row in t_cursor loop -- 处理数据 end loop;end copy;阅读全文

posted @ 2012-01-05 16:45 繁星世界 阅读(28) 评论(0) 编辑

4位时间格式正则表达式[从0000~2359]

摘要: using System.Text.RegularExpressions;Regex.IsMatch(strStartTime, "^([0-1]+[0-9]|2[0-3])([0-5][0-9])$");阅读全文

posted @ 2012-01-05 16:39 繁星世界 阅读(8) 评论(0) 编辑

2011年12月16日

WinForm中DataGridView获取当前行绑定数据扩展

摘要: public static T GetCurrentRowObject<T>(this DataGridView dv) { CurrencyManager cm = (CurrencyManager)dv.BindingContext[dv.DataSource]; return (T)cm.Current; }阅读全文

posted @ 2011-12-16 12:46 繁星世界 阅读(24) 评论(0) 编辑

WinForm中DataGridView只绑定自定义列

摘要: 在绑定数据之前或窗体构造完后加一句 DataGridView1.AutoGenerateColumns = false;即可。AutoGenerateColumns 在设计属性中没有,只能在代码中加入。阅读全文

posted @ 2011-12-16 12:37 繁星世界 阅读(37) 评论(0) 编辑

仅列出标题  

导航

统计

公告