SQLAzure: Creating Database User from Dacpac

Is it possible to create custom Database users with post deployment steps, and get it deployed as part of Dacpac ?

Hi,
It seems that the SqlPackage.exe Import action does not have any parameters that you want use to specify the database version or MAXSIZE of target server.
You can refer to the following article about Import Parameters and Properties of SqlPackage,exe:
http://msdn.microsoft.com/en-us/library/hh550080(v=vs.103).aspx
Ref:
https://social.msdn.microsoft.com/Forums/en-US/e5fef831-7f52-4626-8923-0aa493efc2a8/sqlserver-2012-partially-contained-database-user-created-by-dacpac-cannot-login?forum=ssdt
Hope this helps you.
Girish Prajwal

Similar Messages

  • Creating FBA user from the timer job

    Hi,
    I'm trying to create FBA users from the timer job,
    The code to it:
    MembershipCreateStatus createStatus;
    MembershipUser user = Membership.CreateUser(strUserID, strPassword, strEmail, "Test Question", "Test Answer", true, out createStatus);
    switch (createStatus)
    case MembershipCreateStatus.Success:
    //SendMail
    break;
    case MembershipCreateStatus.DuplicateEmail:
    //Log in to the error file
    break;
    But it throws the error:
    Unable to connect to SQL Server database in the timer job
    Regards,
    Sachin

    timer job has its own app.config, which is completely separate from the web.config
    plus, this is a terrible idea.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • How to create database link from oracle to sql server

    Please help with how to create database link from oracle to sql server
    Best regards,
    Vishal

    Please help with how to create database link from oracle to sql server
    Best regards,
    Vishal
    Hi Vishal,
    I found a lof of information regarding how to create a database link from Oracle to SQL Server, please see:
    https://www.google.co.in/?gws_rd=cr&ei=vd3XUvGFO8TgkAXqlYCADg#q=how+to+create+database+link+from+oracle+to+sql+server
    We discuss SQL Server related issue in this forum. If you have any more question regarding Oracle, please post it in Oracle communities forum for better support.
    Regards,
    Elvis Long
    TechNet Community Support

  • Create an user from the existing user.

    Hi All,
    Recently i have created one user from the existing user in a different server.
    Oracle version :10.2.0.1.0
    I have granted the similar roles same as in production.
    In Production:
    SQL> select granted_role,grantee from dba_role_privs where grantee in ('TRADELOANS');
    GRANTED_ROLE                   GRANTEE
    RESOURCE                       TRADELOANS
    CONNECT                        TRADELOANS
    In Test:
    SQL> select granted_role,grantee from dba_role_privs where grantee in ('TRADELOANS');
    GRANTED_ROLE                   GRANTEE
    RESOURCE                       TRADELOANS
    CONNECT                        TRADELOANS
    But the user complained that he is getting error like 'user lacks CREATE SESSSION privilege'. He also says he is able to connect to production but for the test he is getting that error
    Can anybody let me know where i have done the mistake?
    Regards
    Arun

    arundba wrote:
    Hi Kamran,
    I listed the roles given to the user in my first post. I have granted connect and resource role to the user.
    and it is same in production also. But the thing is why he is able to connect to production and not for test?
    Regards
    ArunSee the following demonstration:
    SQL> create user t identified by t;
    User created.
    SQL> connect t/t
    ERROR:
    ORA-01045: user T lacks CREATE SESSION privilege; logon denied
    Warning: You are no longer connected to ORACLE.
    SQL> conn / as sysdba
    Connected.
    SQL> grant connect to t;
    Grant succeeded.
    SQL> conn t/t
    Connected.
    SQL>

  • Need to create a user  from procedure

    Hi to all,
    I need to create a user from oracle stored procedure. i am able to create a proceure successfully, when i am executing the procedure i cant able to successfully run it. it is throwing insufficient privileges. i tried to run the procedure from system user also.
    The below one is the procedure.
    create or replace procedure sp_createsuser(username varchar2)
    as
    begin
    execute immediate 'create user ' || username || ' identified by ' || username;
    end;
    the code is parsed successfully and created without any errors
    when trying to executing it throwing error as insufficient privileges
    the user is dba privileged and tried this procedure to execute from the system user also, getting the same output.
    I need to know whether it is possible to create user from a procedure, package or a trigger.
    Thanks in advance.

    Hi,
    I guess the message is pretty clear !! you lack privilege.
    SQL> conn imx/imx
    Connected.
    SQL>
    SQL> create user testproc identified by testproc;
    create user testproc identified by testproc
    ERROR at line 1:
    ORA-01031: insufficient privileges
    SQL> create or replace procedure sp_createsuser(username varchar2)
      2  as
      3  begin
      4  execute immediate 'create user ' || username || ' identified by ' || username;
      5  end;
      6  /
    Procedure created.
    SQL> exec sp_createsuser('testproc');
    BEGIN sp_createsuser('testproc'); END;
    ERROR at line 1:
    ORA-01031: insufficient privileges
    ORA-06512: at "IMX.SP_CREATESUSER", line 4
    ORA-06512: at line 1
    SQL> conn sys/******* as sysdba
    Connected.
    SQL> grant create user to imx;
    Grant succeeded.
    SQL> conn imx/imx
    Connected.
    SQL> exec sp_createsuser('testproc');
    PL/SQL procedure successfully completed.
    SQL> conn sys/syssys as sysdba
    Connected.
    SQL> select username from dba_users where username like 'TESTP%';
    USERNAME
    TESTPROC
    SQL>Regards

  • Error message in creating EBP users from existing SU01 users

    I am getting the following error messages when i try to create EBP users from existing SU01 users using users_gen: Error during creation of user: User not created or error(s) occurred during user creation. ``Central person`` already exists for user (BBPU_MESSAGES 042). Pls what does it mean and how do i solve this?

    Babalola-
    The message is indicating that the user you are attempting to create was previously created in the EBP system.
    First I would try to correct the user via users_gen using the "check users" option.  This may repair the user, but if the user has lost the association to the org then you will need to take some manual steps to re-establish the links for the user in the org details.
    If this doesn't correct it, then use transaction PP01 to correct/verify the following relationships for the user.  Start with the org unit and work your way down looking for the broken link/s.
    Here are the required relationships for the objects:
    ORG UNIT:
    Relationship     Object
    B 003          Position(of user)
    POSITION:
    Relationship     Object
    A 003          Org Unit
    A 008          Central Person (of user)
    A 008          User
    CENTRAL PERSON:
    Relationship     Object
    B 008          Position
    B 207          Business Partner
    B 208          User
    USER:
    NONE
    BUSINESS PARTNER:
    NONE
    Hope this helps you.
    b

  • Creating Database Link from Oracle to SQL Server

    I am trying to create a database link from Oracle to SQL Server, and the documentation is about as clear as mud to me. Can anyone send me clear instructions on exactly what I need to do? What needs to be in tnsnames.ora and listener.ora files? Is there anything other than those two files that needs to be set up? Do I set up an ODBC connection? Anything else? I want to execute queries against a SQL Server database and load data into Oracle database.
    Thanks so much,
    Susan

    These are the instructions from an old document I created. The steps are same for SQL Server and Sybase. Hope it helps.
    The 9i Transparent Gateway Software is in Oracle Software CD -> oracle9i database -> Custom -> Oracle Transparent Gateways
    The gateway can be installed on the same machine as the Oracle database or
    on the Sybase server or on a third machine as a stand-alone.
    We have installed the gateway software in one of oracle database
    servers in a separate oracle home.
    These are the steps involved in configuring a gateway to a Sybase database
    1.     Install Sybase client and Gateway software on the Gateway Server
    2.     Configure <initsidfile> in the Gateway Server's <gatewayhome>
         /u00/app/oracle/product/9.2.0/tg4sybs/admin/init<gatewaysid>.ora
    Sybase server and database information is required for this step.
    eg: HS_FDS_CONNECT_INFO=USTRUD01.uwd
    3.     Add an entry in listener.ora in <listnenerhome>
         (/u00/app/oracle/product/9.0.1/network/admin/listener.ora) for the <gatewaysid>
    4.     Edit the tnsnames file (/u00/app/oracle/product/9.0.1/network/admin/tnsnames.ora)
    to add an entry <tnsalias> for the <gatewaysid>
    5.     Create a database link to the Sybase database in the oracle database.
    The steps for creating the database link are
    a. create a login oracle_tgw in the sybase server
    b. add the user to the sybase database with the necessary privilege on the tables
    c. create the database link in the required oracle database using the command
         "create public database link <dblinkname> connect to oracle_tgw identified by password using 'tnsalias'; "
    6.     Restart the gateway listener.

  • Error while creating database user with first.lastname pattern

    I am trying to user the database user management connector to create oracle database user, but when i use first.lastname pattern as the database username i got an ora-01936
    ERROR,07 Jul 2010 17:06:56,370,[OIMCP.DBUM],oracle.iam.connectors.dbum.common.db.util.DBUtil : executeQuery
    ERROR,07 Jul 2010 17:06:56,370,[OIMCP.DBUM],Error occurred while trying to execute query.
    ERROR,07 Jul 2010 17:06:56,370,[OIMCP.DBUM],Description : ORA-01936: cannot specify owner when creating users or roles
    ERROR,07 Jul 2010 17:06:56,370,[OIMCP.DBUM],java.sql.SQLSyntaxErrorException: ORA-01936: cannot specify owner when creating users or roles
    i figured out that when i use fist.lastname as database username i have to add double quotes, so i can create de user properly , but now the add role or grant task fails with ora-01741.
    ERROR,07 Jul 2010 17:18:01,096,[OIMCP.DBUM],================= Start Stack Trace =======================
    ERROR,07 Jul 2010 17:18:01,096,[OIMCP.DBUM],oracle.iam.connectors.dbum.common.db.util.DBUtil : executeQuery
    ERROR,07 Jul 2010 17:18:01,096,[OIMCP.DBUM],Error occurred while trying to execute query.
    ERROR,07 Jul 2010 17:18:01,096,[OIMCP.DBUM],Description : ORA-01741: illegal zero-length identifier
    ERROR,07 Jul 2010 17:18:01,096,[OIMCP.DBUM],java.sql.SQLSyntaxErrorException: ORA-01741: illegal zero-length identifier

    Did u try adding the roles via sqlplus by running a command ?
    Whats the result
    Thanks
    Suren

  • Is it possible to audit newly created database user in trigger?

    All,I have statement audit on for a list of database users(not all users).
    i.e
    audit update table, insert table, delete table by user1, user2, user3, ...
    Now when a new database user is created, how can I add audit statement on that new user automatically? I was thinking about using database level trigger, however, I havnt found any apporiate event type to accormadate this. Any other better solution?
    Thanks
    Jianhui

    I have figured it out by myself. Thanks.
    CREATE OR REPLACE TRIGGER audit_stmt_new_user_trg
    AFTER
    CREATE
    ON DATABASE
    WHEN (ora_dict_obj_type='USER'
    )

  • Create new users from an excel spread sheet

    Hi Everyone.
    I am very new to SAP and I have only done the ABAP programming course last month.
    To make mme become familiar with ABAP - I was given a task of creating users from an Excel spread sheet - This will be used later on when we implement the new SAP system and decommision the legacy system.
    I am just wondering If anyone has created such program - I would appreciated If I can have a copy So I can learn how it is done -
    At the moment, I was thinking of using BAPI_USER_CREATE1 and BAPI_TRANSACTION_COMIT to create users and optimise the creation call. Is there any thing else that I should be aware of ? I'd be appreciated if someone drop me some ideas - Thanks in Advance

    Hi Samantak.
    Thanks for your quick response.
    Since posting the question, I discovered that within  'BAPI_USER_CREATE1'  sub-call statements - comit is already done. Now my questions are:
    1) Do I still need 'BAPI_TRANSACTION_COMIT' to optimise the CREATE new newusers call ?  Apparently, yes.......I am curious for the reason 'why' since comitting is already done.
    2) I did an interactive call of the 'BAPI_USER_CREATE1'  - a user id was actually created in the system.  Now, my second question is.. Is there a way of calling 'BAPI_USER_CREATE1'  without comitting the data (i.e. create user record on file)..
    I want to call this whout comitting because I want to sort out the number of 'good' records from the supplied data list - and presenting the success percentage to the users before comitting the data.
    Thanks

  • Create database tables from an xsd

    Is it possible to generate database table from a given xsd using toplink ?
    I want to use these tables to persist java objects obtained by unmarshalling the xml (corresponding to this xsd).
    Thanks in advance,
    Mahima

    Hello Mahima,
    Although you could use TopLink to generate a database schema from an XSD using a combination of wizards available in the TopLink Workbench, the resulting database schema would probably not be an optimal design. If you're interested we can talk about how to use this approach as a guide.
    Is your main use case the generation of a database schema or the actual movement of database data to/from XML?
    Using a combination of TopLink's object-relational and object-XML support to move data between XML and a relational database is a valid pattern. Refer to the discussion thread below for some approaches at setting up the metadata.
    TopLink-JAXB : Creating and Mapping tables from Toplink-JAXB POJOs.
    -Blaise

  • Create new user from EM

    Hi,
    I need to create a user who can only access to OEM and run a job: the job execute a stored procedure that reads and writes to the oracle tables.
    The user must have the least set of privileges possible.
    How can I do? What privileges do I set?

    Sara C. wrote:
    I must create a user in OEM who can ONLY:
    1) access to EM
    2) to create and run a job, or to view and run a job created by user SYS. The job run a stored procedure
    the user can not:
    1) access the Oracle schema and view the contents of store procedures, such as packages and are defined.Also I didn't get the need of such user, AFAIK I don't think that's possible. From EM, the users who are created are considered as teh admins of the EM. Why you want to make such user? If a job is made by Sys, why not log in as Sys and monitor it as well ?
    Aman....

  • Error creating database users

    Hi,
    I have written a process in my application to create database uses. It's nothing complicated, all it does is
    BEGIN
    EXECUTE IMMEDIATE 'CREATE USER '||:P16_USERNAME||' IDENTIFIED BY '||:P16_PASSWORD;
    END;
    However, when I run this process I get an "ORA-01031: insufficient privileges" error. However, logging into SQL Plus as APEX_PUBLIC_USER (the user in my DADS.conf) I am able to create users with no problem.
    Can anyone please tell me what I'm doing wrong and what I can do to fix it?
    Thank you.
    David.
    PS: I am using Apex 3.1, in case that is relevant.

    You'll want to undo that grant right away.
    Thanks for that, Justin; I didn't know that before. However, the user in the parsing schema field also has permission to create users, so even that doesn't explain why I cannot create users in my application.It may have been granted to your application's parsing schema through a role. You need to grant it directly.
    Scott

  • Create AD users from SharePoint from

    What I want to do is to allow HR to create new users in AD and Exchange through SharePoint form, is there is anyway to do without using third party applications?

    No way to do this using just the Out of the box features.  It would require custom coding or a third party application.  Probably the easiest way would be to create a PowerShell Script and schedule it to run every night to create users whose
    information is added to a SharePoint List.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • How to create Database Users in Oracle enterprise?

    Help, I am new in using oracle database. All I need to do is to connect PHP to Oracle. But it keeps saying this Error
    *Warning: oci_connect() [function.oci-connect]: ORA-28000: the account is locked in*
    Really need some help.

    Welcome to the forum. Please next time remember that your friends are "search option", google, thaiti... and of course oracle documentation. All ORA-XXXX are documented so please next time, search for them.
    run:
    select account_status, username from dba_users;
    If the status is locked:
    alter user XXXXXX account unlock;
    If also is expired:
    ALTER USER xxxxx IDENTIFIED BY password;
    HTH
    Edited by: Fran on 30-may-2012 2:16

Maybe you are looking for

  • Exporting ITunes to Final Cut Express

    I recently purchased a song in ITunes 6 to use in a home movie I am creating in Final Cut Express 2.0.3 When I imported the file, Final cut would not read it. The file was blank. I open it up in IMovie and it plays fine. So I saved it as a clip and o

  • How to update an app purchased with a different account?

    Im trying to update iPhoto & iMovie which came with my macbook pro, but everytime I try it says "Sign in to iliketrenchcoats@****.com.au to update applications for that account." But the problem is I CANT! That account doesn't exist. My apple ID is i

  • Freehand 10 and tiles ?

    Hello, I've been experiencing lot of trouble when I try to print my document 1120 mm x 810 mm to a TANTO 90 negative printer (Japanese model), the printer doesn't accept the TILES that fill some of my objects, If I want to do tiles manualy it will co

  • Catalog SC error

    Experts, We are on SRM7/ECC6 (Ext classic) When we are creating a shopping cart from one of the vendor catalogs, we are getting following errors 1. Error occured calling META_BAPI_DISPATCH (I don't get this error while shopping otherwise, but only wh

  • RFFOAVIS_FPAYM can not gererate email request

    Hi Dear. this program is working fine in sanbox system,email reuqest can be generated once F110 done but in testing system,this program can not treigger email request.any idea?