2013年7月4日
摘要: use DataBaseNamegoif not OBJECT_ID('[Employees]') is Null Drop Table [Employees]goCreate Table [Employees](ID int Primary Key Identity(1,1), [Name] Nvarchar(50) Not Null, [Title] Nvarchar(50) Null, [Phone] int Null, [City] Nvarchar(20)) go Insert Into [Employees] select '张三', '采购 阅读全文
posted @ 2013-07-04 17:42 百花宫 阅读(1352) 评论(0) 推荐(0) 编辑
  2013年6月21日
摘要: 使用SQL Server 081. Create DatabaseCreate Database database_name2. Create TableCreate Table table_name(column1_name Type, column2_name Type, …)Tips:(1). 选择database 并判断表如果已存在,删除原有表Use Database_nameGoIf exists (select * from sys.objects where object_id=OBJECT_ID(N'table_name') and type in (N' 阅读全文
posted @ 2013-06-21 13:54 百花宫 阅读(497) 评论(0) 推荐(0) 编辑
  2013年6月19日
摘要: 打开word前先启动Word, false visible 则不单独打开一个空白word$word=New-Object-ComObject Word.Application$word.Visible = $false 阅读全文
posted @ 2013-06-19 11:10 百花宫 阅读(758) 评论(0) 推荐(0) 编辑