MSDN > 論壇首頁 > SQL Azure — Getting Started > How to connect to SDS?
發問發問
 

已答覆How to connect to SDS?

  • 2009年6月16日 上午 06:28dk1027 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     包含代碼
    Hi,
    I registered for SQL Services at http://portal.ex.azure.microsoft.com/ and I created a new solution. My question is, how do I connect?
    I find a code example at http://blogs.msdn.com/jcurrier/archive/2009/03/29/sds-coding-examples-part-1-c-ado-net.aspx
    and it got code like these:
                connStringBuilder.DataSource = "myserver.data.dev.mscds.com
    "; // Specify the DNS name of my SDS server (which holds my master db).
    
    connStringBuilder.InitialCatalog = "mydatabase "; // Specify your user database to connect to.
    ...
    connStringBuilder.UserID = "jeff@myserver "; // Specify my user id (and the server name which holds my master db)
    connStringBuilder.Password = "**** "; // Finally, specify my password.
    Where do I find out the data source, initial catalog, etc?

    Thanks,
    dk

解答

所有回覆

  • 2009年6月16日 上午 07:36Kapil Muni Gupta 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆
    Hi dk,

    you need give solution name as username and for password,  solution password.

    Regards
    Kapil
    • 已標示為解答dk1027 2009年6月16日 下午 06:47
    •  
  • 2009年6月16日 下午 03:14Aaron Stanley King 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆
    https://accesscontrol.ex.azure.microsoft.com/ManageAccount.aspx is where you manage your solution credentials.
    Aaron Stanley King - Microsoft Consultant - Perpetual Technologies, Inc. - http://www.perptech.com
  • 2009年6月16日 下午 06:39dk1027 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Hello,
    Thank you for your kind replies.
    I have more questions: what do I put for data source and initial catalog? I tried to put "myserver.data.dev.mscds.com" and "https://data.database.windows.net/v1/" as the data source but neither worked. For initial catalog I tried to leave it blank.
    Thanks,
    dk
  • 2009年6月16日 下午 06:45Aaron Stanley King 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆
    As far as I know the SQL logins haven't been turned on.  You still have to use the REST connection and query it like you would Astoria via the web service.  That is probably the issue.  SDS is still in V1.  V2 is due out any time now.
    Aaron Stanley King - Microsoft Consultant - Perpetual Technologies, Inc. - http://www.perptech.com
    • 已標示為解答dk1027 2009年6月16日 下午 06:46
    •