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/09 15:33] – [install SQLEXPR_x64_ENU.exe(sql server)] 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 7: | Line 8: | ||
* from {{: | * from {{: | ||
* to {{: | * to {{: | ||
- | * Config port 1433(not dynamic port) for TCP/IP | + | * * In SQL Server Configuration: |
- | {{: | + | ==== install |
- | ==== install | + | - step1: |
- | to manage sql server(must install | + | - 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 25: | 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 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.1420817607.txt.gz · Last modified: 2022/10/29 16:15 (external edit)