XiaowenBlog/source/_posts/SQL Server.md
wenyongda faa5ff5430 docs: 为所有文章添加tags和categories元数据
为博客中的所有文章统一添加了tags和categories元数据,使用数组格式规范标签分类,便于文章分类管理和检索
2026-04-15 13:35:57 +08:00

26 lines
612 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: SQL Server
date: 2022-11-26 14:48:31
author: 文永达
top_img: https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper/abstract/B951AE18-D431-417F-B3FE-A382403FF21B.jpeg
tags: [SQL Server, 数据库, Microsoft, SQL]
categories: [数据库, SQL Server]
---
# SQL Server
## 建库字符集问题
```sql
ALTER DATABASE ACT_DEV SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
ALTER DATABASE ACT_DEV COLLATE Chinese_PRC_CI_AS;
ALTER DATABASE ACT_DEV SET MULTI_USER;
```
## 精度标度
精度指数字的位数标度指小数点后的位数。例如123.45精度是5标度是2decimal(5, 2)