Windows authentication is usually used when Microsoft SQL Server is installed, but Hybrid Authentication is often required in application development. After installation, you can modify the authentication as follows:
1. Modify the authentication
SQL Server Performance Optimization
(1) Database Design
Can you refer to the recent forum on the emergence of an excellent post http://topic.csdn.net/u/20100415/10/a377d835-acbd-4815-8bcb-b367f88ac8b5.html? 92227Database design includes physical
Sometimes, due to the lack of Functions of SQL Server, we need to use external programs to implement it. Because of its language independence and powerful functions, com becomes the first choice for the interface with SQL Server, in addition, SQL
/* -- The method for resolving strings that cannot exceed 8000
It is often mentioned that when data is processed using the dynamic generation of SQL statements, the processing statements are too long and cannot be processed.This issue is discussed
Write a registry to dynamically create an SQL Server ODBC Data Source Meanings of parameters:Dbserver: host where the database is locatedDbname: Database NameDSN: Data Source NameUID: Login UserReturn Value:-1: the SQL Server Driver is not installed.
You can use DBCC checkident to reset the start value of the identity column of the table in use;For example, if you want to delete all records in a table, you can run DBCC checkident (tablename, reseed, 0) in the query analyzer when the ID column
In practice, you sometimes need to import a large amount of data into the database and then use it for various program calculations. In this experiment, we will use step 5 to complete this process and record the time spent by various methods in
Wait type descriptionAsync_diskpool_lockThis occurs when you attempt to synchronize parallel threads (execute tasks such as creating or initializing files. Async_io_completionThis occurs when a task is waiting for I/O to
SQL Server, access, and Excel Data Transmission Summary
The so-called data transmission actually refers to the access between SQL Server and excel.
Why should we take this issue into consideration?
Due to historical reasons, many of the customer's
SQLThe server stored procedure is a named set of transacation-SQL statements stored on the server. It is a method for encapsulating repetitive work. It supports user-declared variables,Conditional execution and other powerful programming
There are two ways to back up SQL Server databases: one is to back up DATABASE files using BACKUP DATABASE, and the other is to directly copy the DATABASE files mdf and log files ldf. The following describes the backup and recovery of the latter.
SQL stored procedures often need to call some functions to make the processing process more reasonable and make the function more reusable. However, you may find that when writing SQL functions, some functions are written under the table value
I. Why should I introduce locks?
When multiple users concurrently perform database operations, the following data inconsistency occurs:
◆ Update loss
A and B read and modify the same data. The Modification result of one user destroys the
1. System database:
Master-System database;Model-template database. All databases we create are Copy databases;Tempdb-temporary database. After SQL Server is restarted, it will be re-created. You can create private (prefix #) and Global (prefix #)
Microsoft SQL Server has an SDK library that provides various commands equivalent to the Manager function. As long as the corresponding Dll is referenced, the corresponding commands can be executed (. SQL.
1. reference the corresponding DLL (version:
Sort out several sections of common C # code used to operate the SQL Server Mobile database for your reference.
1. Create a database// Create a databaseFile. Delete (\ "Test. sdf \");SqlCeEngine engine = new SqlCeEngine (\ "Data Source = 'test. sdf '
1. Obtain the SQL SERVER service startup status through the registry. It is the same as obtaining the startup status of other services. The method is to find the Start key value in the Registry: HK_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \
Although the query speed is slow for many reasons, through certain optimization, the query problem can be solved to a certain extent.
There are many reasons for slow query speed. The following are common causes:
1. No index or no
Index Used(This is
= Generate a random number in the number range =
-- Create a view
Create view myview as select re = rand ()
-- Custom function: gets a random number within a specified range.Create function mydata (@ A int,@ B int)Returns decimal
CONVERTExplicitly converts a data type expression to another data type. Because some requirements often use different date formats, the following can be found inFormat the date in SQL Server.
SQL Server supports the data format in the Arabic style
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.