windows:sqlserver
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| windows:sqlserver [2015/01/12 06:42] – [reset password] admin | windows:sqlserver [2022/10/29 16:15] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== SQL Server ====== | ====== SQL Server ====== | ||
| ===== Install | ===== Install | ||
| - | ==== install | + | ==== install sql server |
| + | Download and Install SQLEXPRWT_x64_ENU.exe(SQL management studio was integrated in this package) | ||
| * Authentication: | * Authentication: | ||
| * Change Data directories: | * Change Data directories: | ||
| Line 8: | Line 9: | ||
| * to {{: | * to {{: | ||
| * * In SQL Server Configuration: | * * In SQL Server Configuration: | ||
| - | ==== install | + | ==== install |
| - | to manage sql server(must install | + | - step1: |
| + | - step2: | ||
| ===== Basic Config with SQL Server Configuration Tool ===== | ===== Basic Config with SQL Server Configuration Tool ===== | ||
| ==== Change config TCP/IP connection ==== | ==== Change config TCP/IP connection ==== | ||
| Line 24: | Line 26: | ||
| </ | </ | ||
| * Step2: Using SQL Server Configuration Tool, go to **SQL Server Network Configuration**-> | * Step2: Using SQL Server Configuration Tool, go to **SQL Server Network Configuration**-> | ||
| + | ==== view database config(data config, log config...) ==== | ||
| + | * step1: select database as below image: | ||
| + | {{: | ||
| + | * step2: right-click the database and click **properties** to see the database settings as below image: | ||
| + | {{: | ||
| ==== reset password ==== | ==== reset password ==== | ||
| ===== Backup and restore ===== | ===== Backup and restore ===== | ||
| ==== backup and restore bak file ==== | ==== backup and restore bak file ==== | ||
| + | * to restore: right click **databases** and select restore database | ||
| + | * to backup: | ||
| + | ==== backup and restore sql scripts ==== | ||
| + | * backup: right click **database name** and select **tasks-> | ||
| + | ==== attach database file(mdf file) ==== | ||
| + | ===== debug in sql server ===== | ||
| + | ==== query log in sql server ==== | ||
| + | * to view query log in sql server, we use sql server profiler | ||
| + | * with sql server express, we use expressprofiler(because in this version, the sql server profiler not exists): https:// | ||
| + | ==== The actual stored procedure line number from an error message ==== | ||
| + | Error line numbers may not match the number returned in the error always, this is because when **the SQL server executes a stored proc, it has its own compilation & execution methodology**, | ||
| + | ==== Debug stored procedure with break point ==== | ||
windows/sqlserver.1421044966.txt.gz · Last modified: (external edit)
