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
0
comments
Labels:
asp.net,
experts-exchange.com,
Microsoft,
Ritesh Shah,
sqlhub.com,
T-sql
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
Latest Article in Extreme-Advice
Ask Me SQL Server question
Recent comment here
Comments for Ritesh's Blog for SQL-SERVER & .NET
Pages
About Me
- Ritesh Shah
- Ritesh Shah is a data professional with having 10+ years of experience in various domain of IT field. He is a author of many technical articles on Microsoft Technology and authored a book of SQL Server 2012 Performance Tuning. Apart from SQLHub, I used to share my knowledge at following places: http://blog.extreme-advice.com/ http://learn.extreme-advice.com/
Short Tips on Extreme-Exchange
Blog Roll
-
-
-
Data Quake7 years ago
-
test wrong solution9 years ago
-
Updateable columnstore index gotchas12 years ago
-
blog.extreme-advice.com is new blog home for me13 years ago
RSS
Feed
