01 2011 档案
Sql 变量声明和默认值
摘要:--变量声明默认是Null Valuedeclare @groupid int if(@groupid is null) print 'group id is null' 阅读全文
posted @ 2011-01-24 15:06 tim123 阅读(736) 评论(0) 推荐(0)
利用游标循环进行更新插入的SQL事务语句
摘要:--开始事务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 阅读全文
posted @ 2011-01-24 15:05 tim123 阅读(238) 评论(0) 推荐(0)
Silverlight 本地化
摘要:本人总结了几点关于 silverlight 本地化注意点:1.xaml 文件的本地化: (1)DependentProperty 的本地化: 直接将要本地化的属性, (2)IndpendentProperty 本地化: eg: DataGrid控件的 ColumnHeader 多语言显示等。2.后台代码的本地化:直接调用资源文件类即可 阅读全文
posted @ 2011-01-19 11:51 tim123 阅读(185) 评论(0) 推荐(0)
Silverlight.DataSet 列名不能为数字
摘要:Silverlight.DataSet 列名不能为数字 #region CreateBudgetSumDataSet /// summary /// 根据月份生成月份统计汇总 /// /summary /// param name="monthList"/param /// returns/returns private Silverlight.DataSet CreateBudgetSumDataSet(ListDateTime monthList, Listint currencyidList , ListBudgetItem budgetItemLis 阅读全文
posted @ 2011-01-17 13:54 tim123 阅读(1059) 评论(0) 推荐(0)
sql 大全
摘要:创建数据库  创建之前判断该数据库是否存在   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. 阅读全文
posted @ 2011-01-13 09:49 tim123 阅读(143) 评论(0) 推荐(0)
sql schema scripts
摘要:--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. 阅读全文
posted @ 2011-01-13 09:46 tim123 阅读(144) 评论(0) 推荐(0)
sql alter scripts
摘要: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 阅读全文
posted @ 2011-01-13 09:44 tim123 阅读(166) 评论(0) 推荐(0)
Invalid postback or callback argument. Event validation is enabled using in configuration ...[find in google]
摘要: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 阅读全文
posted @ 2011-01-11 10:01 tim123 阅读(461) 评论(0) 推荐(0)
WCF RIA Services(msdn)
摘要:http://msdn.microsoft.com/en-us/library/ee707372(v=VS.91).aspx 阅读全文
posted @ 2011-01-06 10:01 tim123 阅读(131) 评论(0) 推荐(0)
WCF RIA Services Unity DomainServiceFactory[转载]
摘要:WCF RIA Services Unity DomainServiceFactoryNote: This post is based on WCRRIA ServicesPDC beta andchanges can be made in a future release.In this post I will show you how it’s possible to create your own DomainServiceFactory which has the responsibility to create a DomainService instance. I decided 阅读全文
posted @ 2011-01-05 17:46 tim123 阅读(317) 评论(0) 推荐(0)
Load operation failed for query “GetCustomers" of microsfot 's sample RIA project.
摘要:12-17-2009 1:13 AM |Hi,I createad a Silverlight 4 Beta 1 application with Visual Web Developer 2010 Beta 2, using Silverlight Business Application template.Iadded an Entity Data Model pointing to AdventureWorks sample database, choosing only Contact table, and then I added a domain service class map 阅读全文
posted @ 2011-01-05 11:12 tim123 阅读(410) 评论(0) 推荐(0)