Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2013
    Posts
    2

    Unanswered: What does two dots mean

    Dear All

    I am very new to sqlserver, I have a sql stmt and please let me what does the double dot means?

    see the from clause with double dots below.
    select ----
    -----
    From FCD_MIS..ABKDATA A
    Left Outer Join DATAWARE_History..C8PF C On A.Accyc=C.C8ccyn And A.Addate=C.Snap_Date
    Left Outer Join FCD_MIS..Account_Officer_Group_Codes D On A.Aofce=D.Ao_Code
    Left Outer Join FCD_MIS..MIS_PACK_ACCS_KWT E On A.Aact=E.Acc_Type

    Dennis

  2. #2
    Join Date
    Aug 2013
    Posts
    7
    SQL server used Dot notation. So if you are using double ".." it mean you want to specify the default data base like


    Employee..FirstName

    IS similar to

    Employee.dbo.FirstName

  3. #3
    Join Date
    Aug 2013
    Posts
    2
    hi
    FCD_MIS..ABKDATA
    The double dot used inside the from clause, so it is not a field name in a table

    Dennis

  4. #4
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    SQL Server uses multi-part naming in the format of
    server_name.database_name.schema_name.object_name

    You example is of 3-part naming, i.e.
    database_name.schema_name.object_name

    If no schema_name is specified we are left with
    database_name..object_name

    In these scenarios the default schema is used. That is; the default schema for the currently executing user.
    George
    Home | Blog

  5. #5
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    Run this to see the answer:
    Code:
    SELECT * FROM master.dbo.sysdatabases
    
    SELECT * FROM master..sysdatabases
    The results are the same.

    -PatP
    In theory, theory and practice are identical. In practice, theory and practice are unrelated.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •