You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/database-engine/configure-windows/scm-services-change-the-password-of-the-accounts-used.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
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.
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.
25
25
26
26
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.
27
27
@@ -56,7 +56,7 @@ You must be an administrator of the computer to change the password used by a se
56
56
57
57
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**.
58
58
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.
60
60
61
61
#### Change the password used by the SQL Server Agent service
Copy file name to clipboardExpand all lines: docs/relational-databases/native-client-odbc-extensions-bulk-copy-functions/bcp-init.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ ms.topic: "reference"
10
10
helpviewer_keywords:
11
11
- "bcp_init function"
12
12
apilocation: "sqlncli11.dll"
13
-
apiname: "bcp_init"
13
+
apiname: ["bcp_init", "bcp_initA", "bcp_initW"]
14
14
apitype: "DLLExport"
15
15
---
16
16
# bcp_init
@@ -48,7 +48,7 @@ Unicode and ANSI names:
48
48
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.
49
49
50
50
*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.
52
52
53
53
*eDirection*
54
54
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:
61
61
62
62
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.
63
63
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:
65
65
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.
67
67
68
68
- 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.
69
69
@@ -77,14 +77,14 @@ Unicode and ANSI names:
77
77
78
78
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).
79
79
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).
81
81
82
82
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).
83
83
84
84
## Example
85
85
This sample shows how to use the ODBC bcp_init function with a format file.
86
86
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:
88
88
89
89
- Create an ODBC data source called Test. You can associate this data source with any database.
90
90
@@ -94,7 +94,7 @@ Unicode and ANSI names:
94
94
CREATE TABLE BCPDate (cola int, colb datetime);
95
95
```
96
96
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:
98
98
99
99
```
100
100
8.0
@@ -103,14 +103,14 @@ Unicode and ANSI names:
103
103
2SQLCHAR08"\r\n"2colbSQL_Latin1_General_Cp437_Bin
104
104
```
105
105
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:
107
107
108
108
```
109
109
1
110
110
2
111
111
```
112
112
113
-
Now you are ready to compile and run the C++ code.
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.
47
47
48
48
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).
49
49
@@ -52,7 +52,7 @@ Unicode and ANSI names:
52
52
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.
53
53
54
54
> [!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.
Copy file name to clipboardExpand all lines: docs/relational-databases/stored-procedures/create-a-stored-procedure.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Create a stored procedure
3
3
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.
4
4
author: WilliamDAssafMSFT
5
5
ms.author: wiassaf
6
-
ms.date: 01/25/2024
6
+
ms.date: 01/22/2025
7
7
ms.service: sql
8
8
ms.subservice: stored-procedures
9
9
ms.topic: quickstart
@@ -84,18 +84,21 @@ To create a stored procedure in SSMS:
84
84
GO
85
85
SET QUOTED_IDENTIFIER ON
86
86
GO
87
-
-- =============================================
88
-
-- Author: My Name
89
-
-- Create Date: 01/23/2024
90
-
-- Description: Returns the customer's company name.
91
-
-- =============================================
87
+
92
88
CREATE PROCEDURE SalesLT.uspGetCustomerCompany
93
89
(
94
90
-- Add the parameters for the stored procedure here
95
91
@LastName nvarchar(50) =NULL,
96
92
@FirstName nvarchar(50) =NULL
97
93
)
98
94
AS
95
+
/*
96
+
-- =============================================
97
+
-- Author: My Name
98
+
-- Create Date: 01/23/2024
99
+
-- Description: Returns the customer's company name.
100
+
-- =============================================
101
+
*/
99
102
BEGIN
100
103
-- SET NOCOUNT ON added to prevent extra result sets from
0 commit comments