摘要:
在 SQL Server 2005 里面,如果出现到主机 的 TCP/IP 连接失败。 java.net.ConnectException: Connection refused: connect!估计是因为sqlserver2005默认情况下是禁用了tcp/ip连接。您可以在命令行输入:telnet localhost 1433进行检查,这时会报错:正在连接到localhost...不能打开到主机的连接,在端口 1433: 连接失败启动tcp/ip连接的方法:打开 \Microsoft SQL Server 2005\配置工具\目录下的SQL Server Configuration Man 阅读全文
摘要:
E:\ProgramFile\VS2010\Visual Studio Tools for Office\PIA\Office12在安装路径下有所有的 office .net 类库 阅读全文
摘要:
--变量声明默认是Null Valuedeclare @groupid int if(@groupid is null) print 'group id is null' 阅读全文
摘要:
--开始事务BEGIN TRAN--不显示计数信息SET NOCOUNT ONdeclare @companyid intdeclare @personid intdeclare OuterCursor cursorfor --tim select personid,companyid from company where employeeid in(2000000043)open OuterCursor fetch next from OuterCursor into @personid,@companyid while(@@fetch_status=0) begin -- do work 阅读全文
摘要:
本人总结了几点关于 silverlight 本地化注意点:1.xaml 文件的本地化: (1)DependentProperty 的本地化: 直接将要本地化的属性, (2)IndpendentProperty 本地化: eg: DataGrid控件的 ColumnHeader 多语言显示等。2.后台代码的本地化:直接调用资源文件类即可 阅读全文
摘要:
Silverlight.DataSet 列名不能为数字 #region CreateBudgetSumDataSet /// summary /// 根据月份生成月份统计汇总 /// /summary /// param name="monthList"/param /// returns/returns private Silverlight.DataSet CreateBudgetSumDataSet(ListDateTime monthList, Listint currencyidList , ListBudgetItem budgetItemLis 阅读全文
摘要:
创建数据库 创建之前判断该数据库是否存在 if exists (select * from sysdatabases where name='databaseName') drop database databaseName go Create DATABASE database-name 删除数据库 drop database dbname 备份sql server --- 创建 备份数据的 device USE master EXEC sp_addumpdevice 'disk', 'testBack', 'c:\mssql7backup\MyNwind_1. 阅读全文
摘要:
--1. 获取表的基本字段属性SELECT syscolumns.name,systypes.name,syscolumns.isnullable, syscolumns.length FROM syscolumns, systypes WHERE syscolumns.xusertype = systypes.xusertype AND syscolumns.id = object_id('inventory')2. sql modules SELECT sm.object_id, OBJECT_NAME(sm.object_id) AS object_name, o.type, o. 阅读全文
摘要:
1.判断和删除约束(Constrains) IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[FK_table1_table2]') and OBJECTPROPERTY(id, N'IsForeignKey') = 1 ) ALTER TABLE dbo.table1 DROP CONSTRAINT FK_table1_table2 if (object_id('FK_StockOut_SALESORDER') is not null) begin alter table Stockout dro 阅读全文
摘要:
Invalid postback or callback argument. Event validation is enabled using in configuration …url:http://weblogs.asp.net/gunnarpeipman/archive/2009/05/10/invalid-postback-or-callback-argument-event-validation-is-enabled-using-in-configuration.aspxI wrote web part that uses Repeater control to create so 阅读全文