上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 19 下一页

2013年8月5日

sqlParameter

摘要: 当sqlparameter的定义的长度小于给定的value长度值时,会自动截取前边的指定长度。.NET Reflector 8 阅读全文

posted @ 2013-08-05 20:27 中子持心 阅读(168) 评论(0) 推荐(0)

identity_insert 为 on 时

摘要: 当要插入的这个表中有自增列时,要往这个表中自增列插入数据时,系统就会报这个错,因为自增列默认不可编辑。需要执行setidentity_insert 表名 ON然后执行Insert语句insert into 表1 select * from 表2在执行这句时,好像轻量的sql sql express 中执行时 依然会报 identity_insert没有设置成为 ON。可以试一下 把具体的列都写出来(我试的时候不再提示identity_insert没有设置成为 ON。但是又出现约束了,必须去掉约束,我就没有再试,我觉得既然不再提示同样的错误应该是可以了)insert into 表1 (‘列1’, 阅读全文

posted @ 2013-08-05 10:21 中子持心 阅读(1223) 评论(0) 推荐(0)

访问远程数据库,把远程数据库当做本地库来用

摘要: --创建连接,"LoadDb"名字是你,把远程数据库本地化后自己起的名字exec sp_addlinkedserver 'LoadDb', ' ', 'SQLOLEDB ', '172.21.140.105'--登陆到本地化之后的数据库exec sp_addlinkedsrvlogin 'LoadDb', 'false ',null, 'sa ', 'sa'---进程查询select * from LoadDb.egdbtest.dbo.user_ 阅读全文

posted @ 2013-08-05 10:02 中子持心 阅读(246) 评论(0) 推荐(0)

2013年7月31日

sql语句带参数的模糊查询 (like @tag+'%')

摘要: "select PK_SIR_ID,FK_SI_ID,SIR_NAME,SIR_VALUE,SIR_TAG from souce_item_results where FK_SI_ID in " + " ( select PK_SI_ID from souce_item where SI_UNIT_NUM= @iUnitNum and SI_CALCULATE_TIME=to_date(@CalculateTime,'yyyy-MM-dd') ) as SourceItem "+ " and SIR_TAG like @tag+ 阅读全文

posted @ 2013-07-31 10:28 中子持心 阅读(1429) 评论(0) 推荐(0)

2013年7月26日

vc++6.0注册码

摘要: 一串1,111111111111111111111. 阅读全文

posted @ 2013-07-26 18:01 中子持心 阅读(1464) 评论(0) 推荐(0)

先安装与 Silverlight Tools 4 语言版本相一致的 Visual Studio 2010、Visual Web Developer 学习版

摘要: 必须先安装与 Silverlight Tools 4 语言版本相一致的 Visual Studio 2010、Visual Web Developer 学习版 2010 或 Visual Phone Developer 学习版 2010,Silverlight Tools 的安装才能继续。以下网址提供了其他语言版本的 Silverlight Tools: http://go.microsoft.2012-08-08 18:05:46|分类:c#编程|标签:silverlighttool|字号订阅如果你先安装了 VS2010 SP1 ,在安装这个,可能导致这个问题解决方法是用压缩工具,解开 Si 阅读全文

posted @ 2013-07-26 08:59 中子持心 阅读(354) 评论(0) 推荐(0)

2013年7月24日

sqlserver2008 创建支持文件流的数据库

摘要: 第一步打开sqlserver数据库filestream特性How to: Enable FILESTREAM(12个步骤)Before you can start to use FILESTREAM, you must enable FILESTREAM on the instance of the SQL Server Database Engine. This topic describes how to enable FILESTREAM by using SQL Server Configuration Manager.To enable and change FILESTREAM s 阅读全文

posted @ 2013-07-24 09:55 中子持心 阅读(565) 评论(0) 推荐(0)

sqlserver 2008 定期 备份数据库

摘要: 我们知道,利用SQL Server 2008数据库可以实现数据库的定期自动备份。方法是用SQL SERVER 2008自带的维护计划创建一个计划对数据库进行备份,下面我们将SQL SERVER 2008定期自动备份的方法分享给大家。首先需要启动SQL Server Agent服务,这个服务如果不启动是无法运行新建作业的,点击“开始”–“所有程序”–“Microsoft SQL Server 2008”–“启动SQL Server Management Studio”登录数据库,点击管理–维护计划–右击维护计划向导如图所示:点击“维护计划向导”后跳出对话框,如图所示:点击“下一步”如图所示:填写 阅读全文

posted @ 2013-07-24 09:41 中子持心 阅读(292) 评论(0) 推荐(0)

2013年7月22日

silverlight中为控件添加可以在标签中设置的属性

摘要: public static readonly DependencyProperty ExcerciseStatusProperty; static comCoreDamage() { ExcerciseStatusProperty = DependencyProperty.Register("ExcerciseStatus", typeof(int), typeof(comCor... 阅读全文

posted @ 2013-07-22 18:33 中子持心 阅读(280) 评论(0) 推荐(0)

2013年7月18日

委托,委托链学习

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace DelegateTest{ delegate void myDelegateHandle(string s); class Program { static void Main(string[] args) { myDelegateHandle mydel = new myDelegateHandle(A.Print); ... 阅读全文

posted @ 2013-07-18 15:26 中子持心 阅读(183) 评论(0) 推荐(0)

上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 19 下一页

导航