Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 55b8c33

Browse files
committed
Merge branch 'MicrosoftDocs:main' into UpdateServiceRestartRequired-pijocoder-012325
2 parents f2f4f34 + 18de2c2 commit 55b8c33

6 files changed

Lines changed: 33 additions & 25 deletions

File tree

docs/database-engine/configure-windows/scm-services-change-the-password-of-the-accounts-used.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Change the password of the accounts used (SQL Server Configuration Manager)"
3-
description: Find out how to change the password of the accounts that the Database Engine and the SQL Server Agent use. Learn when it is important to change the password.
3+
description: Find out how to change the password of the accounts that the Database Engine and the SQL Server Agent use. Learn when it's important to change the password.
44
author: rwestMSFT
55
ms.author: randolphwest
66
ms.date: 01/23/2025
@@ -21,7 +21,7 @@ helpviewer_keywords:
2121

2222
[!INCLUDE [SQL Server](../../includes/applies-to-version/sqlserver.md)]
2323

24-
This article describes how to change the password of the accounts used by the [!INCLUDE [ssDE](../../includes/ssde-md.md)] and the [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] Agent in [!INCLUDE [ssnoversion](../../includes/ssnoversion-md.md)] by using SQL Server Configuration Manager.
24+
This article describes how to change the password of the accounts used by the [!INCLUDE [ssnoversion](../../includes/ssnoversion-md.md)] [!INCLUDE [ssDE](../../includes/ssde-md.md)] and the [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] Agent by using SQL Server Configuration Manager.
2525

2626
The [!INCLUDE [ssDEnoversion](../../includes/ssdenoversion-md.md)] and [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] Agent run on a computer as a service using credentials that are initially provided during setup. If the instance of [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] is running under a domain account and the password for that account is changed, the password used by [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] must be updated to the new password. If the password isn't updated, [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] might lose access to some domain resources and if [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] stops, the service don't restart until the password is updated.
2727

@@ -56,7 +56,7 @@ You must be an administrator of the computer to change the password used by a se
5656

5757
1. In the **SQL Server (**\<instancename>**) Properties** dialog box, on the Log On tab, for the account listed in the **Account Name** box, type the new password in the **Password** and **Confirm Password** boxes, and then select **OK**.
5858

59-
The password change made in SQL Server Configuration Manager takes effect immediately, without the need to restart the service [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)]. Please keep in mind that if you use the Windows Services app (services.msc) to change the account password, a service restart is be required.
59+
The password change made in SQL Server Configuration Manager takes effect immediately, without the need to restart the [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] service . Keep in mind that if you use the Windows Services app (services.msc) to change the account password, a service restart is required.
6060

6161
#### Change the password used by the SQL Server Agent service
6262

