Can't connect to SQL Database using new login

I can connect to Azure SQL Database using the admin ID created when I set up the Azure account.  Now I want to set up a different login that has only regular read/write privileges.  I have followed the instructions on several web posts, to create
a login at the server level, then create a user at the database level from the login.  When I try to connect, though, the connection fails.  I get an error message, and a GUID that I am supposed to supply to MS tech support, except that all I have
is a standard Azure subscription, which does not include tech support.
Here is what I have done so far:
Logging in to the server with the admin account with SQL Mgmt Studio, I go to the master database on my Azure server, and create the login:
CREATE LOGIN clouduser@gxw8x04nlb with PASSWORD = 'xoxoxoxo';
This appears to work (password supplied is a "strong" password), or at least it doesn't show any error response.
Then, connecting to the production database in Azure, I set up a user and set permissions as follow:
CREATE USER clouduser1 FROM LOGIN clouduser@gxw8x04nlb;
EXEC sp_addrolemember 'db_datareader', 'clouduser1'
EXEC sp_addrolemember 'db_datawriter', 'clouduser1'
When I attempt to connect to Azure using the new login, however, I get an error message (from SQL Mgmt Studio as well as from MS Access).  I am using the SQL Server Native Client 10.0.
The message is:
Connection failed:
SQLState '28000'
SQL Server Error 18456
[Microsoft][SQL Server Native Client 10.0][SQL Server]Login failed for user 'clouduser'.
Connection failed:
SQLState: '01000'
SQL Server Error: 40608
[Microsoft][SQL Server Native Client 10.0][SQL Server]This session has been assigned a tracing ID of
'271851d5-8e94-497c-a332-d9d40682bb7a'.  Provide this tracing ID to customer support when you need assistance.
Is there some missing step I need to do, to permit the login to see the database?  I have looked for such in the various discussions about connection problems, but have not been able to find such a thing.   Or extend more permissions to the new
user? Or specify a default user ID for a given login ?  (as they do not have the same names, in the examples I have seen).  I tried making the user ID the same as the login (w/o the server name), but that didn't seem to help, either.
I have done numerous web searches, and tried about every variation of login or user ID, password, etc. that I can think of, and all of them encounter the same error.  It's got to be something very simple - clearly Azure supports more than one login
per database.  But's that's all I have at the moment.  That login connects just fine, but others won't, using the same PC, middleware, IP address, etc.
Any help would be much appreciated -
Thanks,
     Doug

Olaf -
I noticed that, but all of the examples I have seen have Users named slightly differently from the Logins.  I did try logging in with the Login name instead.  No good.  I tried making the Login and the User name the same (clouduser).  Also
no good - same symptoms.
I think the problem is that the initial creation of the Login needs to be done WITHOUT the server name on the end.  
Logged in to the master DB, I tried:  Create LOGIN clouduser@gxw8x04nlb with PASSWORD = 'xoxoxoxo';
That didn't give me an error message, but I think it created a LOGIN of 'clouduser@gxw8x04nlb'.  When
referenced from the outside world, I would need to specify 'clouduser@gxw8x04nlb@gxw8x04nlb'.
I tried deleting the logins, and then creating the login 'clouduser' in the Master DB.  Then in
the application DB, I created User clouduser from LOGIN clouduser, and then assigned a role.  That seems to work!
In my connection string, File DSN, etc. I still need to supply the login as 'clouduser@gxw8x04nlb'.
 But when I am logged in to the server, and working in the Master DB or the application DB, I just refer to the Login as 'clouduser'.  
Seems a little more complicated than it really should be, but at least I now have something that works.
Doug
Doug Hudson

