THE SQL Server Blog Spot on the Web
Welcome to SQLblog.com - The SQL Server blog spot on the web
Sign in
|
Join
|
Help
in
Denis Gobo
(Entire Site)
Search
Home
Blogs
Forums
Roller
Downloads
Opml
Denis Gobo
Browse by Tags
All Tags
»
sqL Server 2000
»
SQL Server 2005
(RSS)
dates
Datetime
DELETE
Functions
NULL
NULLIF
Nulls
Productivity
Shortcut
SQL Myth
SQL Server 2008
Teaser
Tip
Tips and Tricks
trick
TRUNCATE
Upgrading
If you are upgrading from SQL Server 2000 to 2008 and you never touched SQL Server 2005, then I feel sorry for you
“I sense you skipped SQL Server 2005 in you... Skipping SQL Server 2005 leads to a bigger learning curve... A bigger learning curve leads to not knowing the product as well...Not knowing the product as well leads to suffering..Running in compatibility
Read More...
Posted
Wednesday, July 09, 2008 2:33 PM
by
Denis Gobo
|
10 Comments
Filed under:
SQL Server 2008
,
sqL Server 2000
,
SQL Server 2005
,
Upgrading
A year in review, The 21 + 1 best blog posts on SQLBlog
A year in review, The 21 + 1 best blog posts on SQLBlog Best posts according to me, it might have been the content or it might have been the comments. Either way here are the 21 + 1 posts I enjoyed the most. But wait the year is not over yet. Doesn't
Read More...
Posted
Thursday, December 27, 2007 5:00 PM
by
Denis Gobo
|
0 Comments
Filed under:
SQL Server 2008
,
sqL Server 2000
,
SQL Server 2005
Return Null If A Value Is A Certain Value
You need to return NULL only if the value of your data is a certain value. How do you do this? There are three different ways. NULLIF DECLARE @1 char (1) SELECT @1 = 'D' SELECT NULLIF (@1 ,'D' ) REPLACE This should not really be used, I just added it
Read More...
Posted
Tuesday, November 06, 2007 2:28 PM
by
Denis Gobo
|
7 Comments
Filed under:
Tip
,
SQL Server 2008
,
sqL Server 2000
,
SQL Server 2005
,
trick
,
NULLIF
,
Nulls
SQL Teaser: Guess the output
What do you think will be the output? DECLARE @d datetime SET @d = '20071010' SELECT DATEADD (yy, DATEDIFF (yy, 0, @d)+1, -1) Share this post: email it! | bookmark it! | digg it! | reddit! | kick it! | live it!
Read More...
Posted
Wednesday, October 10, 2007 11:46 AM
by
Denis Gobo
|
6 Comments
Filed under:
Teaser
,
sqL Server 2000
,
SQL Server 2005
,
dates
,
Datetime
Increase Your Productivity With Query Analyzer/SQL Server Management Studio
Drag And Drop Column Names In Query Analyzer you can save a lot of time by using this trick instead of typing all the column names of a table Hit F8, this will open Object Browser Navigate to DatabaseName/TableName/Columns Click on the column folder and
Read More...
Posted
Monday, September 24, 2007 12:52 PM
by
Denis Gobo
|
5 Comments
Filed under:
Tip
,
SQL Server 2008
,
sqL Server 2000
,
SQL Server 2005
,
Shortcut
,
Tips and Tricks
,
Productivity
SQL Teaser PASS Special: Table Size
What will be the outcome of this script? First we create a table with a total of 6000 bytes Next we increase col2 from 1000 to 2000 bytes, this will give us a total of 7000 bytes Finally we add col3 which has 1000 bytes, this will give us a total of 8000
Read More...
Posted
Friday, September 21, 2007 9:58 AM
by
Denis Gobo
|
4 Comments
Filed under:
Teaser
,
sqL Server 2000
,
SQL Server 2005
SQL Server 2005 Best Practices Analyzer Released, End Of Support For SQL Server 2000 SP3a In 6 Days
End of Support for SQL Server 2000 Service Pack 3a Support for SQL Server 2000 Service Pack 3a (SP3a) will end on July 10, 2007. Microsoft will end technical support on this date, which also includes security updates for this Service Pack. Microsoft is
Read More...
Posted
Wednesday, July 04, 2007 5:40 AM
by
Denis Gobo
|
0 Comments
Filed under:
sqL Server 2000
,
SQL Server 2005
Summer SQL Teaser #4 Nulls and Counts
First create this table CREATE TABLE Teaser (ID int) INSERT Teaser VALUES (1) INSERT Teaser VALUES (2) INSERT Teaser VALUES (1) INSERT Teaser VALUES (2) INSERT Teaser VALUES (NULL) Without running this try to figure out what the result will be SELECT
Read More...
Posted
Friday, June 22, 2007 10:45 AM
by
Denis Gobo
|
7 Comments
Filed under:
Teaser
,
sqL Server 2000
,
NULL
,
SQL Server 2005
C# IsNullOrEmpty Function In SQL Server
Mladen Prajdic has created a SQL equivalent of the C# IsNotNullOrEmpty I looked at it and thought that there was way too much code Here is my version, you pass an additional parameter in to indicate whether you want blanks only to count or not CREATE
Read More...
Posted
Thursday, June 14, 2007 10:57 AM
by
Denis Gobo
|
5 Comments
Filed under:
sqL Server 2000
,
SQL Server 2005
,
Functions
SQL Myth: Truncate Cannot Be Rolled Back Because It Is Not Logged
I am still amazed at how many people still think that TRUNCATE TABLE is not logged. There is some logging going on but it is minimal, here is what Books On Line says: TRUNCATE TABLE removes the data by deallocating the data pages used to store the table's
Read More...
Posted
Wednesday, June 13, 2007 12:07 PM
by
Denis Gobo
|
7 Comments
Filed under:
SQL Server 2008
,
sqL Server 2000
,
TRUNCATE
,
SQL Server 2005
,
SQL Myth
,
DELETE
This Blog
Home
Email
Links
Syndication
RSS 2.0
Atom 1.0
Recent Posts
SQL Server 2008 Express with Advanced Services And Tools Now Available For Download
Interesting Bug/Feature In SQL Server 2008 RTM
SQL Server 2008 Management Studio tip: Status Bar Custom Colors
SQL Tip, Compiling Your SQL Without Running It To See If It Would Run
Microsoft SQL Server 2008 Feature Pack, August 2008 Available for download
links
SQL Server Code,Tips and Tricks, Performance Tuning
SQL Server BOL
The Curse and Blessings of Dynamic SQL
5 Books Every Developer Should Read
Less Than Dot
Good SQL Articles To Read If You Can't Afford Books
SQL Server Programming Hacks
People I Interviewed
Louis Davidson
Itzik Ben-Gan
Ken Henderson
Adam Machanic
SQL Books I Recommend
Inside Microsoft SQL Server 2005: T-SQL Querying
Pro SQL Server 2005 Database Design and Optimization
The Guru's Guide to Transact-SQL
The Guru's Guide to SQL Server Architecture and Internals
Inside Microsoft SQL Server 2005: The Storage Engine
Expert SQL Server 2005 Development
Tags
.Net 3.5
Agile
Backup
Benchmarks
Best Practices
Better Developer
Book
Books
Bug
Business Intelligence
C#
Career
CASE
Celko
COALESCE
code
dates
Datetime
DELETE
developer
Dimensional Modeling
Django
DLINQ
dmv
Dynamic Management Views
Encryption
Excel 2007
Extreme Programming
Feature
Federated Databases
Forum
Functions
geeky
General
Gotcha
Hacks
Hardware
Identity Theft
In the cloud computing
Index
Indexing
Internals
Interview
Job
Joe Celko
Katmai
Learning
LINQ
logging
Malware
meme
Microsoft
Microsoft .NET
Microsoft Office
non-technical
NULL
OLAP
ORM
Performance
podcast
PostgreSQL
programming
Python
Refactoring
Sad but true
Scrum
Security
SQL
SQL Controversy
SQL Injection
SQL Myth
SQL Server
sqL Server 2000
SQL Server 2005
SQL Server 2005 Analysis Services
SQL Server 2008
SQL Server 2008 Express
SQL Server Data Services
SQL Server Data Services Architecture
SQL Server Integration Services
SSAS
SSDS
SSIS
Star Schema
Subversion
Teaser
test
time
Tip
Tips and Tricks
Tools
Tortoise
Trace
trick
TRUNCATE
T-SQL
Video
Visual Studio 2008
WCF
Webcast
Archives
August 2008 (6)
July 2008 (6)
June 2008 (6)
May 2008 (16)
April 2008 (10)
March 2008 (5)
February 2008 (12)
January 2008 (9)
December 2007 (16)
November 2007 (13)
October 2007 (7)
September 2007 (6)
August 2007 (8)
July 2007 (17)
June 2007 (14)
May 2007 (3)
©2006-2008 SQLblog.com
TM
Brought to you by
Peter DeBetta
& Adam Machanic
Privacy Statement