随笔分类 -  SQL Server

上一页 1 2 3 4 5 6 ··· 10 下一页

[转]一步步学习EF Core(2.事务与日志)
摘要:本文转自:http://www.cnblogs.com/GuZhenYin/p/6862505.html 上节我们留了一个问题,为什么EF Core中,我们加载班级,数据并不会出来 其实答案很简单,~ 因为在EF Core1.1.2 中我们在EF6.0+中用到的的延迟加载功能并没有被加入,不过在EF 阅读全文

posted @ 2017-12-20 17:05 freeliver54 阅读(390) 评论(1) 推荐(0) 编辑

[转]How to log queries using Entity Framework 7?
摘要:本文转自:https://stackoverflow.com/questions/26747837/how-to-log-queries-using-entity-framework-7 阅读全文

posted @ 2017-12-20 16:02 freeliver54 阅读(133) 评论(0) 推荐(0) 编辑

[转]使用EntityFramework6.1的DbCommandInterceptor拦截生成的SQL语句
摘要:本文转自:http://www.cnblogs.com/Ax0ne/p/3620958.html 开始 EF6.1也出来不少日子了,6.1相比6.0有个很大的特点就是新增了System.Data.Entity.Infrastructure.Interception 命名空间,此命名空间下的对象可以允 阅读全文

posted @ 2017-12-20 14:18 freeliver54 阅读(274) 评论(2) 推荐(0) 编辑

[转]COPY OR MOVE FILES AND FOLDERS USING OLE AUTOMATION
摘要:本文转自:http://sqlindia.com/copy-move-files-folders-using-ole-automation-sql-server/ 阅读全文

posted @ 2017-12-19 09:23 freeliver54 阅读(155) 评论(3) 推荐(0) 编辑

[转]How to Use xp_dirtree to List All Files in a Folder
摘要:本文转自:http://www.sqlservercentral.com/blogs/everyday-sql/2012/11/13/how-to-use-xp_dirtree-to-list-all-files-in-a-folder/ Last week I blogged about how 阅读全文

posted @ 2017-12-18 11:44 freeliver54 阅读(386) 评论(1) 推荐(0) 编辑

[转]How to nest transactions nicely - "begin transaction" vs "save transaction" and SQL Server
摘要:本文转自:http://geekswithblogs.net/bbiales/archive/2012/03/15/how-to-nest-transactions-nicely quotbegin-transactionquot-vs-quotsave.aspx Do you write stor 阅读全文

posted @ 2017-12-18 11:05 freeliver54 阅读(382) 评论(1) 推荐(0) 编辑

[转]Using TRY...CATCH in Transact-SQL
摘要:本文转自:https://technet.microsoft.com/en-us/library/ms179296(v=sql.105).aspx Using TRY...CATCH in Transact-SQL Errors in Transact-SQL code can be process 阅读全文

posted @ 2017-12-14 10:32 freeliver54 阅读(281) 评论(0) 推荐(0) 编辑

[转]SQL Server 2008- Get table constraints
摘要:本文转自:https://stackoverflow.com/questions/14229277/sql-server-2008-get-table-constraints You should use the current sys catalog views (if you're on SQL 阅读全文

posted @ 2017-11-30 16:14 freeliver54 阅读(123) 评论(0) 推荐(0) 编辑

[转]How can I list all foreign keys referencing a given table in SQL Server?
摘要:本文转自:https://stackoverflow.com/questions/483193/how-can-i-list-all-foreign-keys-referencing-a-given-table-in-sql-server EXEC sp_fkeys 'TableName' SELE 阅读全文

posted @ 2017-11-30 16:06 freeliver54 阅读(292) 评论(0) 推荐(0) 编辑

[转]UTF-8 encoding support for the BCP utility and BULK INSERT Transact-SQL command in SQL Server 2014 SP2
摘要:本文转自:https://support.microsoft.com/en-us/help/3136780/utf-8-encoding-support-for-the-bcp-utility-and-bulk-insert-transact-sq Summary<!-- ngIf: content 阅读全文

posted @ 2017-11-28 09:22 freeliver54 阅读(473) 评论(1) 推荐(0) 编辑

