Persistancy of user account & its permission in TempDB

Hi,
I have observed an interesting issue in sql server 2012 (my version is 11.0.5532)
1. Create a sql server login, let's call it [Test]
2.Create a user (let's call it TestUser) in TEMPDB with the following script
USE [tempdb]
GO
CREATE USER [TestUser] FOR LOGIN [Test] WITH DEFAULT_SCHEMA=[dbo]
ALTER ROLE [db_datareader] ADD MEMBER [TestUser]
ALTER ROLE [db_datawriter] ADD MEMBER [TestUser]
GO
Now reboot the server, and since TempDB will be recreated during sql service restarts, I expect the newly created TestUser in tempdb to be disappeared. But it does not, it is still there.
Now, let's create another user, this user will matching an existing Windows Login account in the sql server, 
USE [tempdb]
GO
CREATE USER [TestUser2] FOR LOGIN [MyDomain\XXX] WITH DEFAULT_SCHEMA=[dbo]
ALTER ROLE [db_datareader] ADD MEMBER [TestUser2]
ALTER ROLE [db_datawriter] ADD MEMBER [TestUser2]
GO
and reboot the server again, this time, in TempDB, TestUser2 disappears (as expected) while the original TestUser still persists.
In summary, in TempDB, if I create a user with a regualr sql login and also create another user with a windows login, after sql server restarts, the user with the sql login will still exist in tempdb while the one with the windows login will disappear.
Does anyone know why this is the case?
Thanks,
Jeff_yao

Now reboot the server, and since TempDB will be recreated during sql service restarts, I expect the newly created TestUser in tempdb to be disappeared. But it does not, it is still there.
I was not able to repeat this. My build is 11.0.5058.
Erland Sommarskog, SQL Server MVP, [email protected]

Similar Messages

  • Set up user accounts from another Mac in Sharing and Permissions?

    Hello!
    I'm using GoodSync (app) to synchonize several folders between my MacBook Pro Retina and my iMac daily, via a scheduled task. GoodSync is installed on the MBP and the folders that I'm syncing between the two are connected via network shared. (See screen shot --- this is from the MBP)
    This method works, however in order to get everything to share properly, I had to set read and write permissions for all the groups (my username on the iMac, and the "everyone group") under Sharing and Permissions for every folder and it's contents. I'm concerned that "everyone" has the possbility to get into/ruin my files and folders. (see screen shot -- this is from the iMac)
    Is there anyway I could assign my MBP's user account to come up under Sharing and Permissions in the Get Info window (on the iMac) for all the folders I'm syncing between the computer, that way I could give just the MBP or just the MBP's user account the permission to "Read and Write" (on the iMac)? 
    Could anyone please tell me how or give me a more secure way of doing this? Really liking GoodSync over my local network because my data doesn't get copied to a cloud.
    Thanks for looking/contributing advice!
    Julie.

    You can create a sharing-only account in the users and groups system preferences, and use this as a means for establishing permissions and access to shared folders so syncing programs can access them. This account can be managed in the file sharing preferences just like any standard account, only that it does not have a local home folder and cannot be used to log into the system at the login window.

  • IMac User account corrupted

    hi im a pretty new mac user been using for maybe 3 months now and so far not so good
    I think i have now come to terms that my main user accout is so corrupted its becoming really irritating trying to use
    Things like
    Im creating a new website and when i view it in safari (on main user account) its like the CSS sheet is all wrong, yet on every other computer and on my other account its totally fine
    Things I've downloaded in safari keep randomly deleting themselves from the list (although it deletes back to a certain date, this could be the date it became corrupt)
    Textedit no longer opens (but opens fine on other account)
    Preview no longer opens (but opens fine on other account)
    I called Apple a while back and someone told me to re-install Lion which i did, but it never worked i then awaited a phone call back which i never got that was about 4 weeks ago i tried to let it go but more and more faults keep appearing .
    Am i out of luck and will have to stop using that account or is their anyway to "restore" it without loosing all my files. I suppose if the worst came to the worst i could just kee it for my files and use a new user account, or would that eventually become corrupt too ?
    Thanks in advance for any help recived

    Since you're a newcomer to the Mac,
    see these:
    Switching from Windows to Mac OS X,
    Basic Tutorials on using a Mac,
    Mac 101: Mac Essentials,
    Mac OS X keyboard shortcuts,
    Anatomy of a Mac,
    MacTips,
    Switching to Mac Superguide, and
    Switching to the Mac: The Missing Manual,
    Snow Leopard Edition.&
    Additionally, *Texas Mac Man* recommends:
    Quick Assist,
    Welcome to the Switch To A Mac Guides,
    Take Control E-books, and
    A guide for switching to a Mac.

  • I have had a new hard drive installed. On start up I transferred all my settings and documents from my time capsule. Once complete I have two user accounts. Mine and guest. I cannot access either. Mine says password incorrect even though its not.

    I have had a new hard drive installed. On start up I transferred all my settings and documents from my time capsule. Once complete I have two user accounts. Mine and guest. I cannot access either. Mine says password incorrect even though its not. Any idea what is wrong here and how I can reset my password. I don't have a start up disc. Thanks very much

    From System Preferences/Help:
    Reset your login password using your Apple ID
    Before you can use your Apple ID to reset your login password, make sure that FileVault isn’t enabled on your computer.
    Also make sure that an Apple ID is associated with your user account, and that an administrator has given you permission to reset your own password using an Apple ID. For more information, see this help topic:
    Associate Apple IDs with your user account
    Make sure your computer is connected to the Internet.
    In the login window, click the question mark in the password field, and then click the arrow in the dialog that appears.
    Enter an Apple ID and password, and then click Reset Password.
    I don't know if it works.

  • Multiple users under my name, can I transfer files/data onto just one user account if I have an external H.D.  when I tried to delete info off one of the accounts it said I did not have permission? I assume I was in an account that was not admin.

    I noticed I have set up 4 Admin user accounts under my own name with diff. variations as seen in the attchment.  Some have a diff. password to log on to which I am able to do.  This computer is used for my business and I need info that is scattered on the other 3 accounts to be in/on ONE admin account. 
      I don't know how i ended up with multiple accounts.  Maybe due to having two 24" iMacs and multiple iPhones & iPad2 for me and family.   
    I use this computer for business and personal. 
    Due to multiple Admin user accounts I have important info scattered on the other accounts resulting in some accounts have some of the info to others having much more  but not ALL.   Some accounts have from a couple hundred songs, podcasts, etc. etc.  to a few 1,000 on another Admin account.   
    I want to consolidate ALL of my info, files. songs, podcasts, pictures & email etc. into one Admin account and delete the other accounts to reduce confusion. 
    I was told by my local Apple authorized service shop that it is not easy but moving most of the info is possible.  Their caveat was email would probably not be able to be moved other than forwarding each email I wanted out of each account and opening in the account I wanted to consolidate into. 
    As a side note,  I get an error message at times saying that I do not permission/authority to delete / move files?  What might be the issue when I encounter this type message?
    Thanks for any help.
    Bob

    Have a read here Transferring files from one User Account to another
    Stefan

  • Can i use a 2nd iphone if i install itunes on another user account.when i tried to create a second library i messed up both phones, the second one now has all my contacts and when it sends txts it either says its my other phone or email address

    can i use a 2nd iphone if i install itunes on another user account.when i tried to create a second library i messed up both phones, the second one now has all my contacts and when it sends txts it either says its my other phone or email address. i can cope with the first phone and getting it back on itunes but dont want to syn the 2nd phone until i know it is independant of the other one. Does it matter that both phones use the same itunes store account?

    Deleting the account on your phone only removes if from your phone.  The account and it's data remain intact and doing so will not effect your daughter's phone.
    To do this, first go to Settings>iCloud on your phone and turn any synced data (contacts, calendars, etc.) to Off, and when prompted, choose to keep the data on the phone.  When finished, scroll to the bottom and tap Delete Account.  Then set up a new iCloud account with a different Apple ID and turn any data you want to sync with iCloud (contact, calendars, etc.) back to On.  This will upload your data to your new iCloud account.

  • Safari (7.0.1) is non-responsive (spinning pinwheel) upon start up.  It will work in temp user account but not in my main user acct.  I tried reinstall via comman-r prompt on start up but the problem persists.  Any suggestion for reinstall or repair?

    Safari is non-responsive after intitial start up.  Before it can load the homepage (google), it will hang and give a perpetual pinwheel until I force quit the program.  Safari works in temporary user account but not in my primary user account.  I have reinstalled osx via the command-r upon start up and the problem still persists.  Any suggestions on how to reinstall or repair safari?

    Thanks for thinking about my problem. I've already experimented with creating a new user, a co-administrator. The programs don't crash when that account is running, just as they don't crash when the guest-user's account runs. So it seems that the problem is limited to the default user's account, which is the one that was running when I installed the updates to the OS and the firmware. Another clue is that the programs that crash as soon as they are launched are *probably* the ones that were open at that time in that account. Yet deleting Saved Application States does not keep the programs from crashing when next launched.
    So the mystery continues, but these additional facts will help with the diagnosis, I hope.
    Thanks again for your suggestion.
    Gordon

  • How do i set the proxy user in FF 3.6.13, this entry was existing earlier its gone now. using IE with entries in user account pwds works while FF doesn't.

    How do i set the proxy user in FF 3.6.13.
    previous versions had an entry for proxy user.
    its gone now.
    using IE with entries in user account pwds works while FF doesn't.
    too bad have to change back to IE :-(

    You can find the connection settings in Tools > Options > Advanced : Network : Connection
    See "Firefox connection settings":
    *[[Firefox cannot load websites but other programs can]]

  • Search account got - Insufficient sql database permissions for user. EXECUTE permission was denied on the object proc_Gettimerrunningjobs

    Dear all,
    I am troubleshooting a critical error showed up on Event log.  It said:
    Insufficient sql database permissions for user 'Name:domain\wss_search ....... EXECUTE permission was denied on the object 'proc_GetTimerRunningJobs', database 'SharePoint_Config', schema 'dbo'
    domain\wss_search is the default content access account. According to
    http://technet.microsoft.com/en-us/library/cc678863.aspx I should not grant it the Farm Administrators permission.
    In the Search Center I am able to search out documents as expected so I think the search service is fine.   However I have no clue why this account is trying to access 'proc_GetTimerRunningJobs'.
    Mark

    Hi Mark,
    This issue was caused by the search account’s permission. For resolving your issue, please do as the followings:
    Expand your SharePoint Configuration database 'SharePoint_Config' and navigate to ‘proc_GetTimerRunningJobs’ under Programmability ->Stored Procedures
    Right-click proc_GetTimerRunningJobs and choose Properties
    Click on Permission on the left launch
    Select the Search button and browse for ‘WSS_Content_Application_Pools’
    Provide ‘Execute’ permissions for ‘WSS_Content_Application_Pools’
    Click OK
    Here are some similar posts for you to take a look at:
    http://adammcewen.wordpress.com/2013/03/01/execute-permission-denied-on-sharepoint-config-db/
    http://technet.microsoft.com/en-us/library/ee513067(v=office.14).aspx
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • VMM Shared ISO error "User account does not have permission required to open attachment"

    I had this error once because the local service account was selected during installation of VMM.  I have reinstalled VMM with a Domain service account and the error went away.  However, the error is back. 
    "User account does not have permission required to open attachment '\\[servername]\VMMLibrary\server.ISO'. Error: 'General access denied error' (0x80070005). (Virtual machine ID GUID)"
    I tried to create this VM on Host1 and got the error. 
    I then went to Host2 and was able to create the VM while using the same ISO on the same VMM library that failed on the Host1. 
    Both hosts have agent 3.2.7634.0 and are both running Hyper-V Server 2012 R2.
    What is wrong with Host1 and how do I correct it?
    Thank you.

    This is a share configuration permissions issue.
    http://technet.microsoft.com/en-us/library/ee340124.aspx
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.

  • Need help getting multiple user accounts access an app and its data

    Hello All,
    We recently got a new iMAC. We set up 3 user accounts in it. Two are admin accounts (one for me and one for my husband). The third is a user account with parental controls turned on (for our kid). Here is the basic setup:
    1. Accnt1 - admin
    2. Accnt2 - admin
    3. Accnt3 - user
    Now, I installed the complete national geographic application on the iMAC along with all the data. This is a 6 CD set that took several hours to install. I installed it logged in with Accnt1 (please see above). This installed all the data (150 years worth of data) onto the Documents folder for Accnt1.
    The installation was successful and when I launch the application, I can view all the data from Accnt1.
    So what is the problem? I tried logging in from Accnt2 and Accnt3. While the applciation is visible and will launch from both those user profiles, no data gets displayed. My guess is that this is because the data from the 6 CD's got installed onto the Documents folder for Accnt1 which is not viewable/accessible from Accnt2 and Accnt3. Therefore, nothing gets displayed.
    How do I fix this issue without reinstalling the software so that ALL 3 user accounts on my iMac can access the application AND its data?
    My guess is that I will have to provide user permissions/access to the Documents folder for Accnt1 such that both Accnt2 and Accnt3 are read/write. I tried to do that via the Finder and 'More info' operation wherein I click on the tiny lock icon at the bottom of the screen and add Accnt2 and Accnt3 as read/write. But this does not fix the problem for ALL folders further down and I dont want to fix each and every folder.
    Is there a quick way to resolve this problem? Can I fix this issue via a terminal window with a command?
    Please do help me out.
    Thanks in advance
    Anonymous76

    Move the data folder out of A's documents folder and into /Users/Shared. Then, control-option-command-drag the data folder from its new location back to its original location in A's documents folder. This makes an alias. Log in to the other user accounts and repeat the process for making aliases, to each user's Documents folder.
    You might also contact the developer and politely suggest that they learn how to write programs properly for Mac OS X.

  • Can I share apps with another user account on our mac even though its a different apple ID?

    Husband and I have just bought a new Mac to share, but we've both got iphones and itunes of our own.  I thought the best way to deal with this would be to have a user account each on the new Mac with our own iTunes, but this obviously means that each user account has a different apple ID associated with it.  I've just bought Pages, Numbers and Keynote on my user account, is it going to be possible to share these apps with my husbands user account.
    I've got a harrible feeling that I should have created a joint user account and apple ID, and I've just wasted the best part of £40...please tell me theres a way to fix this!!
    Thanks

    Welcome to the Apple Support Communities
    You can, but you will have to update the applications from the user account with the Apple ID you used to purchase those apps. There isn't any other problem, but it may be illegal (but I think it's legal if you run them on the same Mac)

  • One of the user accounts on my computer cannot access the start up disk or its user folder.

    I have two user accounts on my computer, both with administrator permissions.  One account appears to function normally; however, when I log in to the other account, the System Disk does not appear on my desktop, and does not appear in Finder either. When I ran the disk utility as the user with the problem account, I was instructed to repair the Disk by restarting in recovery mode.  Running the Disk Utility in recovery mode was unsuccesful.  I received a message saying the disk could not be repaired, and that I should back up what I could, then reformat.  I exited the utility and restarted my computer logging in under  the user that does not appear to have a problem.  I ran disk utility as this user; however, this time the utility reports that everything seems to be okay.  I log back in with the problem account and the problem stil exists.  I cannot see the system disk.

    Thanks for your help.  I didn't see your tip until after I had decided to delete the user account then recreate it.  When I recreated the account, I thought I was still in trouble, because the disk did not appear on my desktop or in finder.  Then I saw your tip to check the preferences.  I changed the preferences and now I am able to see the disk in finder and on the desktop. Your tip to check Finder preferencese was something I did not know about.  I am not sure how they were changed. I don't remember ever changing them.  I guess thinking about it more, the default option may be to have the disk hidden from the desktop and finder, In the which case I was simply remembering wrong. 
    The only thing that puzzles me still is why when I ran Disk Utility on the one account, it indicated that the disk needed to be repaired, but that it was unable to repair the disk,  though, when I ran Disk Utility on the other account, it said everything was okay. After deleting and recreating the account, Disk Utility no longer indicates any problems.  It looks like there was something wrong, just don't know exactly what.  At anyrate, it is all fixed, and I now know about the finder and desktop view options.  Glad it wasn't something more serious. Thanks for your help.

  • I can,t open F Fox window w/o user account window asking permission.

    When I click my Ffox shortcut icon a window pops up from User Account Control asking" Do you want to allow the following program to make changes to this computer??" Then I get a yes/no choice. didn't used to do this step and I would like to eliminate it. Any ideas??/

    I forgot there is another place to look in the shortcut properties. Please see cor-el's solution here: [https://support.mozilla.org/en-US/questions/696275 Firefox will not open without User Account Control asking if I will allow it to make changes on my computer.] Does that work?

  • Upon start-up of Firefox, user account control is asking for permission to modify the hard drive on my computer before launching the program...this is a new developemenent in the last few days. In the past Firefox would launch without asking this.

    user account controls dialog box comes up before Firefox.
    "Do you want to allow the following program to make changes to this computer?"
    Yes launches Firefox, No closes the dialog box.

    Check that you do not run Firefox as Administrator.<br />
    Right-click the Firefox desktop shortcut and choose "Properties".<br />
    Make sure that all items are deselected in the "Compatibility" tab of the Properties window.<br />
    * Privilege Level: "Run this program as Administrator" should not be selected<br />
    * "Run this program in compatibility mode for:" should not be selected<br />
    Also check the Properties of the firefox.exe program in the Firefox program directory.<br />

Maybe you are looking for

  • Blank Values in XML Publisher

    Hi all, I'm generating a report in xml publisher 5.6.2, i have 4 datamodels inside the report and i'm using the Concatenated SQL Data Source option, then i generate the xml file to add it to the rtf template, the problem is that when i preview the re

  • 2.1 RC1 - Pure performance when Preferences.Worksheet."script path" is used

    When I fill out the "Select default path to look for scripts" text box on the Worksheet page in Preferences, I expirience very bad performance when I type in sql statements. If I clear the text box agian, I have normal performance.

  • Need help setting up open source Strobe Player

    Iam following the instructions to set up the Stobe player,  downloaded the Stobe player 1.5.1, and 1.6.127.  I unzipped the files, next step says to copy the files to root directory of server and point to the test file.  There is no test file in the

  • Save function problem: HELP

    I installed the latest update for LR. Now when I save to the hard drive I get this window:        Unable to Export:         An internal error has occurred: Win32 API error 2         ("The system cannot find the file specified.") when         calling

  • Invisible Mode

    When I log on using Invisible mode, one of my contacts almost immediately comes online and sends me an IM. Am I invisible or not?