{"id":587,"date":"2018-03-05T22:01:29","date_gmt":"2018-03-05T14:01:29","guid":{"rendered":"https:\/\/blog.freesilo.com\/?p=587"},"modified":"2018-03-05T22:01:29","modified_gmt":"2018-03-05T14:01:29","slug":"%e6%97%a0%e6%b3%95%e4%bd%9c%e4%b8%ba%e6%95%b0%e6%8d%ae%e5%ba%93%e4%b8%bb%e4%bd%93%e6%89%a7%e8%a1%8c%ef%bc%8c%e5%9b%a0%e4%b8%ba%e4%b8%bb%e4%bd%93-dbo-%e4%b8%8d%e5%ad%98%e5%9c%a8%e3%80%81%e6%97%a0","status":"publish","type":"post","link":"https:\/\/freesilo.com\/?p=587","title":{"rendered":"\u65e0\u6cd5\u4f5c\u4e3a\u6570\u636e\u5e93\u4e3b\u4f53\u6267\u884c\uff0c\u56e0\u4e3a\u4e3b\u4f53 &#8220;dbo&#8221; \u4e0d\u5b58\u5728\u3001\u65e0\u6cd5\u6a21\u62df\u8fd9\u79cd\u7c7b\u578b\u7684\u4e3b\u4f53\uff0c\u6216\u60a8\u6ca1\u6709\u6240\u9700\u7684\u6743\u9650\u3002"},"content":{"rendered":"<p>\u95ee\u9898\uff1a<\/p>\n<p>===================================<\/p>\n<p>\u65e0\u6cd5\u4f5c\u4e3a\u6570\u636e\u5e93\u4e3b\u4f53\u6267\u884c\uff0c\u56e0\u4e3a\u4e3b\u4f53 &#8220;dbo&#8221; \u4e0d\u5b58\u5728\u3001\u65e0\u6cd5\u6a21\u62df\u8fd9\u79cd\u7c7b\u578b\u7684\u4e3b\u4f53\uff0c\u6216\u60a8\u6ca1\u6709\u6240\u9700\u7684\u6743\u9650\u3002 (.Net SqlClient Data Provider)<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n\u6709\u5173\u5e2e\u52a9\u4fe1\u606f\uff0c\u8bf7\u5355\u51fb: http:\/\/go.microsoft.com\/fwlink?ProdName=Microsoft%20SQL%20Server&amp;ProdVer=13.00.4206&amp;EvtSrc=MSSQLServer&amp;EvtID=15517&amp;LinkId=20476<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n\u670d\u52a1\u5668\u540d\u79f0: .<br \/>\n\u9519\u8bef\u53f7: 15517<br \/>\n\u4e25\u91cd\u6027: 16<br \/>\n\u72b6\u6001: 1<br \/>\n\u884c\u53f7: 1<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n\u7a0b\u5e8f\u4f4d\u7f6e:<\/p>\n<p>\u5728 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)<br \/>\n\u5728 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)<br \/>\n\u5728 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)<br \/>\n\u5728 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean&amp; dataReady)<br \/>\n\u5728 System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)<br \/>\n\u5728 System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean&amp; usedCache, Boolean asyncWrite, Boolean inRetry)<br \/>\n\u5728 System.Data.SqlClient.SqlCommand.ExecuteNonQuery()<br \/>\n\u5728 Microsoft.SqlServer.Management.UI.VSIntegration.Editors.DatabaseDiagramSupport.InstallSupportObjects(SqlConnectionInfoWithConnection connectionInfo, Urn databaseUrn)<\/p>\n<p>&nbsp;<\/p>\n<p>\u89e3\u51b3\u529e\u6cd5\uff1a<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\nUSE \u51fa\u95ee\u9898\u7684\u5e93\u540d; \r\nEXEC sp_changedbowner '\u6570\u636e\u5e93\u7cfb\u7edf\u7ba1\u7406\u5458';\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u67e5\u770b\u6570\u636e\u5e93\u7684\u6240\u6709\u8005\uff1a<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\nselect owner_sid ,lo.sid, lo.name, lo.loginname ,db_name(database_id) \r\nfrom master.sys.databases da \r\ninner join  sys.syslogins lo on  da.owner_sid = lo.sid\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u95ee\u9898\uff1a =================================== &#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/freesilo.com\/?p=587\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-587","post","type-post","status-publish","format-standard","hentry","category-sql-server"],"_links":{"self":[{"href":"https:\/\/freesilo.com\/index.php?rest_route=\/wp\/v2\/posts\/587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/freesilo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/freesilo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/freesilo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/freesilo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=587"}],"version-history":[{"count":2,"href":"https:\/\/freesilo.com\/index.php?rest_route=\/wp\/v2\/posts\/587\/revisions"}],"predecessor-version":[{"id":589,"href":"https:\/\/freesilo.com\/index.php?rest_route=\/wp\/v2\/posts\/587\/revisions\/589"}],"wp:attachment":[{"href":"https:\/\/freesilo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/freesilo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/freesilo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}