This article describes how to create a login in SQL Server or Azure SQL Database by using SQL Server Management Studio (SSMS) or Transact-SQL. A login is the identity of the person or process that is connecting
A. 使用 ProgID 下列範例會使用其 ProgID 建立 SQL-DMOSQLServer物件。 SQL DECLARE@objectINT;DECLARE@hrINT;DECLARE@srcVARCHAR(255), @descVARCHAR(255); EXEC @hr = sp_OACreate 'SQLDMO.SQLServer', @object OUTPUT; IF @hr <> 0BEGINEXEC sp_OAGetErrorInfo @object, @srcOUTPUT, @descOUTPUTRAISERRO...
如需詳細資訊,請參閱 SQL Server 和 Azure SQL 索引架構和設計指南。 Azure Synapse Analytics 和 Analytics Platform System (PDW) 目前不支援唯一條件約束。 任何參考唯一條件約束的範例僅適用於 SQL Server、Azure SQL Database 和 Azure SQL 受控實例。 如需索引設計指導方針的相關信息,請參閱 SQL Server 索引...
有关详细信息,请参阅 SQL Server 以及 Azure SQL 索引体系结构和设计指南。 Azure Synapse Analytics 和 Analytics Platform System (PDW) 目前不支持唯一约束。 引用唯一约束的任何示例仅适用于 SQL Server、Azure SQL 数据库和 Azure SQL 托管实例。 有关索引设计指南的信息,请参阅 SQL Server 索引设计指南。
SQL Server的安全特性会自动过滤 包含隐私的数据,比如密码。我在我的SSMS中执行了如下的语句: EXEC sp_password 'pp','pp1','sa'; 这是修改sa帐号密码的系统sp,我打开了SQL Server Profile –> 选择了T-SQL 监控模版 然后执行上面的存储过程,监控结果: ...
The schema that contains the names of SQL Server system data types. The default schema of the current user in the current database. Thedboschema in the current database. [ =default] A default value for the parameter. If adefaultvalue is defined, the function can be executed without specifyi...
默认情况下,SQL Server 不能执行 CLR 代码。 可以创建、修改和删除引用公共语言运行时模块的数据库对象;不过,只有在启用 clr enabled 选项之后,才能在 SQL Server 中执行这些引用。 若要启用该选项,请使用 sp_configure。 备注 包含数据库中不支持 CLR 过程。 ATOMIC WITH 适用于:SQL Server 2014 (12.x) 及更...
If you are running Microsoft Windows server operating system, use the Performance Monitor to measure the performance of SQL Server. You can use Performance Monitor to create an alert that is raised when a threshold value for a Performance Monitor counter has been reached. In response ...
If an in-process OLE server is allowed (by using a context value of 1 or 5 or by not specifying a context value), it has access to memory and other resources owned by SQL Server. An in-process OLE server may damage SQL Server memory or resources and cause unpredictable results, s...
By default, SQL Server blocks access to OLE Automation stored procedures because this component is turned off as part of the security configuration for this server. A system administrator can enable access to OLE Automation procedures by using sp_configure...