Cannot edit database

Good day,
I created a database(query) like 2 weeks back on microsoft sql server 2012.Now I want to continue working, but I cannot edit it.
I can see the query which is saved under object explorer->Databases but I cannot seem to make it appear in the query edit.
I need to open it, so that I can create more tables and more stored procedures(code).When I double click it, it opens its children instead of opening in the query edit.
Thanks in advanced.

What do you mean by "created a database (query)"?
If you are the database owner or member of the database role db_owner you can create new objects (a very simplified picture).
Go down in the hierarchy to the tables or views or procedures and right click.
Than you can select "New [Table]..."; "New [View]..." , ...
Or open a new query window and create a new object by using T-SQL
e.g.
USE [NameOfYourDatabase];
GO
IF OBJECT_ID('dbo.foo', 'U') IS NOT NULL
DROP TABLE dbo.foo;
GO
CREATE TABLE dbo.foo
ID int NOT NULL IDENTITY (1, 1),
c1 char(20) NOT NULL,
GO
It seems to be that you are an absolute beginner. You shoud best start here:
Use of SQL Server Management Studio
MCM - SQL Server 2008
MCSE - SQL Server 2012
db Berater GmbH
SQL Server Blog (german only)

Similar Messages

  • I had to erase my hard drive and then reinstall everything back from my passport external hard drive. Now my iPhoto edit is not working. I get a blank screen when I want to edit. The photos show up in the library but I cannot edit them. Help?

    I had to erase my hard drive and then reinstall everything back from my passport external hard drive. Now my iPhoto edit is not working. I get a blank screen when I want to edit. The photos show up in the library but I cannot edit them. Help?

    There are several possible causes for the Black Screen issue
    *1. Permissions in the Library* : Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Include the option to check and repair permissions.
    *2. Minor Database corruption*: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild.
    *3. A Damaged Photo*: Select one of the affected photos in the iPhoto Window and right click on it. From the resulting menu select 'Show File (or 'Show Original File' if that's available). Will the file open in Preview? If not then the file is damaged. Time to restore from your back up.
    *4. A corrupted iPhoto Cache*: Trash the com.apple.iPhoto folder from HD/Users/Your Name/Library/ Caches...
    *5. A corrupted preference file*: Trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder. (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    If none of these help:
    As a Test:
    Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?
    Regards
    TD

  • Deployment of objects in OWB10g with Personal Edition Database

    When trying to deploy objects in a Personal Oracle 10g database with OWB10g, the following error occurs:
    RPE-01011: Cannot deploy to target database location because it does not have a compatible version.
    Deployment on the same database but on Enterprise Edition works fine.
    Oracle does not support OWB on Personal Edition, but I found a workaround to use OWB on a Personal Edition database. The problem is that the Deployment Manager checks for the version number from PRODUCT_COMPONENT_VERSION where PRODUCT like 'Oracle%'. It returns the version number, but with this query no rows are returned in Personal Edition because the product name does not begin with 'Oracle' (Personal Oracle Database 10g).
    I found a workaround in redefining the definition of the view SYS.PRODUCT_COMPONENT_VERSION so that it returns 'Oracle Database 10g Personal Edition' for the database component. The deployment manager will then find the correct number, and you can deploy just as you would with Enterprise Edition.
    Statement used to redefine the view:
    create or replace view sys.product_component_version as
    (select
    substr(banner,1, instr(banner,'Version')-1) product,
    substr(banner, instr(banner,'Version')+8,
    instr(banner,' - ')-(instr(banner,'Version')+8)) version,
    substr(banner,instr(banner,' - ')+3) status
    from v$version
    where instr(banner,'Version') > 0
    and
    ((instr(banner,'Version') < instr(banner,'Release')) or
    instr(banner,'Release') = 0))
    union
    (select
    substr(banner,1, instr(banner,'Release')-1),
    substr(banner, instr(banner,'Release')+8,
    instr(banner,' - ')-(instr(banner,'Release')+8)),
    substr(banner,instr(banner,' - ')+3)
    from v$version
    where instr(banner,'Release') > 0
    and
    instr(banner,'Release') < instr(banner,' - ')
    AND BANNER NOT LIKE '%Database%')
    union
    (select
    'Oracle Database 10g Personal Edition',
    substr(banner, instr(banner,'Release')+8,
    instr(banner,' - ')-(instr(banner,'Release')+8)),
    substr(banner,instr(banner,' - ')+3)
    from v$version
    where instr(banner,'Release') > 0
    and
    instr(banner,'Release') < instr(banner,' - '))
    Regards,
    Marko Bikker

    See Oracle Database Express Edition License Agreement

  • Cannot Edit Table

    Hi all,
    I'm sorry for this question but i didn't find anything in the forum.
    Depending on users on my database, i cannot edit a table i just create (using a CREATE script) in my own shema with the button Edit (Modifier in my french interface) which is below the Columns tab.
    I just compare the Role and Grants fur a user who can, and a user who cannot, and i don't find any difference.
    Can you tell me what i have to do ?
    Version 3.0.04
    Oracle 11gR2

    Just in case it's a UI issue, can you try Edit through the context menu on the table inside the navigator tree?
    Hope that helps,
    K.

  • Pls need your help!! ORA-01102: cannot mount database in EXCLUSIVE mode

    I really appreciate if you can help me.
    In the test environment Oracle 10g r2, I was trying to change some init.ora parameters and some flashback database parameters. Flashback required to start in mount exclusive, and the init parameters only start mount. I do not know the difference between mount and mount exclusive. i used start mount exclusive to alter all the parameters. At the end, I used ALTER DATABASE OPEN. Now, I can't start the database. The following is the error that I am getting. Can you explain the difference between start mount and start mount exclusive.
    Thanks, Terry
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> startup mount;
    ORA-01081: cannot start already-running ORACLE - shut it down first
    SQL> shutdown immediate;
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 612368384 bytes
    Fixed Size 1980616 bytes
    Variable Size 230688568 bytes
    Database Buffers 377487360 bytes
    Redo Buffers 2211840 bytes
    ORA-01102: cannot mount database in EXCLUSIVE mode

    sidney$ ps -ef| grep ora_
    oracle 13663 1 0 16:39:46 ? 0:00 ora_mmon_orcl
    oracle 13150 1 0 14:46:07 ? 0:00 ora_q000_orcl
    oracle 13105 1 0 14:45:29 ? 0:02 ora_dbw0_orcl
    oracle 13107 1 0 14:45:29 ? 0:01 ora_lgwr_orcl
    oracle 13117 1 0 14:45:30 ? 0:04 ora_mmon_orcl
    oracle 13099 1 0 14:45:28 ? 0:01 ora_pmon_orcl
    oracle 13119 1 0 14:45:30 ? 0:05 ora_mmnl_orcl
    oracle 13113 1 0 14:45:30 ? 0:00 ora_reco_orcl
    oracle 13115 1 0 14:45:30 ? 0:01 ora_cjq0_orcl
    oracle 13136 1 0 14:45:51 ? 0:00 ora_arc0_orcl
    oracle 13152 1 0 14:46:07 ? 0:00 ora_q001_orcl
    oracle 13126 1 0 14:45:36 ? 0:01 ora_rvwr_orcl
    oracle 13680 13615 0 16:46:00 pts/6 0:00 grep ora_
    oracle 13667 1 0 16:39:46 ? 0:00 ora_d000_orcl
    oracle 13101 1 0 14:45:28 ? 0:01 ora_psp0_orcl
    oracle 13142 1 0 14:45:56 ? 0:00 ora_qmnc_orcl
    oracle 13138 1 0 14:45:52 ? 0:00 ora_arc1_orcl
    oracle 13121 1 0 14:45:30 ? 0:00 ora_d000_orcl
    oracle 13655 1 0 16:39:45 ? 0:00 ora_ckpt_orcl
    oracle 13103 1 0 14:45:28 ? 0:01 ora_mman_orcl
    oracle 13669 1 0 16:39:46 ? 0:00 ora_s000_orcl
    oracle 13653 1 0 16:39:45 ? 0:00 ora_lgwr_orcl
    oracle 13649 1 0 16:39:44 ? 0:01 ora_mman_orcl
    oracle 13123 1 0 14:45:31 ? 0:00 ora_s000_orcl
    oracle 13647 1 0 16:39:44 ? 0:00 ora_psp0_orcl
    oracle 13659 1 0 16:39:45 ? 0:00 ora_reco_orcl
    oracle 13111 1 0 14:45:29 ? 0:04 ora_smon_orcl
    oracle 13109 1 0 14:45:29 ? 0:04 ora_ckpt_orcl
    oracle 13665 1 0 16:39:46 ? 0:00 ora_mmnl_orcl
    oracle 13678 1 0 16:45:05 ? 0:00 ora_j000_orcl
    oracle 13651 1 0 16:39:45 ? 0:00 ora_dbw0_orcl
    oracle 13657 1 0 16:39:45 ? 0:00 ora_smon_orcl
    oracle 13645 1 0 16:39:44 ? 0:00 ora_pmon_orcl
    oracle 13661 1 0 16:39:46 ? 0:00 ora_cjq0_orcl
    sidney$

  • Monitoring Standard Edition Databases

    Hello,
    We are currently an all 9i on Solaris shop that is beginning to work on upgrading to 10g and moving to linux 64 bit where possible. As a part of cutting costs, we are moving several production databases from Enterprise Edition to Standard Edition and likely dropping the Database Diagnostics Pack.
    From what I can tell from initial testing with 10gR3 Grid Control and Database Control, I am unable to set Notification Rules, blackouts, etc so that I can manage email notifications.
    So, is it true that if using Standard Edition databases or Enterprise Edition databases without the Database Diagnostic Pack, I can't email alert and job notifications? Do these same rules apply if I were to do all my monitoring from Database Control instead of Grid Control?
    Thanks for any and all feedback.
    Terry

    So, is it true that if using Standard Edition databases or Enterprise Edition databases without >> the Database Diagnostic Pack, I can't email alert and job notifications?That is true. If you go to Setup --> management Pack Access, at the bottom there is a link to a licencing page which gives you details on all the packs and what they allow you to do.
    I've never used database control, so I'm afraid I cannot help you on that one.

  • ERROR - 1013113 - Cannot unload database dbnam , when it is still in use.

    Hi ,
    Below is the scenario of what am doing and the error am getting. Please shed some light and share ur ideas on this.
    1 . I used the below maxl statement and logged out all the sessions on the application by force.
    alter system logout session on application <appname> force;
    2. After logging out the sessiosn, am using the below maxl statement to unload the application,
    ALTER SYSTEM UNLOAD APPLICATION <appname>;
    but am getting error as "*ERROR - 1013113 - Cannot unload database <dbnam>, when it is still in use.*".
    Please share your expertise to eliminate this abnormality of essbase.
    Thanks in advance!!
    -Vinay
    Edited by: user12000483 on Jul 8, 2010 2:10 AM

    I found that sometimes after a EAS command (for instance a export data) is finished (correctly finished or not it does not matter in this case) a rudimentary tcp connection from EAS to the essbase server is left open.
    You can view this with a generic tcp viewer) on either the eas or the essbase server.
    Disconnecting this particular tcp connection "frees" the essbase DB for further actions.
    It is not nesecary to close the proces which keeps the connection open. Since this would kills your essbase application running.
    This was really a pain in the $% for the last years since before I always had to kill the application process. Perhaps I am creating a case at Oracle to solve the initial cause, but for the moment this helps me a lot. I did not have time to see if the same occurs after maxl processes. But I doubt it happens there. The cause can be in the weblogic timeouts and behaviour at the EAS server.

  • Starts up but ORA-205 cannot mount database

    I dont seem to understand. I run windows 98 and installed oracle 8i Personal Edition.
    First,I cannot get scott and tiger to log me Senond, going in as Database Administrator to start database, it starts but does not mount - 'ORA-205, CANNOT MOUNT DATABASE,
    Could a 64 meg ram machine not be enough as it recommends 96 meg.
    or
    Could it be because at a certain stage duirng installation, it detects there is an older database which it wants me to migrate, but which i bypassed as I prefer to start anew. I see it is not by force to migrate if you do not want to.
    Could someone be of help please.
    null

    I think you could identify the database ALERT file to find what might cause the error.
    The alert file is default located in:
    $ORACLE_HOME/admin/bdump
    Try to find it, and see what happened.

  • Cannot edit properties

    We have been moving and adding documents to a document library which we have set up. We have included required fields. At first we were able to edit the properties in each document to add the relevant fields, but now this is now longer working. we're out
    of ideas. Can anyone advise please. Thanks

    when you say you cannot edit. what is happening
    is that option disabled(it can be due to permission) or database is locked from central admin quota and lock.
    Check if SQL server is giving any error message\disk space issue
    If you getting some error message. please share error details with us

  • While generating a crystal report can we edit database fiels in field explorer (at middle can we edit database fields)

    while generating a crystal report can we edit database fiels in field explorer (at middle can we edit database fields)

    Wrong forum to post the question, try to post the question in crystal reports community.
    Its not possible to edit the database fields while creating the reports, its only used to call the rows of values in it. Can you explain me in detail what are you actually looking for .
    --SumanT

  • While generating a crystal report can we edit database files in field explorer ?

    Hi,
    while generating a crystal report can we edit database files in field explorer (at middle can we edit database fields)
    Regards,
    Mahendra

    Wrong forum to post the question, try to post the question in crystal reports community.
    Its not possible to edit the database fields while creating the reports, its only used to call the rows of values in it. Can you explain me in detail what are you actually looking for .
    --SumanT

  • Cannot edit JPG, GIF files stored in a SharePoint 2010 picture library

    Created a SharePoint 2010 picture library to store .jpg, .gif images along with other types of images which were created using Adobe photoshop, Tiff etc.
    Upon clicking on the .jpg, .gif files for editing purposes, they open in the browser instead of Photoshop so I cannot edit these files for this reason. Other types of image files are editable but not the jpg, gif files. File associations are already
    in place for these files to open in Photoshop. Please advise.
    Thank you,
    Mahesh

    You can change the default application that opens while you click open document using DocIcon.xml which is present on the web front ends. Please look at this link which explains what you need to update in order to take care of your requirement. 
    http://msdn.microsoft.com/en-us/library/ms463701.aspx
    Hope this helps. 
    Thanks, Mayur Joshi Blog: http://splearnings.blogspot.com/

  • I cannot edit my contacts after upgrading to IOS5 .

    I cannot edit my contacts after upgrading to IOS5 . I can restore to factory settings but I want to keep my messages as they were.. what can I do? please someone help.. thanks in advance.

    HI MortenEJ,
    Thanks for your responce.but already done doing "Restore factory settings" .. and when Im doing "back up from" ..
    I still encounter the same problem. I have important messages in my inbox I want to keep. 
    I even try to upgrade to the newest version. IOS 5.0.1. but still the same..My main problem is my contacts. I dont have "+" add contact button and inside each contact.. I dont have the "edit" button..

  • Cannot Edit Captions in One File

    Hello,
         I'm using Captivate 3, and I have this one project file that I cannot edit the captions in. I wasn't having this problem until I imported a slide from another project. Ever since the slide imported, I haven't been able to edit the text captions. When I double click on the caption I want to edit, nothing happen. If I click once on the caption to highlight it, and go to the menu and click on an option to edit the caption, nothing happens. Captivate is only doing this on the project which I imported a slide, every other project I have opened works fine. I tried to save the file as a different name, and I still get the same result. Does anyone have any other ideas? Am I not doing something right? Thanks in advance for the help!

    Hello,
    Could be that the CP-file or objects have become corrupted. I'd recommend creating a new blank file with the same resolution, and copy and paste the slides to this new file. Better not all at once, so that you could perhaps find the "guilty slide".
    Lilybiri

  • I have an iMac, and have a Verizon DSL account. Recently, my Mac Mail keeps requesting the passwords on my account every few minutes, and will not allow me to send messages using Mac Mail. I cannot edit the outgoing server; how can I send emails?

    I have an iMac, and have a Verizon DSL account (3 email addresses). Recently, my Mac Mail keeps requesting the passwords on my accounts every few minutes, and will not allow me to send messages using Mac Mail (the message says that the outgoing server was rejected. I cannot edit the outgoing server, and the keychain will not save my passwords (the ports are valid). How can I change the outgoing server to send emails, and how can I avoid having Mail request my passwords every 2 minutes? Verizon, as usual, will not provide support to iMacs.

    Is there an email saved in your drafts or outbox folder?  I suspect that Mail is continually trying to send it, and each time Google is rejecting the email message.
    You can open the message and then delete it from your Outbox folder.  Then try removing all @gmail email addresses from it and seeing whether you can send to the other folks.  I suspect that will work.
    With email, if an SMTP server *can* verify email addresses, sometimes it will and it will refuse to send messages.  If a message has to be relayed across servers, no verification is done, and you'll get a bounce if an email address is bad.

Maybe you are looking for

  • Multiple APP run's for  same vendor

    Dear Friends, I would like to know whether it is possible to do multiple payment proposals for a vendor on same dates. here is the scenario: Each business area would like to creat and edit payment proposals for the same dates, for ex: Run date is 1.1

  • HT201210 i am trying to restore an iphone 3g but it keeps failing

    can anyone help with this ?

  • DRM 11.1.2.2.308 to 11.1.2.2.311

    Hi, Currently we are in DRM 11.1.2.2.308 and planning to upgrade to 11.1.2.2.311 to make compatible with Internet explorer 10. To upgrade this we need to follow below steps 1) Stop the DRM service 2) Uninstall existing version from Control Panel (Add

  • Can't update iPhoto and Kindle apps because they need the previous owners Apple ID

    I was recently given a Mac Pro (which I absolutely LOVE).  iphoto and Kindle both need to be updated however because they are under the previous owners Apple ID I have no idea how to do it w/out contacting the previous owner?

  • Secured wireless router

    G'day.  My IT administrator set up my home secured, password enabled wireless network.  I have a new notebook, and net IT administrator, and have no idea what the password is.  How can I reset this to access my router again? Thanking you in advance f