I understand than in a SQL statement, that the xxx
portion of, say, xxx.TableName
references the schema of the data table. Typically, most tables are created as dbo.TableName
. When referencing a table in SQL code, the default schema can be left out and you can just reference the table by the table name. Likewise, if you need to reference a table within another database, you can reference it by the following syntax Database.dbo.TableName
.
However, I just ran into another users code which has Database..TableName
. What does the ..
represent? I can assume a reasonable answer but I can't find any concrete documentation. (Google doesn't seem to work well with the double-dot text.)
It is short hand to use the default schema.
select x from steve..mark
is logical equivlant as select x from steve.dbo.mark
as long as dbo is the default schema
three part naming convention for sql server
msdn FROM CLAUSE
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With