"The CREATE USER statement must be the only statement in the batch" in SQL Azure - why? what to do?

I'm getting an error on a line in the middle of a larger sql script, only in SQL Azure.
IF NOT EXISTS (SELECT * FROM sys.database_principals WHERE name = N'foouser')
CREATE USER [foouser] FOR LOGIN [foouser] WITH DEFAULT_SCHEMA=[dbo]
GO
Error: "The CREATE USER statement must be the only statement in the batch."
I don't actually understand what 'the only statement in the batch' means.
What is a batch? Is it a SQL file? Is it related to a 'GO' statement or an 'IF' statement? What is the reason for the error? And how do I avoid it?
Thanks,
Tim

>IF...ELSE imposes conditions on the execution of a Transact-SQL statement
I understand the general purpose of an If statement. I could let go of our definition of statement counting disagreeing too except that because of the error I'm stuck.
It's less important for Create User but what I am really puzzled over now is a very similar issue how am I supposed to do a safe version of CREATE LOGIN, when I don't know whether a login has been previously created on the server or whether I
am setting up the database on a clean server?
IF NOT EXISTS (SELECT * FROM sys.server_principals WHERE name = N'foouser')
CREATE LOGIN [foouser] WITH PASSWORD = 'asdfasdf'
GO
If I try and execute this script, it throws the same error as above.
The first unworkable workaround idea is to omit the if statement
CREATE LOGIN [foouser] WITH PASSWORD = 'asdfasdf'
GO
But if the login already exists on the server (because a similar script was already run), then the script throws an error.
The second unworkable workaround idea is to do
DROP LOGIN [foouser]
GO
CREATE LOGIN [foouser] WITH PASSWORD = 'asdfasdf'
GO
Obviously this throws an error in the second block if the login doesn't already exist on the server.
The third workaround idea I have is to go conditional by putting an IF condition around DROP instead of CREATE:
Unfortunately that doesn't work for me either!
"The DROP LOGIN statement must be the only statement in the batch"
(This is despite the fact that 'drop login' is listed on the
supported commands page, not the partially supported page..?! Which disagrees with the notes on
this page.)
Anyway the real question I am interesting in addressing is: is there actually a way to have a 'Create/Delete login
if exists' operation which is SQL-Azure compatible and doesn't throw me error messages (which messes with the sql execution tool I am using)?
If there is no way, I would like to believe it's because it would be a bad idea to do this. But in that case why is it a bad idea?
Tim

