且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用数据快速通过sql脚本创建数据库?

更新时间:2023-01-23 10:41:55

有很多原因导致这种情况发生。



1.检查数据库架构:数据类型,索引,约束等。

2.检查您的查询,存储过程等。

3.检查硬件和SQL服务器的设置方式。
There are lots of reasons why that is happening.

1. Check you database schema: data types, indexing, constraints etc.
2. Check your queries, stored procedures etc.
3. Check the hardware and the way SQL server is set up.


您可以在解决方案1中看到问题的可能原因。

如果您使用的是脚本,那么就不要了。使用存储过程,它们比查询更快。原因在于这里 [ ^ ]
You can see the possible reasons of your problem in Solution 1.
If you are using scripts, then don''t. Use Stored Procedures, they are faster than queries. The reason is here here[^]


引用:

它'我的数据库中有很多数据。

It''s a lots of data in my database.

这里有一些关于数据库性能优化的CP文章你可能会觉得有用

SQL Server DO'和DONT'的 [ ^ ]

数据库性能优化第1部分(索引策略) [ ^ ]

数据库性能优化第2部分(索引维护) [ ^ ]

优化的十大步骤SQL Server中的数据访问:第一部分(使用索引) [ ^ ]

优化SQL Server数据访问的十大步骤:第二部分(重新考虑TSQL并应用***实践) ices) [ ^ ]

在SQL Server中优化数据访问的十大步骤:第三部分(应用高级索引和非规范化) [ ^ ]

优化数据访问的十大步骤SQL Server:第IV部分(诊断数据库性能问题) [ ^ ]

在SQL Server中优化数据访问的十大步骤:第五部分(优化数据库文件并应用分区) [ ^ ]

SQL查询优化常见问题解答第1部分(带视频说明) [ ^ ]

SQL Server性能提示和指南 [ ^ ]

视频提示: - 即兴使用SQL Server Profiler进行SQL Server性能 [ ^ ]

Here are a few CP articles on database performance optimization you might find helpful
SQL Server DO''s and DONT''s[^]
Database performance optimization part 1 (Indexing strategies)[^]
Database performance optimization part 2 (Index maintenance)[^]
Top 10 steps to optimize data access in SQL Server: Part I (use indexing)[^]
Top 10 steps to optimize data access in SQL Server: Part II (Re-factor TSQL and apply best practices)[^]
Top 10 steps to optimize data access in SQL Server: Part III (Apply advanced indexing and denormalization)[^]
Top 10 steps to optimize data access in SQL Server: Part IV (Diagnose database performance problems)[^]
Top 10 steps to optimize data access in SQL Server: Part V (Optimize database files and apply partitioning)[^]
SQL Query Optimization FAQ Part 1 (With video explanation)[^]
SQL Server Performance Tips and Guidelines[^]
Video Tip:- Improve SQL Server performance by using SQL server profiler[^]