上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 34 下一页
  2011年5月18日
摘要: 最近在做全文搜索的内容,google了一下全文检索,发现了一些问题,现在总结如下: 全文索引和查询概念(摘自SQL 联机帮助)SQL Server 2008 为应用程序和用户提供了对 SQL Server 表中基于字符的数据发出全文查询的功能。在可以对给定表运行全文查询之前,数据库管理员必须对表创建全文索引。全文索引包括表中一个或多个基于字符的列。这些列可以具有下列任何一种数据类型:char、v... 阅读全文
posted @ 2011-05-18 17:22 WPF之家 阅读(348) 评论(1) 推荐(0)
  2011年5月17日
摘要: 在实例中,将从 SQL Server 数据库检索数据,并在 DataGrid 控件中显示该数据。 您可以使用 ADO.NET Entity Framework 创建代表数据的实体类,使用 LINQ 编写从实体类中检索指定数据的查询。效果图如下:转载自:http://www.wpf123.com 使用 C# 创建一个新的 WPF 应用程序项目,并将其命名为 DataGridSQLExample。在解... 阅读全文
posted @ 2011-05-17 21:21 WPF之家 阅读(736) 评论(0) 推荐(0)
  2011年5月16日
摘要: wpf之家:http://www.wpf123.com 第五动力: http://www.d5power.com/ Cool Ajax: http://ajax.cnrui.cn/ 博客园-----专注于.NET:http://www.cnblogs.com/ AJAX学习论坛:http://bbs.okajax.com 中程在线:ht... 阅读全文
posted @ 2011-05-16 10:50 WPF之家 阅读(338) 评论(0) 推荐(1)
  2011年5月15日
摘要: select 描述:查询顾客的公司名、地址信息查询句法:var 构建匿名类型1 = from c in ctx.Customers select new { 公司名 = c.CompanyName, 地址 = c.A... 阅读全文
posted @ 2011-05-15 16:29 WPF之家 阅读(188) 评论(0) 推荐(0)
摘要: 数据实体类:[Table(Name = "customers")] public class Customer { private string _CustomerID; [Column(IsPrimaryKey=true,Storage="_CustomerID")] public string CustomerID { ... 阅读全文
posted @ 2011-05-15 16:20 WPF之家 阅读(279) 评论(0) 推荐(0)
  2011年5月13日
摘要: http://msdn.microsoft.com/zh-tw/library/system.data.linq.sqlclient.sqlmethods.aspx最近專案的關係,一直再想LINQ是否有提供T-SQL中的LIKE方法,於是找了一下MSDN,結果發現了SqlMethods類別。這類別確實好用,不過提供少是最大的遺憾。甚麼是SqlMethods呢!?它是一個對應SQL Server函式... 阅读全文
posted @ 2011-05-13 15:18 WPF之家 阅读(269) 评论(0) 推荐(0)
  2011年4月26日
摘要: 1. SqlServer2000数据库字典--表结构.sqlSELECT TOP 100 PERCENT --a.id, CASE WHEN a.colorder = 1 THEN d.name ELSE '' END AS 表名, CASE WHEN a.colorder = 1 THEN isnull(f.value, '') ELSE '' END AS 表说明, ... 阅读全文
posted @ 2011-04-26 16:15 WPF之家 阅读(278) 评论(0) 推荐(0)
摘要: 读取表中的所有属性select*from information_schema.columns where table_name='表名'SELECT objtype, objname, name, valueFROM fn_listextendedproperty(default, default, default, default, default, default, default);sel... 阅读全文
posted @ 2011-04-26 14:07 WPF之家 阅读(190) 评论(0) 推荐(0)
摘要: -- 很多朋友问局域网多数据库服务器访问该如何操作?下面简单说明如何配置远程链接访问。/*********** 环境说明 ***********/-- 源机器 IP 为 10. 0.0.211 ,在该机器所在数据库建立与目标机器的远程数据库链接。-- 目标机器 IP 为 10. 0.0.222 。-- 步骤(一)是指直接用 IP 进行远程链接,个人觉得用 IP 链接虽然麻烦,但是直观而且在多服务器... 阅读全文
posted @ 2011-04-26 12:35 WPF之家 阅读(456) 评论(0) 推荐(1)
  2011年4月25日
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Runtime.InteropServices;usi... 阅读全文
posted @ 2011-04-25 14:17 WPF之家 阅读(890) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 34 下一页