Similar Messages

  • How can I connect to the database using ODBC within excel.

    Hi,
    How can I connect to the database using ODBC within excel and just refresh the data when needed.
    Thanks,
    Priyanka
    Edited by: user554934 on Jun 9, 2009 2:53 AM

    This is NOT an APEX relevant question, try posting it in the SQL/PL/SQL Forum..
    Thank you,
    Tony Miller
    Webster, TX

  • Can I connect Azure SQL Database from Project Siena ?

    Can I connect Azure SQL Database from Project Siena ?
    I want to connect Azure SQL Database of Office 365 SharePoint's Access App from Project Siena.
    Access App's Database is Azure SQL Database.
    and can connect to Excel/PowerBI/etc.
    Access App's Database can connect from specific location / any locations.
    Access App's Database can allow read-only connection / read-write connection.
    I want to create Windows App connected to Access App's Database.
    Regards,
    Yoshihiro Kawabata.

    Hi Yoshihiro,
    Could you share more with us about the high level scenario for what you are trying to accomplish offline? We can discuss further at
    [email protected]
    Once we are done, we will definitely share our findings with the community.
    Thanks!

  • Lion can not connect to smb if use root login

    I found if use root account login lion, that can't connect to smb but use other account ok.who can help me take a look?

    This might help.  I have a Seagate Dockstar (Pogoplug w/samba) with attached drives connected to my network that was easily discoverable with Bonjour in Snow.
    From my experience -
    I got the SMB share working (sort of) in Lion 10.7
    While the network hub and connected drive(s) won't automatically appear as a Connected Server, or Bonjour Computer I was able to find the Dockstar by going to -
    Go/Connect to Server and then enter it's specific info -  smb://fabx2d09fe (my device's actual number was different than this).
    The dialog pops up for name and password - or connect as Guest.  I couldn't remember if I had set these so tried Guest and was able to access/mount the drive on the desktop and sucessfully read/write to/from it.
    I may have to always connect to recent servers to get the thing to mount so it's not as automatic as Bonjour in the sidebar - but it does work!
    This mostly solved the issue for my needs....maybe it would work for yours?

  • How can I connect to a database using Java Web Start?

    When I run the application without Java Web Start, the program can get the driver and connect to the database. However, when I try to use this same application with Java Web Start, the program can not load the driver. Why is this happening? I am using a mySql database driver.

    I assume you are trying to connect using JDBC, are did you include the jdbc jar in your resources ?

  • How can I connect to the database using the Oracle Remote Diagnostic Agent?

    Now I try to study RDA on Windows XP platform,when I run 'rda.cmd',there is a question 'Enter password for 'SYSTEM@'',what is the answer?
    Because I didn't know how to connect to database,there are many error messages - RDA-00510: SQL execution disabled,What can I do?

    Metalink Note:314422.1 to start
    It is asking you to tell how to connect to 'the database that you are investigating' over a network. The answer .... the password for the userid called 'system' in the database specified after the @
    I am confused ... you do not know how to connect to your database?

  • Connecting to SQL database using IP address

    Hi
    I'm writing some SQL code to connect to a database on another site.
    I have been given -
    Server IP addres
    Database name
    User ID
    Using the database connectivity tools it seems like I have to use a dsn to connect to the database - is it possible to do it using the IP and database details above?
    Cheers
    Dave

    Yes you should have all the information needed. To create your DSN you use the Data Sources (ODBC) program in Administrative Tools. If you need help, here are a couple sites that I found with instructions for creating a DSN and again here. Given that you are accessing SQL Server, you may already have the client drivers you need depending upon the version of Windows you are running.
    If you have XP, you're golden. If you are running something earlier, you need to download and install MDAC Version 8.2 SP1.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Running an older Visual Studio app on Server 2012R2 can't connect to SQL Database

    I have a database driven app written in Visual Studio 2005 or the release before.
    It works fine on windows xp, 7x64, server 2008R2.
    I installed on Server 2012R2, and it will not connect to the database. (which is a SqlServerExpress2014 database)
    System>Runtime.InteropServices.COMException (0x80004005): [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified at ADODB.ConnectionClass.Open(String ConnectionString, Strin UserID, String Password, Int32 Option) an
    ####.ModGlobal.OpenDB()
    1. My connection string is: Provider=SQLOLEDB.1;Password=XXXXX;Persist Security Info=True;User ID=sa;Initial Catalog=BuilderVT;Data Source=ENET-2012R2\SQLEXPRESS
    > I created & verified this as in a UDL file with OLEDB Core Services- the connection tested OK.
    > I used this same string on a Win7 system, and it connects to the database fine
    > I tried connecting to an older database on another system, and it fails.
    I suspect that there's a 32 to 64 bit mismatch, but, am lost at the moment

    My connection string is: Provider=SQLOLEDB.1;Password=
    Hello,
    Please lookup in Windows Registry if you have a key "HKEY_CLASSES_ROOT\SQLOLEDB.1" and/or HKEY_CLASSES_ROOT\SQLOLEDB". If you have only SQLOLEDB, then remove .1 from the Connection string.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Moving the Connection Broker SQL database

    Hi
    I have a working RDS 2012R2 configured with high availability mode. I now need to move the RD Connection Broker SQL database to new SQL server. Can anyone please point to documentation that specifies how this might be done
    Cheers
    Laurie

    Hi
    Well I gave it go and moved to sql2012 and all seems OK. This is what I did
    Copy the old DB to the new SQL server. Database file location was same on old and new server
    Apply the permissions same as old SQL server
    Logon to RDGATEWAY
    Get/save the current settings by
    Open PowerShell on RDgateway
    Type ipmo remotedesktop
    Type Get-RDConnectionBrokerHighAvailability. Save results
    Used the following commandSet-RDDatabaseConnectionString -ConnectionBroker "RDGATEWAYSERVERFQDN"
    -DatabaseConnectionString "DRIVER=SQL Server Native Client 11.0;SERVER=NEWSQLSERVER;Trusted_Connection=Yes; APP=Remote Desktop Services Connection Broker;Database=NAMEOFSQLDATABASE"
    Detached old DB
    Restarted RDGATEWAY server

  • Connection to multiple databases using a single EJB

    How can I connect to multiple Databases (using @PersistenceContext) using an EJB?
    Did I need to connect various Entity Managers corresponding to the each database and simply send my Queries?
    I am using Glassfish Application Server
    Netbeans IDE
    Java Derby Database
    Oracle Database
    Java Persistence API
    Thanks in Advance

    Yes, you need a persistence context and thus entity manager per database. Depending on what you want to achieve you may also need to go to the next level in your skill set and learn all about distributed transactions.

  • Can not start the cluster database using srvctl

    Created a RAC database with CRS.
    When i start the cluster database with srvctl, it appears that the database is started (i made sure using srvctl status), but when i try to login to the database using sqlplus, i get a message 'connected to idle instance'. if i try to start the database from sqlplus, i get message 'requested INSTANCE_NUMBER is busy!.
    any thoughts why i can not connect to the database using sqlplus after i start the database using srvctl?
    I stop the database using srvctl and started using traditional sqlplus, it will start with out any problem.
    what am i missing?

    check ur oracle_sid,also try to connect as sqlplus sys/****@prod as sysdba
    may be this is due to improper setting of init.ora file.
    and post ur sqlplus output here.
    Thanks
    Kuljeet Pal Singh

  • Unable to connect to Oracle Database using Oracle Sql developer 2.1.1.64

    Hi Everyone,
    I am searching for some help regarding my problem with Oracle connectivity. I have installed Oracle 11g release 2 on my Windows XP Professional Laptop. For a few days after installation i could connect to the Oracle database with the SYSTEM account using Oracle SQL developer ( installed on the same Laptop) but now i am unable to do so.It gives me this annoying message:
    An error was encountered performing the required operation  Got a minus one from read call .Vendor code 0
    However i am able to connect using Sql Plus by supplying the username SYSTEM and the corresponding password.
    My TNSNAMES .ora file is as follows:
    ORACLE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST =localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ORACLE)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    My Listener.ora file is as follows:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = D:\app\product\11.2.0\dbhome_1)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:D:\app\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    (SID_DESC =
    (GLOBAL_DBNAME = Oracle)
    (ORACLE_HOME = D:\app\product\11.2.0\dbhome_1)
    (SID_NAME = Oracle)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (PROTOCOL_STACK =
    (PRESENTATION = GIOP)
    (SESSION = RAW)
    ADR_BASE_LISTENER = D:\app
    My Sqlnet.ora file is as follows:
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    I am new to Oracle and so i need someone in this forum who can help me resolve this problem. Also i even tried connecting to the database using Toad 10.5.0.41. It give me the following error:
    ORA 12537 : TNS Connection closed
    Thanks for your patience and help in advance.
    ---Prashant

    Hello Irian and Sue,
    I can connect to the Oracle database using SQL Plus. Now when i TNSPING ORACLE from command line i get the following message :
    Used parameter files:
    D:\app\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =localhost
    *)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ORACLE)))*
    TNS-12537: TNS:connection closed
    Thanks for your response to my initial post.Do u have any other methods to resolve this?

  • I have an ipod 4 can i connect to pc and, using itunes match, store all music off ipod and then transfer to a new ipod 5?

    i have an ipod 4 can i connect to pc and, using itunes match, store all music off ipod and then transfer to a new ipod 5?

    hI, bella
    I also met this issue a few days ago and I finally find out how to transfer music from iPod to computer:
    1. Plug your iPod in and wait for the computer to recognize it.
    2. Open up 'My Computer' and under 'Devices With Removable Storage', double click and open apple iPod.
    3. Click on 'Tools' at the top of the window and drag down to 'Folder Options'.
    4. Under the 'View' tab, find the subfolder called 'Hidden files and folders'.
    5. Select the option 'Show hidden files and folders'.
    6. Click 'OK'.

  • Can't connect to the database after 1-2 day, Named Pipes Provider, error: 40,Microsoft SQL Server, Error: 121

    HI
    I have a problem. I can't connect to the database. It said : 
    An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider,
    error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 121)
    When I restart the server, I can connect normally. But after 1-2 days, it can't be connected. 
    How can I fix this?

    Hi Lee,
    Please refer to the following article to configure SQL Server 2005 to allow remote connections:
    http://support.microsoft.com/kb/914277/en-us
    Regards,
    Elvis Long
    TechNet Community Support

  • Essbase Error(1021001) Failed to Establish Connection With SQL Database...?

    Hi there!
    I am very new in Essbase and I am receiving the error message quoted below while trying to load data in a Cube. Weird thing is that we have checked all connections already and they are working correctly, however this process is still failing.
    If someone can give us an idea to troubleshoot it, that would be really appreciated.
    Thanks very much in advance for any help and regards!
    MAXL> deploy data from model 'Production_GL_Cube_SchemaModel' in cube schema '\Production_GL\Cube_Schemas\Production_GL_Cube_Schema' login AdminUserAccount identified by MyPassword on host 'ServerName.MyCompany.com' to application 'ORA_HFM' database 'GL' overwrite values using connection 'ServerName' keep all errors on error ignore dataload write 'E:\Logs\DataLoad_Error_2013.04.19.16.23.00.txt';
    BPM Connect Status: Success
    Failed to deploy Essbase cube. Caused by: Failed to load data into database: GL. Caused by: Cannot get async process
    state. Essbase Error(1021001): Failed to Establish Connection With SQL Database Server. See log for more information
    BPM maxl deployment ...failure.

    Hi Celvin,
    Thanks for your reply and my apologies for not coming back before on this issue.
    For the benefit of other readers, after hours struggling with the issue, we focused our attention in the following portion of the ORA_HFM.log file:
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/54996/Info(1013157)
    Received Command [Import] from user [Service_Acct@Native Directory] using [GL.rul] with data file [SQL]
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Info(1021041)
    Connection String is [DRIVER={DataDirect 6.1 Oracle Wire Protocol};Host=MyEssbaseServer01.MyCompany.com;Port=1521;SID=PRODUCTION;UID=...;PWD=...;ArraySize=1000000;]
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Info(1021006)
    SELECT Statement [SELECT cp_127."ACCT" AS "Accounts_CHILD",
             cp_127."PERIOD_MEMBER" AS "Period_CHILD",
             cp_127."PERIOD_YEAR" AS "Years_CHILD",
             'INPUT'  AS "View_CHILD",
             cp_127."ENTITY"  AS "Entity_CHILD",
             cp_127."PRODUCT_LINE" AS "Custom1_Product_CHILD",
             cp_127."Function" AS "Custom4_Function_CHILD",
             cp_127."B_U" AS "Business_Unit_ORACLEBUSINESS",
             cp_127."ORACLEFUNCTION" AS "Oracle_Function_CHILD",
             cp_127."LEGALENTITY" AS "Oracle_Entity_CHILD",
             'P' || cp_127."PRODUCTLINE" AS "Oracle_Product_CHILD",
             'A'[Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Info(1021043)
    Connection has been established
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Info(1021044)
    Starting to execute query
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Info(1021013)
    ODBC Layer Error: [S1000] ==> [[DataDirect][ODBC Oracle Wire Protocol driver][Oracle]ORA-04063: view "REP_ESSBASE.VW_GL_BALANCES" has errors]
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Info(1021014)
    ODBC Layer Error: Native Error code [4063]
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Error(1021001)
    Failed to Establish Connection With SQL Database Server. See log for more information
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Error(1003050)
    Data Load Transaction Aborted With Error [1021001]
    Then we concentrated in the following error message: *ODBC Layer Error: [S1000] ==> [[DataDirect][ODBC Oracle Wire Protocol driver][Oracle]ORA-04063: view "REP_ESSBASE.VW_GL_BALANCES" has errors]*
    So, we checked the database and noticed the schema and their views were damaged and -due to this- they lost all their properties (like data types, for example). So, we had to recompile all of them in order to avoid any loss of data. This was done in TOAD, as per the following info: https://support.quest.com/SolutionDetail.aspx?id=SOL66821
    Finally, once all the views on this schema were rebuilt and fixed, we were able to deploy the Cube again.
    Hope this help in the future. Cheers!!

Maybe you are looking for