如何使用数据快速通过sql脚本创建数据库? [英] how to database create fast through sql script with data?

查看:70
本文介绍了如何使用数据快速通过sql脚本创建数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我正在为创建sql server数据库的运行脚本创建c#.net windows应用程序,它运行速度非常慢,它是一个我的数据库中包含大量数据。



我想在数据库创建期间提高性能。



怎么可能那可能吗?



谢谢。



Ankit Agarwal

软件工程师

Hello,

I am creating c#.net windows application for run script for sql server database created, it''s running very slow, It''s a lots of data in my database.

I want to improve performance during database create.

How could that possible?

Thank You.

Ankit Agarwal
Software Engineer

推荐答案

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



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[^]


这篇关于如何使用数据快速通过sql脚本创建数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