Deal with Indian regional language in SQL Server 2005/2008
Thursday, July 30, 2009 |
Posted by
Ritesh Shah
DateTime observation in SQL Server 2008, Rounding or Bug?
Wednesday, July 29, 2009 |
Posted by
Ritesh Shah
Recently I come across with one very interesting observation. When you assign any date in datetime variable with milliseconds and print it, you will get difference of few milliseconds, sometime one or two or three. I don’t know whether SQL Server is rounding the datetime or it is a bug or SQL Server is not so much accurate up to milliseconds. Have a look at below examples:
declare @datetest datetime
set @datetest = '2009-01-01 23:59:59.998'
select @datetest --answer is 2009-01-01 23:59:59.997
GO
declare @datetest datetime
set @datetest = '2009-01-01 23:59:59.992'
select @datetest --answer is 2009-01-01 23:59:59.993
GO
declare @datetest datetime
set @datetest = '2009-01-01 23:59:59.982'
select @datetest --answer is 2009-01-01 23:59:59.983
GO
declare @datetest datetime
set @datetest = '2009-01-01 23:59:59.999'
select @datetest --answer is 2009-01-02 00:00:00.000
GO
I tried to find exact reason for this but wasn’t able to do so.
Reference: Ritesh Shah
http://www.sqlhub.com
Note: Microsoft Books online is a default reference of all articles but examples and explanations prepared by Ritesh Shah, founder ofhttp://www.SQLHub.com
Convert SQL Server date to GMT + 5.30 in SQL Server 2008/2005
Tuesday, July 28, 2009 |
Posted by
Ritesh Shah
http://www.sqlhub.com
Note: Microsoft Books online is a default reference of all articles but examples and explanations prepared by Ritesh Shah, founder ofhttp://www.SQLHub.com
Cannot create index on view Msg 1940, Level 16, State 1, Line 1
Thursday, July 23, 2009 |
Posted by
Ritesh Shah
http://www.sqlhub.com
Note: Microsoft Books online is a default reference of all articles but examples and explanations prepared by Ritesh Shah, founder of http://www.SQLHub.com
Find table being locked in SQL Server 2008/2005
Wednesday, July 22, 2009 |
Posted by
Ritesh Shah
http://www.sqlhub.com
Note: Microsoft Books online is a default reference of all articles but examples and explanations prepared by Ritesh Shah, founder of http://www.SQLHub.com
Started contributing in ASP.NET also
Saturday, July 18, 2009 |
Posted by
Ritesh Shah
http://www.sqlhub.com
Note: Microsoft Books online is a default reference of all articles but examples and explanations prepared by Ritesh Shah, founder of http://www.SQLHub.com
Became “SAGE” in Experts-Exchange.com
Monday, July 13, 2009 |
Posted by
Ritesh Shah
Saturday 11th July 2009 was really memorable day for me. I had an achievement in my personal as well as professional life.
I got married on 11th July 2008 and last Saturday I have completed one year with my beautiful wife who used to encourage me all the time to help community more and more.
One more achievement was that, I became “SAGE” in MS SQL SERVER zone in Experts-Exchange.com. “SAGE” is really one of the prestigious awards and I am proudly say that I have achieved it in just 3 months and 10 days.
I have joined Experts-Exchange.com on 26th March 09 but actively started participating by 1st April 2009 with 0 points. Right now I am about to complete 800,000 points in Experts-Exchange.com. Out of which I have more than 500,000+ points in MS SQL SERVER zone because of which I have been awarded with “SAGE” certificate in MS SQL Server zone. Apart from “SAGE” certificates, I have achieved few more certificates in Experts-Exchange.com. You can have a look at my profile in EE at:
http://www.experts-exchange.com/M_4847866.html
In this wonderful moment I would like to thanks to my wife, parents and few of my friends in technical fields (Pinal Dave and Bihag Thaker) who always encourage me to achieve more and more, help community more and more. Apart from all these person, how can I forget my blog reader? You are really wonderful people and always send me suggestions for improvement. BIG THANK TO YOU ALL.
Hope to have co-operation from all of you and blessings as well in future and I promise that I will do my best to help community.
Thank you very much once again.
Reference: Ritesh Shah
http://www.sqlhub.com
Note: Microsoft Books online is a default reference of all articles but examples and explanations prepared by Ritesh Shah, founder ofhttp://www.SQLHub.com
Find stored procedure in your database with T-SQL in SQL Server 2005/2008
|
Posted by
Ritesh Shah
http://www.sqlhub.com
Note: Microsoft Books online is a default reference of all articles but examples and explanations prepared by Ritesh Shah, founder of http://www.SQLHub.com
Keep watch on your database file size in SQL Server 2008/2005
Friday, July 10, 2009 |
Posted by
Ritesh Shah
Well, in few of my past articles, I have saw the method of how to keep watch on your disk drive, how to get information about your data and log file size as those are the very important task of DBA. Today, I am going to show one more important job which DBA simply can’t ignore. DBA needs to keep watch on every data and log file of databases server wide. If it reaches at certain limits, DBA should be notified by email immediately so that s/he can take any action regarding this. Let me show you one very simple script which can make this task very easy for DBA.
@body= @mes
http://www.sqlhub.com
Note: Microsoft Books online is a default reference of all articles but examples and explanations prepared by Ritesh Shah, founder of http://www.SQLHub.com
Keep watch on your disk space in SQL Server 2008/2005
Wednesday, July 8, 2009 |
Posted by
Ritesh Shah
' + @Drive + ': drive reached warning limit, current status is ' + cast(@FreeSpace as varchar) + ' MB only'
http://www.sqlhub.com
Note: Microsoft Books online is a default reference of all articles but examples and explanations prepared by Ritesh Shah, founder of http://www.SQLHub.com
Blog Archive
-
►
2011
(43)
-
►
July
(17)
- Index Fill Factor in SQL Server
- ISNULL, COALESCE or CONCAT_NULL_YIELDS_NULL in SQL...
- Should Auto_Close database property be ON or OFF i...
- Msg 22926, Level 16, State 1, Procedure sp_cdc_ver...
- Change Data Capture (CDC) in SQL Server 2008
- Find your backup history in SQL Server
- FileStream in SQL Server 2008+
- Get your server hardware information via DM_OS_SYS...
- Know your processor by XP_Instance_RegRead SP in S...
- Take mirror backup of database in SQL Server 2005/...
- SP_RefreshSqlModule in SQL Server 2005/2008
- What version to go for (updgrade) after SQL Server...
- Msg 7301 Cannot obtain the required interface ("II...
- OpenRowSet and OpenQuery in SQL Server 2005/2008
- Audit Trail with OUTPUT clause in SQL Server 2005/...
- Find third highest salary from Employee table
- Understand SET STATISTICS IO as a first step for p...
-
►
June
(15)
- Executing Stored Procedure with Result Sets in SQL...
- MERGE statement in SQL Server 2008 and later versi...
- Find missing Index with DMVs in SQL Server 2005/20...
- Find unused index in SQL Server 2005/2008/Denali
- Index Reorganize and Rebuild in SQL Server
- Do you know Index Statistics in SQL Server?
- List of articles about Index in SQLHub.com
- Filtered Index in SQL Server 2008/Denali
- Included Column Index with non clustered index in ...
- Nonclustered Index in SQL Server
- Clustered Index in SQL Server
- Some basics about Index in SQL Server
- Answer BI Quiz and win IPAD
- Tech-Ed 2011 on the Road in Ahmedabad
- Be selective while creating an Index in SQL Server...
-
►
July
(17)
-
▼
2009
(251)
-
▼
July
(13)
- Deal with Indian regional language in SQL Server 2...
- DateTime observation in SQL Server 2008, Rounding ...
- Convert SQL Server date to GMT + 5.30 in SQL Serve...
- Cannot create index on view Msg 1940, Level 16, St...
- Find table being locked in SQL Server 2008/2005
- Started contributing in ASP.NET also
- Became “SAGE” in Experts-Exchange.com
- Find stored procedure in your database with T-SQL ...
- Keep watch on your database file size in SQL Serve...
- Keep watch on your disk space in SQL Server 2008/2...
- Convert local DateTime to UTC DateTime in SQL Serv...
- Watch your file size of databases in SQL Server 20...
- Single User , Restricted User and Multi_user data...
-
▼
July
(13)
Pages
About Me
- Ritesh Shah
- Ritesh Shah is an author of many technical article on Microsoft Technology, especially on SQL-Server, .NET technology like C# and ASP.Net etc. He is having 9+ year of experience in IT industry and working as Project Leader and Database Administrator.
RSS
Feed

