THE SQL Server Blog Spot on the Web

Welcome to - The SQL Server blog spot on the web Sign in | |
in Search

Denis Gobo

Dot Doesn't Make Sense?

What will happen when you run this?

Create Table #Dots(Data VarChar(50))

Insert Into...#Dots Values('Huh?') --3 dots

Insert Into..#Dots Values('Huh, say what?') --2 dots

Select * From .#Dots -- 1 dot

Drop Table #Dots --look no dots!

Published Thursday, October 18, 2007 2:11 PM by Denis Gobo
Filed under:



James Luetkehoelter said:

I gotta say Dennis, you have quite an interesting imagination with the SQL Teasers :)

October 18, 2007 3:56 PM

AlbertoFerrari said:

Funny. Dot. :)

October 19, 2007 4:21 AM

Madhivanan said:

The leading dots around the column names are treated as spaces

Insert Into Dots( Values('Huh?')

and you can use maximum three dots for an object

This will give you the answer why using upto three dots doesnt throw error

Create Table Dots(Data VarChar(50))

Insert Into .....Dots(data) Values('Huh?')--5 dots

Insert Into..Dots Values('Huh, say what?') --2 dots

Select * From .Dots -- 1 dot

Drop Table Dots --look no dots!

October 22, 2007 3:38 AM
New Comments to this post are disabled

About Denis Gobo

I was born in Croatia in 1970, when I was one I moved to Amsterdam (and yes Ajax is THE team in Holland) and finally in 1993 I came to the US. I have lived in New York City for a bunch of years and currently live in Princeton, New Jersey with my wife and 3 kids. I work for Dow Jones as a Database architect in the indexes department, one drawback: since our data goes back all the way to May 1896 I cannot use smalldates ;-( I have been working with SQL server since version 6.5 and compared to all the other bloggers here I am a n00b. Some of you might know me from or even from some of the newsgroups where I go by the name Denis the SQL Menace If you are a Tek-Tips user then you might know me by the name SQLDenis, I am one of the guys answering SQL Questions in the SQL Programming forum.

This Blog


Privacy Statement