docs/relational-databases/native-client-odbc-extensions-bulk-copy-functions/bcp-gettypename.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.topic: "reference"
1010
helpviewer_keywords:
1111
- "bcp_gettypename function"
1212
apilocation: "sqlncli11.dll"
13-
apiname: "bcp_gettypename"
13+
apiname: ["bcp_gettypename", "bcp_gettypenameA", "bcp_gettypenameW"]
1414
apitype: "DLLExport"
1515
---
1616
# bcp_gettypename
@@ -27,6 +27,11 @@ RETCODE bcp_gettypename (
2727
DBBOOL fIsMaxType);
2828
```
2929

30+
Unicode and ANSI names:
31+
32+
- bcp_gettypenameA (ANSI)
33+
- bcp_gettypenameW (Unicode)
34+
3035
## Arguments
3136
*token*
3237
A value indicating a BCP type token.
@@ -35,12 +40,12 @@ RETCODE bcp_gettypename (
3540
Indicates if token requested is a max type.
3641

3742
## Returns
38-
A string containing the SQL type name corresponding to the BCP type. If an invalid BCP type is specified, an empty string is returned..
43+
A string containing the SQL type name corresponding to the BCP type. If an invalid BCP type is specified, an empty string is returned.
3944

4045
## Remarks
4146
The BCP type tokens are defined in the sqlncli.h header file and the sqlncli11.lib library.
4247

43-
The table below specifies the possible BCP types, whether or not they are max types, and the expected output.
48+
The following table specifies the possible BCP types, whether they're max types, and the expected output.
4449

4550
|BCP type name|MaxType|Output|
4651
|-------------------|-------------|------------|

docs/relational-databases/native-client-odbc-extensions-bulk-copy-functions/bcp-init.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.topic: "reference"
1010
helpviewer_keywords:
1111
- "bcp_init function"
1212
apilocation: "sqlncli11.dll"
13-
apiname: "bcp_init"
13+
apiname: ["bcp_init", "bcp_initA", "bcp_initW"]
1414
apitype: "DLLExport"
1515
---
1616
# bcp_init
@@ -48,7 +48,7 @@ Unicode and ANSI names:
4848
Is the name of the user file to be copied into or out of. If data is being copied directly from variables by using [bcp_sendrow](../../relational-databases/native-client-odbc-extensions-bulk-copy-functions/bcp-sendrow.md), set *szDataFile* to NULL.
4949

5050
*szErrorFile*
51-
Is the name of the error file to be filled with progress messages, error messages, and copies of any rows that, for any reason, could not be copied from a user file to a table. If NULL is passed as *szErrorFile*, no error file is used.
51+
Is the name of the error file to be filled with progress messages, error messages, and copies of any rows that, for any reason, couldn't be copied from a user file to a table. If NULL is passed as *szErrorFile*, no error file is used.
5252

5353
*eDirection*
5454
Is the direction of the copy, either DB_IN or DB_OUT. DB_IN indicates a copy from program variables or a user file to a table. DB_OUT indicates a copy from a database table to a user file. You must specify a user file name with DB_OUT.
@@ -61,9 +61,9 @@ Unicode and ANSI names:
6161

6262
The **bcp_init** function must be provided with an ODBC connection handle enabled for use with bulk copy functions. To enable the handle, use [SQLSetConnectAttr](../../relational-databases/native-client-odbc-api/sqlsetconnectattr.md) with SQL_COPT_SS_BCP set to SQL_BCP_ON on an allocated, but not connected, connection handle. Attempting to assign the attribute on a connected handle results in an error.
6363

64-
When a data file is specified, **bcp_init** examines the structure of the database source or target table, not the data file. **bcp_init** specifies data format values for the data file based on each column in the database table, view, or SELECT result set. This specification includes the data type of each column, the presence or absence of a length or null indicator and terminator byte strings in the data, and the width of fixed-length data types. **bcp_init** sets these values as follows:
64+
When a data file is specified, **bcp_init** examines the structure of the database source or target table, not the data file. **bcp_init** specifies data format values for the data file based on each column in the database table, view, or SELECT result set. This specification includes the data type of each column, the presence, or absence of a length or null indicator and terminator byte strings in the data, and the width of fixed-length data types. **bcp_init** sets these values as follows:
6565

66-
- The data type specified is the data type of the column in the database table, view, or SELECT result set. The data type is enumerated by [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] native data types specified in sqlncli.h. Data itself is represented in its computer form. That is, data from a column of **integer** data type is represented by a four-byte sequence that is big-or little-endian based on the computer that created the data file.
66+
- The data type specified is the data type of the column in the database table, view, or SELECT result set. The data type is enumerated by [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] native data types specified in sqlncli.h. Data is represented in its computer form. That is, data from a column of **integer** data type is represented by a 4-byte sequence that is big-or little-endian based on the computer that created the data file.
6767

6868
- If a database data type is fixed in length, the data file data is also fixed in length. Bulk-copy functions that process data (for example, [bcp_exec](../../relational-databases/native-client-odbc-extensions-bulk-copy-functions/bcp-exec.md)) parse data rows expecting the length of the data in the data file to be identical to the length of the data specified in the database table, view, or SELECT column list. For example, data for a database column defined as **char(13)** must be represented by 13 characters for each row of data in the file. Fixed-length data can be prefixed with a null indicator if the database column allows null values.
6969

@@ -77,14 +77,14 @@ Unicode and ANSI names:
7777

7878
To change data format values specified for a data file, call [bcp_columns](../../relational-databases/native-client-odbc-extensions-bulk-copy-functions/bcp-columns.md) and [bcp_colfmt](../../relational-databases/native-client-odbc-extensions-bulk-copy-functions/bcp-colfmt.md).
7979

80-
Bulk copies to [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] can be optimized for tables that do not contain indexes by setting the database recovery model to SIMPLE or BULK_LOGGED. For more information, see [Prerequisites for Minimal Logging in Bulk Import](../../relational-databases/import-export/prerequisites-for-minimal-logging-in-bulk-import.md) and [ALTER DATABASE](../../t-sql/statements/alter-database-transact-sql.md).
80+
Bulk copies to [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] can be optimized for tables that don't contain indexes by setting the database recovery model to SIMPLE or BULK_LOGGED. For more information, see [Prerequisites for Minimal Logging in Bulk Import](../../relational-databases/import-export/prerequisites-for-minimal-logging-in-bulk-import.md) and [ALTER DATABASE](../../t-sql/statements/alter-database-transact-sql.md).
8181

8282
If no data file is used, you must call [bcp_bind](../../relational-databases/native-client-odbc-extensions-bulk-copy-functions/bcp-bind.md) to specify the format and location in memory of the data for each column, then copy data rows to the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] using [bcp_sendrow](../../relational-databases/native-client-odbc-extensions-bulk-copy-functions/bcp-sendrow.md).
8383

8484
## Example
8585
This sample shows how to use the ODBC bcp_init function with a format file.
8686

87-
Before you compile and run the C++ code, you need to do the following:
87+
Before you compile and run the C++ code, you need to do the following steps:
8888

8989
- Create an ODBC data source called Test. You can associate this data source with any database.
9090

@@ -94,7 +94,7 @@ Unicode and ANSI names:
9494
CREATE TABLE BCPDate (cola int, colb datetime);
9595
```
9696
97-
- In the directory where you will run the application, add a file called Bcpfmt.fmt, and add this to the file:
97+
- In the directory where you run the application, add a file called Bcpfmt.fmt, and add this content to the file:
9898
9999
```
100100
8.0
@@ -103,14 +103,14 @@ Unicode and ANSI names:
103103
2SQLCHAR08"\r\n"2colbSQL_Latin1_General_Cp437_Bin
104104
```
105105
106-
- In the directory where you will run the application, add a file called Bcpodbc.bcp, and add this to the file:
106+
- In the directory where you run the application, add a file called Bcpodbc.bcp, and add content to the file:
107107
108108
```
109109
1
110110
2
111111
```
112112
113-
Now you are ready to compile and run the C++ code.
113+
Now you're ready to compile and run the C++ code.
114114
115115
```
116116
// compile with: odbc32.lib sqlncli11.lib

docs/relational-databases/native-client-odbc-extensions-bulk-copy-functions/bcp-readfmt.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.topic: "reference"
1010
helpviewer_keywords:
1111
- "bcp_readfmt function"
1212
apilocation: "sqlncli11.dll"
13-
apiname: "bcp_readfmt"
13+
apiname: ["bcp_readfmt", "bcp_readfmtA", "bcp_readfmtW"]
1414
apitype: "DLLExport"
1515
---
1616
# bcp_readfmt
@@ -43,7 +43,7 @@ Unicode and ANSI names:
4343
SUCCEED or FAIL.
4444

4545
## Remarks
46-
After **bcp_readfmt** reads the format values, it makes the appropriate calls to [bcp_columns](../../relational-databases/native-client-odbc-extensions-bulk-copy-functions/bcp-columns.md) and [bcp_colfmt](../../relational-databases/native-client-odbc-extensions-bulk-copy-functions/bcp-colfmt.md). There is no need for you to parse a format file and make these calls.
46+
After **bcp_readfmt** reads the format values, it makes the appropriate calls to [bcp_columns](../../relational-databases/native-client-odbc-extensions-bulk-copy-functions/bcp-columns.md) and [bcp_colfmt](../../relational-databases/native-client-odbc-extensions-bulk-copy-functions/bcp-colfmt.md). There's no need for you to parse a format file and make these calls.
4747

4848
To persist a format file, call [bcp_writefmt](../../relational-databases/native-client-odbc-extensions-bulk-copy-functions/bcp-writefmt.md). Calls to **bcp_readfmt** can reference saved formats. For more information, see [bcp_init](../../relational-databases/native-client-odbc-extensions-bulk-copy-functions/bcp-init.md).
4949

@@ -52,7 +52,7 @@ Unicode and ANSI names:
5252
The **BCPDELAYREADFMT** value of the *eOption* parameter of [bcp_control](../../relational-databases/native-client-odbc-extensions-bulk-copy-functions/bcp-control.md) modifies the behavior of bcp_readfmt.
5353

5454
> [!NOTE]
55-
> The format file must have been produced by version 4.2 or later of the **bcp** utility.
55+
> The format file must be produced by version 4.2 or later of the **bcp** utility.
5656
5757
## Example
5858

docs/relational-databases/native-client-odbc-extensions-bulk-copy-functions/bcp-writefmt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.topic: "reference"
1010
helpviewer_keywords:
1111
- "bcp_writefmt function"
1212
apilocation: "sqlncli11.dll"
13-
apiname: "bcp_writefmt"
13+
apiname: ["bcp_writefmt", "bcp_writefmtA", "bcp_writefmtW"]
1414
apitype: "DLLExport"
1515
---
1616
# bcp_writefmt

docs/relational-databases/stored-procedures/create-a-stored-procedure.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Create a stored procedure
33
description: Learn how to create a Transact-SQL stored procedure by using SQL Server Management Studio and by using the Transact-SQL CREATE PROCEDURE statement.
44
author: WilliamDAssafMSFT
55
ms.author: wiassaf
6-
ms.date: 01/25/2024
6+
ms.date: 01/22/2025
77
ms.service: sql
88
ms.subservice: stored-procedures
99
ms.topic: quickstart
@@ -84,18 +84,21 @@ To create a stored procedure in SSMS:
8484
GO
8585
SET QUOTED_IDENTIFIER ON
8686
GO
87-
-- =============================================
88-
-- Author: My Name
89-
-- Create Date: 01/23/2024
90-
-- Description: Returns the customer's company name.
91-
-- =============================================
87+
9288
CREATE PROCEDURE SalesLT.uspGetCustomerCompany
9389
(
9490
-- Add the parameters for the stored procedure here
9591
@LastName nvarchar(50) = NULL,
9692
@FirstName nvarchar(50) = NULL
9793
)
9894
AS
95+
/*
96+
-- =============================================
97+
-- Author: My Name
98+
-- Create Date: 01/23/2024
99+
-- Description: Returns the customer's company name.
100+
-- =============================================
101+
*/
99102
BEGIN
100103
-- SET NOCOUNT ON added to prevent extra result sets from
101104
-- interfering with SELECT statements.

0 commit comments

Comments
 (0)