随笔分类 -  SQLServer

摘要:System.ServiceModel.FaultException: Server error. Detail: The EXECUTE permission was denied on the object 'sp', database 'login', schema 'dbo'. SELECT 阅读全文
posted @ 2019-03-22 15:18 ChuckLu 阅读(10490) 评论(0) 推荐(0) 编辑
摘要:https://www.sherweb.com/blog/how-to-set-up-database-mail-for-sql-server-job-failures/ Configure Database Mail 阅读全文
posted @ 2019-03-21 11:05 ChuckLu 阅读(258) 评论(0) 推荐(0) 编辑
摘要:Create Foreign Key Relationships Create a foreign key relationship in Table Designer Using SQL Server Management Studio In Object Explorer, right-clic 阅读全文
posted @ 2019-03-14 14:05 ChuckLu 阅读(724) 评论(0) 推荐(0) 编辑
摘要:Is it bad to rely on foreign key cascading? I'll preface前言 this by saying that I rarely delete rows period. Generally most data you want to keep. You 阅读全文
posted @ 2019-03-14 12:48 ChuckLu 阅读(436) 评论(0) 推荐(0) 编辑
摘要:How can I list all foreign keys referencing a given table in SQL Server? how to check if columns in table was used as foreign key in other tables Not 阅读全文
posted @ 2019-03-14 11:05 ChuckLu 阅读(316) 评论(0) 推荐(0) 编辑
摘要:Page是主表,主键是pageid;UserGroupPage表中的PageID字段是Page表里的数据。 https://www.codeproject.com/Questions/677277/I-am-getting-error-while-delete-entry You are tryin 阅读全文
posted @ 2019-03-14 10:57 ChuckLu 阅读(1191) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/sql/relational-databases/tables/specify-computed-columns-in-a-table?view=sql-server-2017 Before You Begin Limitations 阅读全文
posted @ 2019-03-12 11:45 ChuckLu 阅读(511) 评论(0) 推荐(0) 编辑
摘要:https://social.msdn.microsoft.com/Forums/sqlserver/en-US/3569bd60-1299-4fe4-bfa1-d77ffa3e579f/insert-into-with-not-exists?forum=transactsql 错误的语法 方案1, 阅读全文
posted @ 2019-03-06 11:40 ChuckLu 阅读(10804) 评论(0) 推荐(0) 编辑
摘要:SqlConnection.ConnectionTimeout https://docs.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlconnection.connectiontimeout?redirectedfrom=MSDN& 阅读全文
posted @ 2019-02-21 10:50 ChuckLu 阅读(970) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/16938151/uniqueidentifier-in-sql-becomes-lower-case-in-c-sharp If you using Entity Framework, uniqueidentifier dat 阅读全文
posted @ 2019-01-07 15:22 ChuckLu 阅读(397) 评论(0) 推荐(0) 编辑
摘要:How can I delete using INNER JOIN with SQL Server? You need to specify what table you are deleting from, here is a version with an alias: DELETE w FRO 阅读全文
posted @ 2019-01-02 18:19 ChuckLu 阅读(471) 评论(0) 推荐(0) 编辑
摘要:https://bbs.csdn.net/topics/120000749 http://www.cnblogs.com/s021368/articles/2148659.html 问题: udpate a set column1 = 1 where idx = 1 sqlserver 执行upda 阅读全文
posted @ 2018-12-26 11:43 ChuckLu 阅读(11111) 评论(2) 推荐(0) 编辑
摘要:https://social.msdn.microsoft.com/Forums/sqlserver/en-US/dba45618-1d64-4661-891d-74cab09dddf1/deadlock-while-running-multiple-update-statements?forum= 阅读全文
posted @ 2018-12-26 11:18 ChuckLu 阅读(313) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/sql/relational-databases/performance/start-and-use-the-database-engine-tuning-advisor?view=sql-server-2017 阅读全文
posted @ 2018-12-26 10:37 ChuckLu 阅读(185) 评论(0) 推荐(0) 编辑
摘要:https://support.microsoft.com/en-us/help/832524/sql-server-technical-bulletin-how-to-resolve-a-deadlock How to identify a deadlock Step 1 To identify 阅读全文
posted @ 2018-12-26 10:16 ChuckLu 阅读(428) 评论(0) 推荐(0) 编辑
摘要:https://www.red-gate.com/simple-talk/sql/learn-sql-server/how-to-track-down-deadlocks-using-sql-server-2005-profiler/ https://social.msdn.microsoft.co 阅读全文
posted @ 2018-12-25 18:16 ChuckLu 阅读(313) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/41908156/validating-missing-parameter-from-procedure-calls I don't think that there is a single "right" way to do 阅读全文
posted @ 2018-12-11 18:18 ChuckLu 阅读(207) 评论(0) 推荐(0) 编辑
摘要:创建表以及主键 判断表是否存在 OBJECT_ID 判断主键是否存在 SELECT 1 FROM sys.indexes WHERE name = N'PK_LISA_NoUseWebpartReplacement' AND object_id = OBJECT_ID(N'[dbo].[LISA_N 阅读全文
posted @ 2018-11-14 10:59 ChuckLu 阅读(788) 评论(0) 推荐(0) 编辑
摘要:https://sqlserver.dev129.com/2018/01/29/string-interpolation-in-t-sql/ Most programming languages have the ability to interpolate formatted strings. F 阅读全文
posted @ 2018-11-14 10:46 ChuckLu 阅读(274) 评论(0) 推荐(0) 编辑
摘要:https://www.c-sharpcorner.com/article/how-to-import-excel-data-in-sql-server-2014/ 需要注意的是,第一次是选择source【excel】 第二次是选择target【sql server】 'Microsoft.ACE. 阅读全文
posted @ 2018-11-13 16:59 ChuckLu 阅读(464) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示