Execute the following sql statement by changing the DataBase_Name.
SELECT DATABASEPROPERTYEX( 'DataBase_Name' , 'Collation' ) AS DatabaseCollation
How to know the collation of Sql Server?
SELECT SERVERPROPERTY('Collation') AS ServerCollation
SELECT DATABASEPROPERTYEX( 'DataBase_Name' , 'Collation' ) AS DatabaseCollation
SELECT SERVERPROPERTY('Collation') AS ServerCollation
ExcellData
Tanuta.Singh@excell.com
Neha.Jha@excell.com
Sangeeta.Halepet@excell.com
Aditi
SolutionIQ
Alycia
Adaequare
Gokul
Daniel M. Lee
IT Recruitment
Rydek Professional Staffing
Tel 310-641-9800 x22
TOLL FREE: (888)222-2934 X 22
Cell: 310-892-2125
FAX: 310-641-9804
DLEE@RYDEK.COM
WWW.RYDEK.COM
Nancy Wojack
Technical Staffing Consultant
VisionIT Inc.
313.664.5661 - Direct
313.664.5650 - Main
313.664.5652 - Fax
Nwojack@visionitinc.com
http://www.visionitinc.com
Prateek Gattani
IDC Technologies Inc.
Campbell, CA
Tel: (408) 891-2184
Fax: (408) 608-6088
Email: pat@idctechnologies.com
Kelli Upton
Bradson Technology Professionals
425-456-8900 office
253-350-5491 cell
kupton@bradsontech.com
www.bradsontech.com
Nina Schindler Work: (408) 739-4900 Ext. 123 Fax: (866) 996-9977
Maxonic 1230 Midas Way Suite 220 Sunnyvale, CA 94085-4068 www.maxonic.com
nina@maxonic.com
2. Non-Clustered Index
You need "Control" or "Alter" permission on that table to create a index.
There are many scenarios where you need to display "ALL" or "Select ALL" or a particular value at the top in a drop down list. Most of the people hard code the values in the UI. You can display this value from the backend also.
For example if you want to display the country "USA" at the top and the rest of countries in sort order you can use the following statement. Assuming COUNTRY information is stored in Country table.
SELECT "USA" AS CountryName, 0 AS SortColumn
UNION
SELECT CountryName, 1 AS SortColumn FROM Country ORDER BY SortColumn, CountryName
or
SELECT CountryName FROM Country ORDER BY (CASE WHEN CountryName='USA' THEN CHAR(0) ELSE CountryName End)
You can use this to display the product names, category names.....
EXEC SP_TABLES
EXEC SP_TABLES @Table_Type = ‘TABLE’, @Table_Owner = ‘dbo’
@table_name = '%'
for further filter the table namesWe can also use the following select statement to list all the tables information:
SELECT Name AS TableName FROM sysObjects WHERE xtype='u' ORDER BY TableName
SELECT TABLE_NAME FROM Information_Schema.Tables WHERE TABLE_TYPE='BASE TABLE' ORDER BY Table_Name
Delete:
Truncate:
SELECT @@VERSION AS SQLVERSION
/*Gives the complete information of sql edition and version*/SELECT SERVERPROPERTY('ProductVersion')AS SqlVersion, SERVERPROPERTY('Edition')AS SqlEdition, SERVERPROPERTY('ServerName')AS SQLServerName
SELECT 'Microsoft SQL Server ' + CAST(SERVERPROPERTY('EDITION')AS VARCHAR(100)) + ' ' + CAST(SERVERPROPERTY('PRODUCTLEVEL')AS VARCHAR(50)) AS SqlServerVersion
EXEC xp_msver
EXEC sp_msGetVersion