[转]Configure Network Drive Visible for SQL Server During Backup and Restore Using SSMS
摘要:本文转自:https://mytechmantra.com/LearnSQLServer/Configure-Network-Drive-Visible-for-SQL-Server-During-Backup-and-Restore-Using-SSMS/ Introduction Most of 阅读全文

posted @ 2017-11-24 14:28 freeliver54 阅读(257) 评论(0) 推荐(0) 编辑

[转]使用BCP导出导入数据
摘要:本文转自:http://www.cnblogs.com/zerocc/p/3225723.html bcp 实用工具可以在 Microsoft SQL Server 实例和用户指定格式的数据文件间大容量复制数据。 使用 bcp 实用工具可以将大量新行导入 SQL Server 表,或将表数据导出到数 阅读全文

posted @ 2017-11-24 09:02 freeliver54 阅读(1220) 评论(2) 推荐(0) 编辑

[转]How to Import a Text File into SQL Server 2012
摘要:Importing a Text File into SQL Server 2012 using the OpenRowSet() Function The OPENROWSET bulk row set provider is accessed by calling the OPENROWSET function and specifying the BULK option. The OPE... 阅读全文

posted @ 2017-11-22 18:05 freeliver54 阅读(205) 评论(2) 推荐(0) 编辑

[转]SQL SERVER中openrowset与opendatasource的区别
摘要:本文转自:http://blog.sina.com.cn/s/blog_6399df820102vyy8.html SQL SERVER中openrowset与opendatasource的区别: openrowset 查询:ok select * from openrowset('Microsof 阅读全文

posted @ 2017-11-22 11:05 freeliver54 阅读(559) 评论(1) 推荐(0) 编辑

[转]SQL Server如何启用xp_cmdshell组件
摘要:本文转自:https://www.cnblogs.com/atree/p/SQL_SERVER_xp_cmdshell.html 错误描述】: SQL Server阻止了对组件‘xp_cmdshell’的过程‘sys.xp_cmdshell’的访问。因为此组件已作为此服务嚣安全配置的一部分而被关闭。 阅读全文

posted @ 2017-11-22 10:04 freeliver54 阅读(248) 评论(0) 推荐(0) 编辑

[转]表变量和临时表的比较
摘要:本文转自;http://www.cnblogs.com/CareySon/archive/2012/06/11/TableVariableAndTempTable.html 关于表变量是什么(和表变量不是什么),以及和临时表的比较让很多人非常困惑。虽然网上已经有了很多关于它们的文章,但我并没有发现一 阅读全文

posted @ 2017-09-20 16:36 freeliver54 阅读(223) 评论(0) 推荐(0) 编辑

[转]MONTHS_BETWEEN Function - Oracle to SQL Server Migration
摘要:本文转自:http://www.sqlines.com/oracle-to-sql-server/months_between In Oracle, MONTHS_BETWEEN(date1, date2) function returns the number of months between 阅读全文

posted @ 2017-09-14 15:56 freeliver54 阅读(937) 评论(0) 推荐(0) 编辑

开发库测试库间触发器同步 查找某时间点后的触发器 生成其删除 创建 禁用的脚本
摘要:示例效果: 为便于数据库间的脚本移植, (如在开发库和测试库间进行脚本同步) 获取某时间点后,数据库增修的Triggers, 生成这些Triggers的创建脚本; 相关步骤: 1.通过SMSS 连接数据库,打开一个SQL窗口; 2.右键该窗口 Results to -》Results to text 阅读全文

posted @ 2017-08-17 10:14 freeliver54 阅读(260) 评论(0) 推荐(0) 编辑

[转] sqlserver 中查看trigger的disabled/enabled情况
摘要:本文转自:http://blog.csdn.net/miqi770/article/details/48708199 --启用 alter table TableName enable trigger TriggerName --启用 --禁用 alter table TableName disab 阅读全文

posted @ 2017-08-17 09:05 freeliver54 阅读(471) 评论(1) 推荐(0) 编辑

[转]How to get return values and output values from a stored procedure with EF Core?
摘要:本文转自:https://stackoverflow.com/questions/43935345/how-to-get-return-values-and-output-values-from-a-stored-procedure-with-ef-core 问题未解决 ALTER PROCEDUR 阅读全文

posted @ 2017-08-09 14:32 freeliver54 阅读(542) 评论(1) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 10 下一页

导航