MSSQL Query Blog
Getting the Millisecond Value in SQL Server
Hello to everyone, In this article, I will try to give information about obtaining the millisecond value in SQL Server. In SQL Server, you may want to get the Milliseconds value in some cases. You can easily do this using the code below. SELECT (DATEPART(MILLISECOND, GETDATE())); When you run the...
Listing Clustered Index, Identity and Primary Keys in SQL Server
Hello to everyone, In this article, I will try to give information about listing Clustered Index, Identity and Primary Keys in SQL Server. You may want to list Clustered Index, Identity and Primary Keys in SQL Server. You can easily do this using the code below. SELECT SCHEMA_NAME(schema_id) AS SchemaName,...