excel 导入(改进版)
摘要:import excelCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-- //import excel by filepath and sheetname public DataTable ExcelDataSource(string filepath...
阅读全文
posted @
2010-02-22 11:38
长风一剑
阅读(559)
推荐(1)
SQL控制表的权限
摘要:授权: GRANT INSERT/UPDATE/SELECT/ALL ON tablename TO username privilege granted收权: REVOKE INSERT/UPDATE/SELECT/ALL ON tablename TO username privilege revoked
阅读全文
posted @
2010-02-05 11:09
长风一剑
阅读(208)
推荐(0)
DataBase Mail
摘要:配置: profile name account调用: EXEC msdb.dbo.sp_send_dbmail @profile_name=profile name @recipients=recipient email address @subject=subject @body=body @body_format='HTML'/Others
阅读全文
posted @
2010-02-05 11:06
长风一剑
阅读(120)
推荐(0)
SQL触发器
摘要:Create trigger [triggername] on [table1] for [动作名][Insert/Update/Delete] As ......系统参数: Deleted:table1执行动作前的记录。 Inserted:table1执行动作后的记录。 @@rowcount:表示变化记录的条数。trigger存在table1中。
阅读全文
posted @
2010-02-05 11:03
长风一剑
阅读(124)
推荐(0)
合并gridview中某列信息相同的行
摘要:gridviewCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--public static void GroupRows(GridView GridView1, int cellNum) { int i = 0, rowSpanNum = 1; whi...
阅读全文
posted @
2010-02-02 11:16
长风一剑
阅读(165)
推荐(0)