Obtain the table field name (SORT ):
SELECT. name as field name FROM syscolumns a inner join sysobjects d on. id = d. id and d. xtype = 'U' and d. name <> 'dtproperties' where d. name = 'table name' order by. id,. colorder
Expected table field name:
MS SQL Server Query optimization methodThere are many reasons for the slow speed of queries, which are common1, no indexes, or no indexes (this is the most common problem with query slowness, is the flaw in programming)2, I/o throughput is small,
access|server|sql| Comparison | tips
Background database:[Microsoft Access]And[Microsoft SQL Server]After the replacement, the ASP code should note some of the areas to be modified:
[One] connection problem (for example)[Microsoft Access]Constr =
Background:Some time ago, business needs, in order to quickly let the parsing of Excel storage, so the not very sure of the field is set to the text.Today we need to optimize the table structure, control the field length to the appropriate range,
SQL ServerDatabaseObtain the content length of the text field.What about it? This article introduces SQLThe server database obtains the content length of the text field throughDatalengthFunction. Next we will use the syntax of the datalength
Bit integral typeThe bit data type is integral, and its value can only be 0, 1, or null. This data type is used to store data that has only two possible values, such as Yes or No, True or false, on, or off.Note: A data type that is space-saving and
Bit integral typeThe bit data type is integral, and its value can only be 0, 1, or null. This data type is used to store data that has only two possible values, such as Yes or No, True or false, on, or off.Note: A data type that is space-saving and
access|server|sql| comparison
Background database:[Microsoft Access]And[Microsoft SQL Server]After the replacement, the ASP code should note some of the areas to be modified:
[One] connection problem (for example)[Microsoft Access]Constr =
Description of SQL Server Field Types
The following describes the Field Types of SQL Server 7.0 and later versions. For more information about the field types of SQL Server 6.5, see the description provided by SQL Server.
Bit: an integer of 0 or
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.