Similar Messages

  • Lotus Notes Connector: Resource is provisioned but the Create User task...

    Hi,
    I am getting some problems with the Lotus Notes Connector. The resource is provisioned but the Create User task is rejected. In the Lotus Notes server log, there is no problem and the account was created successfully.
    Below is the response OIM has set to the task:
    Respuesta: ERROR_UNID_SET
    Descripción de Respuesta: User created successfully. Error while updating user unique attribute in the process form.
    Notas:
    As you can see below, there was no error when the adapter was executed:
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvisionsetPropertyEntered method
    INFO [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::loadAttributeMapping: START
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision: :loadAttributeMapping : Attribute Mapping file : C:\oracle\oim9101\xellerate/XLIntegrations/LotusNotes/config/attributemapping_prov.properties
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvisiongetParsedPropertiesEntered method
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvisiongetParsedProperties---- END
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : CreateMailDb true
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : ShortName
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : SecurityType 1
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : MailSystem 0
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : Storeaddbook true
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : SynchInternetPwd true
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : InternetAddress
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : CertifierIDFile C:\Lotus\Domino\Data\cert.id
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : Registrationlog
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : MailOwnerAccess 0
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : MinPwdlen 8
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : Addbook true
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : RegistrationServer win2k3base/oimdev
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : OrgUnit during create -- oimdev
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : OrgUnit oimdev
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : MailQuotaWarning 40
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : Received null values for ExpirationDate:
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::getDefaultDate : Setting Default date
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : IdType 173
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : MailTemplateName
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : MailQuotaLimit 50
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : LastName : Gerente
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : IdFilePath : C:\Lotus\Domino\id
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : MailServer : win2k3base/oimdev
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : FirstName : Teste
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : Comment :
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : MiddleName :
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : Location :
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : MailDBPath : mail\
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : ForwardDomain : oimdev
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvisioncheckUserExistsEntered method
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::getUserName: Org Unit: oimdev
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::getUserName: Final UserName --- CN=Teste Gerente/OU=oimdev/oimdev
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvisioncheckUserExistsExiting method
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::getUserName: Org Unit: oimdev
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::getUserName: Final UserName --- CN=Teste Gerente/OU=oimdev/oimdev
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : User Name: CN=Teste Gerente/OU=oimdev/oimdev
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : Full Name: CN=Teste Gerente/O=oimdev
    INFO [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::createUser : User Created Successfully
    INFO [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::triggerAdminP : Invoking trigger AdminP
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::triggerAdminP : MailServer : win2k3base/oimdev
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::loadAdminpProperties : AdminP properties file : C:\oracle\oim9101\xellerate/XLIntegrations/LotusNotes/config/adminP.properties
    DEBUG [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' ADAPTER.LOTUSNOTES - LotusNotesProvision::triggerAdminP : AdminPCommand : tell adminp process all
    I've retried the Create User task and got the Lotus Console messages below. There is no error:
    10/20/2009 02:02:56 AM Admin Process: Checking for all requests to perform
    10/20/2009 02:03:30 AM DIIOP Server: 192.168.200.6 connected
    10/20/2009 02:03:36 AM Opened session for win2k3base/oimdev (Release 6.5.6)
    10/20/2009 02:03:36 AM Closed session for win2k3base/oimdev Databases accessed: 2 Documents read: 0 Documents written: 0
    10/20/2009 02:03:37 AM Certifying Teste Gerente/oimdev
    10/20/2009 02:03:48 AM Opened session for win2k3base/oimdev (Release 6.5.6)
    tell adminp process all >C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\rem22706.con
    10/20/2009 02:03:49 AM Admin Process: Checking for all requests to perform
    10/20/2009 02:03:49 AM Remote console command issued by win2k3base/oimdev: tell adminp process all
    10/20/2009 02:03:49 AM Closed session for win2k3base/oimdev Databases accessed: 0 Documents read: 0 Documents written: 0
    10/20/2009 02:03:49 AM DIIOP Server: 192.168.200.6 disconnected
    Any suggestion?
    Edited by: Renato.Guimaraes on 19/10/2009 21:04

    Sunny,
    I figured out the problem... Wrong configurations. See what I did:
    a) Reviewed the explanation below about the paramater certifierOU of Lotus Notes ITRes, so I set it to empty.
    certifierOU Specifies the OU of the certifier to be used when creating user accounts If you use a certifier on the target system, then you must specify the certifier OU value. If
    you do not have a certifier on the target system, then leave this parameter field empty.
    If there are multiple certifiers on the target system, then you must create one IT resource (of the Lotus Notes IT resource type) for each certifier. Refer to Oracle Identity Manager
    Design Console Guide for information about creating IT resources. If you specify a value for the certifierOU parameter, then the user OU value that you specify on the process form is ignored during the creation of a DN for a new user account.
    If you do not specify a value for the certifierOU parameter, then the user OU value that you specify on the process form is used in the DN. This feature ensures that only one OU value
    is included in the DN.
    If you specify a value for the certifierOU IT resource parameter, then user records for which the certifier OU value in the DN does not match the certifierOU parameter value are not
    reconciled. This is because the user DN is used to match records in the target system and Oracle Identity Manager, and a difference in the certifier OU value would lead to a
    mismatch in DN values. The following example illustrates this type of scenario:
    Suppose a user account on Lotus Notes has the following DN:
    CN=John Doe/OU=testcertou/O=test/C=US
    If testcertou has not been assigned as the value of the certifierOU parameter for any of the IT resources created on this Oracle Identity Manager installation, then the records of this
    user cannot be reconciled into Oracle Identity Manager.
    Sample value: NY
    b) The MailServer paramater was win2k3base/oimdev and I've changed it to CN=win2k3base/O=oimdev.
    c) As the certifierOU is clear now, so I have to inform the Orgnation Unit field in the process form.
    Thanks.
    Edited by: Renato.Guimaraes on 24/10/2009 23:19
    Edited by: Renato.Guimaraes on 24/10/2009 23:27

  • Time Machine on my iMac won't open iPhoto. It goes to desktop screen automatically. When I select User/Picture/Iphoto library it only brings up the preview page with the size of the folder. I can't get into the library to look for lost photos.

    Time Machine on my iMac won't open iPhoto. It goes to desktop screen automatically. When I select User/Picture/Iphoto library it only brings up the preview page with the size of the folder. I can't get into the library to look for lost photos.

    Thank You. This helps me alot to get into the masters and to see events and photos in a utilitarian way, but it is not as easy as viewing the normal iphoto format to find photos.  Can I do something else or did I not do something right to not see normal iphoto in Time Machine ?

  • How to create a duplicate of the Manager ID field in the Create user menu

    Hi,
    I´m trying to create a duplicate of the Manager ID field in the Create user menu (with a different label). I need to add it a field with the same funtionality of the Manager ID field (search users with filters) but I don´t know how.
    I try to made a new adapter using the Thor.API.Operations.tcUserOperationsIntf but it don´t let me to map the input parameters.
    Also I try to assing an existent Lookup to a new UDF, but I couldn´t find the correct one.
    Did anybody do that??
    Thanks!

    Hi Kevin,
    First I created a a user defined field called USR_UDF_CONDUCTOR (Lookupfield type).
    Then I added the following lines to de FormMetaData.xml file:
    </Attribute name="-750" label="global.label.conductor" displayComponentType="LookupField" variantType="long" dataLength="50" map="USR_UDF_CONDUCTOR">
    <ValidValues lookupMethod="findUsersFiltered" operationClass="Thor.API.Operations.tcUserOperationsIntf" displayColumns="Users.User ID,Users.Last Name,Users.First Name" selectionColumn="Users.User ID"/>
    </Attribute>
    <AttributeReference editable="true" optional="true">-750</AttributeReference>
    When I try yo Create a new user, the OIM System Administrator returns a System Error.

  • Hi, I tried to create a slideshow that contain more than 500 photos. Now, trying to open / execute / select the slideshow, iPhoto hangs with the spinning coloured wheel and I have only to force the deletion from System Preference. Any suggestion?

    Hi, I tried to create a slideshow that contain more than 500 photos. Now, trying to open / execute / select the slideshow, iPhoto hangs with the spinning coloured wheel and I have only to force the deletion from System Preference. I already tried to rebuild the iPhoto Library (all the possible options) and tried to update teh version from 9.4.3 to 9.5 but the problem still persists: is there a way to delete this slideshow without selecting it ? How can I solve the problem, please?
    Kind Regards

    Can you restore your iPhoto Library from a backup version, that was created before you added the slideshow?
    If not, have you tried to rebuild the slideshow with iPhoto Library Manager?
    As described by Terence Devlin here:  Re: iphoto library was created with an unrelased version of iphoto please quit and ugrade library by opening it in iphoto 2 or iphoto 4

  • How do I add a recurring event to repeat on the fifth recurring day of the month, for example, an event that only happen on the fifth Sunday of the month for those months that have a fifth Sunday?

    How do I add a recurring event to repeat on the fifth recurring day of the month, for example, an event that only happen on the fifth Sunday of the month for those months that have a fifth Sunday?

    Create one on the first Tuesday, select repeat/monthly and take the option at the bottom.

  • Hello everyone...I got my very first macbook pro just today and i have a problem deleting the "test" user account. if i can't delete it, the system won't let me turn off the system. I don't know what to do! HELP!!!!

    hello everyone...I got my very first macbook pro just today and i have a problem deleting the "test" user account. if i can't delete it, the system won't let me turn off the system. I don't know what to do! HELP!!!!

    Have you created another admin user? Go to system preferences click users and click the + to add a user; if you haven't already. Once you have another admin user other then the "test" user make sure you're signed out of the test user account. Sign in with the alternate ADMIN USER that you just created or had created already and go back to SYSTEM PREFERENCES and click the same USERS icon near the bottom. Now select the TEST user and click the - sign. This should prompt you if your sure you want to delete the user account. And your done.
    New User created and Test User deleted... I hope this helps.

  • I have a document that I wrote today on my phone, went to open it again and the app kept crashing or it would only open half the file. Is anyone else having this issue? On the preview it shoes the whole file, but when I open it only shows a few paragraphs

    I have a document that I wrote today on my phone, went to open it again and the app kept crashing or it would only open half the file. Is anyone else having this issue? On the preview it shoes the whole file, but when I open it only shows a few paragraphs. When I email the file it only shows a few paragraphs, but when I go to open it both on my ipad and iphone it crashes the app.
    Everything is up to date.

    I also have Jolly's problem. I found the iMovie 9.0.9 folder and tried to launch the older version of iMove. It would not launch. I removed all of the iMovie preferences from the Preferences folder, removed iMove 10 from the applications folder, and restarted my Mac. iMove 9.0.9 still won't launch and I can't access my videos created with the older version of iMovie. Is there a way to uninstall iMovie 10 and reinstall iMovie 9.0.9?
    I am running Yosemitie on a  iMac.
    Paul

  • HT5621 i buy a second hand IPAD and after restoring is shows the previous user apple ID and even i dont know the person that have the ID and now i want to use with my apple ID

    i buy a second hand IPAD and after restoring is shows the previous user apple ID and even i dont know the person that have the ID and now i want to use with my apple ID

    Without the previous owner's Apple ID and Password, you will not be able to activate the iPad.

  • Trying to open Aperture, but I get the message, "There was an error opening the database for the library "/Users/davewasson/Pictures/Aperture Library.aplibrary". - and it forces me to quit. What do I do?

    Trying to open Aperture, but I get the message, "There was an error opening the database for the library “/Users/davewasson/Pictures/Aperture Library.aplibrary”. - and it forces me to quit. What do I do?

    Dave-
    You can try opening the old (problem) library by launching Aperture into Library First Aid mode and choosing to Repair (first option) or Rebuild the library. Before doing this, make a backup copy of the old library, since both Repair or Rebuild will write changes to the library database.
    Repair is the faster and less drastic option, so try that first: After backing up your library, hold down both the Option and Command keys while dragging and dropping the problem library on the Aperture icon. The Photo Library First Aid window appears. Select Repair Database, then click Repair. After some time Aperture should open the library, if possible.
    If that fails launch Aperture back into Library First Aid and select Rebuild Database. Depending on the size of your library this operation could take some time, up to several hours for a very large library. When the main window appears you may have some extra Recovered folders/projects. This operation rebuilds the library from scratch and is usually successful at reviving problem libraries.

  • Why does say"To play the selected item, you must install a later version of the Adobe Flash Player. To download the Adobe Flash Player, go to the Adobe website." when I have the latest Version of it and it's just Black screen with no audio and Video?

    Why does say"To play the selected item, you must install a later version of the Adobe Flash Player. To download the Adobe Flash Player, go to the Adobe website." when I have the latest Version of it and it's just Black screen with no audio and Video? (Powerpoint Presentation 2013)

    You asked your question on the wrong forum. Try one for the Flash Player

  • This should go on a Waterfox forum, but can't find one. Waterfox updater is failing, can't find the latest version. The website says the latest version ( 9.0.1) is only available via the uploader. Catch-22

    This should go on a Waterfox forum, but can't find one. Waterfox updater is failing, can't find the latest version. The website says the latest version ( 9.0.1) is only available via the uploader. Catch-22

    http://waterfoxproj.sourceforge.net/news/26/15/Powered-by-Mozilla-Waterfox-9-0-1
    Waterfox has now been accepted as a project by Mozilla and has been placed on their website! '''Waterfox 9.0.1 has also been released, but at the moment is only available through the internal updating program available in Waterfox 9.0. This is to try and iron out any issues for the release of Waterfox.Next.'''
    It is not a official Mozilla product as it is still third-party. http://www.mozilla.org/projects/powered-by.html

  • Unable to save Word documents when accessing them directly from the site because the document never converts from a read-only even though the User chooses to enable editing

    Issue has only popped up recently and cannot reproduce in a Test environment.  Unaware of any SharePoint changes, so hoping someone can point me in the correct direction.
    Previously Word document did not have to be physically checked out, but rather the editing of the doc also checked out the doc in a document library. This is the way we want it to remain –
    no manual check-out process. Now if a doc is edited without being checked-out, there is an issue with the process as the application thinks the doc is read-only (message received when trying to save the doc) even if enable editing is selected. The
    following message appears when you try to save the document:
      This message can appear if you have been editing a file that was opened as read-only. A file opened as read-only will have (Read-Only) appended to the file name as it appears in the title bar of Word. You can still save the document, but you must
    save it by using a different file name. If you use Windows Explorer to change the read-only properties of the file, while the file is open in Word, it will not enable Word to save the file. Word must open a non-read-only version of the file in order to save
    it by using its original file name. If you have not made any changes to the file, you can close it, and then use the following steps to make the file writeable. 1. Click the File tab, and then click Open. 2. Browse to the file and right-click it. 3. Click
    Properties, and then clear the Read-Only check box. 4. Reopen the file. If you have made changes to a read-only file, you can save it, and then use the following steps to give the modified file the original file name. 1. Click the File tab, and then click
    Save As. 2. Enter a different file name, and then click Save. 3. NOTE: Adding "Rev1", or "Mod1" to the original file name may help you to remember it later. 4. Click the File tab, and then click Close. 5. Open Windows Explorer. 6. Browse
    to the original read-only file. 7. Rename the read-only file. 8. Browse to the new file. 9. Rename the new file to the name of the original file. Do not delete the read-only file until after you have determined you no longer need it.
    Previously, when check-out was optional, a file was checked out automatically when someone opened it for editing, unless it was already checked out. The editing commands notified the User that the file is being/was checked out.  The real issue is the
    word doc can no longer be saved as the application still believes the doc is read-only.

    Hi, 
    According to your description, you give the domain admin full control over files on the old file server, but you cannot move the files to the new file server. After pull the files from the old to the new file server, the domain admin can only read the files
    on the new file server.
    How did you move the files from the old file server to the new file server? Did you setup replication between the two file server or use robocopy? 
    Please check the files permissions on the new file server to see if the permissions are changed, then share the folder on the new file server to everyone to see the result.
    Regards, 
    Mandy
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • No "Admin Roles" or "Capabilities" on the Create User - Security tab

    I have created some Admin roles with full Capabilities for an Organisation (other than Top).
    However, when I login as "Configurator", and attempt to create a user under the "Accounts" tab, I cannot see any of the "Admin Roles" created under the "Security" tab. In fact, the "Admin Roles" or "Capabilities" list boxes somehow disappear altogether.
    Does anyone know what can cause the "Admin Roles" and "Capabililties" list boxes to disappear from this tab?

    Are you using IDM version 7.0 and above? If so, it is a security feature introduced by Sun.
    An administrator can assign an admin-role to a user only when he/she is designated to be the "assigner" of that role. Here's how you do it:
    Go to Security -> Admin Roles tab in the admin console, and click on the role to be assigned
    In the form that opens up, click "Add from Search" in the general tab and search/add the desired account.
    You would expect configurator to be a default assigner to any admin-role, but even this account needs to be configured to be the assigner for each admin-role.
    Hope this helps.
    -Adi
    [www.xpressutils.com|http://www.xpressutils.com]

  • HT3910 Hi, I'm trying to create a new account because I have bought an iMac second hand and the previous user doesn't remember his admin account password. Would someone advise me on what command prompts I need to write in order to create a new account. Th

    Hi,
    Just wondering how I can create a new account and password?
    I've bought a second hand iMac from a dealer who hasn't fully erased the previous owner's user name and password. Therefore , I can't update or install any new password or update to Mountain Lion...
    There is also no installation disc, so I don't seem to be able to reset the password that way.
    I've just gone into the dos text :/root and wondered what I can do to create a new account and password without having to reinstall Snow Leopard?
    Any help would be greatly appreciated.
    Thanks.
    Steve

    Follow the steps in this article. Be sure to enter the commands exactly as written, paying attention to case and spaces, or lack thereof.
    http://www.hackmac.org/tutorials/how-to-create-a-new-administrator-account/

Maybe you are looking for