摘要:1.数据文件和事务日志文件存放a.数据文件和日志文件放在不同的磁盘,读取时不用共享磁盘读取带宽,提高读写效率。b.同理,主数据文件和辅助数据文件也应放在不同的磁盘,失误日志文件亦然。2.使用文件组3.RAID磁盘阵列
阅读全文
摘要:--创建数据库create database 创建数据库on PRIMARY --创建主数据文件(name=创建数据库_data,filename='E:\DB_Store\创建数据库.mdf',size=10MB,maxsize=15MB,filegrowth=1MB),( --创建辅助数据文件name=创建数据库_data1,filename='E:\DB_Store\创建数据库data1.mdf',size=10MB,maxsize=15MB,filegrowth=1MB),filegroup group1 --创建分组1,数据1...
阅读全文
摘要:--创建数据库快照 create database SchoolManagement_SnapShot_0425 on ( NAME=SchoolManagement, filename='E:\SchoolManagement_SnapShot_0425.mdf' ) AS snapshot of SchoolManagement--用快照恢复数据库 restore database SchoolManagement from database_snapshot='SchoolManagement_SnapShot_0425'SELECT * FROM sys
阅读全文
摘要:"I see stuff like {0,-8:G2} passed in as a format string. What exactly does that do?" -- Very Confused String FormatterThe above format can be translated into this:"{<argument index>[,<alignment>][:<formatString><zeros>]}"argument index: This represent whi
阅读全文
摘要:标准形式:[DllImport("KSJApi.dll")] public static extern int KSJ_PreviewSetPos( int nChannel, IntPtr hWnd, int x, int y, int nWidth, int nHeight );例子:using System;using System.Runtime.InteropServices;using System.Text;/// <summary>/// 2010.07.25 还有些简单函数没有列出,客户可参考例程自己加入/// </summary>
阅读全文
摘要:有时候在WPF中要设置TEXTBOX自动换行 1、到文本框边缘后会自动换行 TextWrapping=Wrap 2、设置按Enter 健换行 AcceptsReturn=True 在C#下属性与WPF不同,所以要写个函数来控制自动换行 private void textBox2_TextChanged( object sender,TextChangedEventArgse) { int intC...
阅读全文
摘要:在WPF中,让button显示为一个Image,可以设置其BackGround为Image或者Content为Image,不过这两种方法都有一些问题~~ 1、可以把Button的content设置为一个Image,不过图片的周围有个边框,影响美观~ <Button> <Image Source="" /> </Button> 2、通过设置Background,不过还是有一个边框 3、重...
阅读全文