Knowing the exact version of the Database

i am having a hard time knowing the version of the attached database on my server.. Lets says someone created a database using sql
server version xxxx and he created a backup of that DB then he gave me. how do i find the database version then. Thanks.

>>i am having a hard time knowing the version of the attached database on my server.
USE DBNAME
GO
DBCC DBINFO() WITH TABLERESULTS
You can refer the 
--dbi_version - New Version of the database
--dbi_createVersion -- The old version of the database
Just compare the output of dbi_createversion with below list to find the source database version.
http://sqlserverbuilds.blogspot.com/2014/01/sql-server-internal-database-versions.html
SQL Server Version
Internal Database Version
Database Compatibility Level
SQL Server 2014
782
120
SQL Server 2012
706
110
SQL Server 2012 CTP1
(a.k.a. SQL Server 2011 Denali)
684
110
SQL Server 2008 R2
660 / 661
100
SQL Server 2008
655
100
SQL Server 2005 SP2+
with VarDecimal enabled
612
90
SQL Server 2005
611
90
SQL Server 2000
539
80
SQL Server 7.0
515
70
SQL Server 6.5
408
65
SQL Server 6.0
60
--Prashanth

Similar Messages

  • How to know the database name?

    I have installed oracle 10g and developer suite.. I am trying to create forms now.
    But its error out: TNS: could not resolve the connect identifier specified!!!
    I forgot the Data base name.. How can I know the database name??
    Thanks in Advance!!!!!!!!!!

    I have installed oracle 10g and developer suite.. I'm sorry, but you are going to have be more specific as what you installed!
    If you installed Oracle Database 10g Express Edition then it is not (by default) configured to allow a connection through SQL*Plus. It is primarily configured to open a connection through the "Go To Database Homepage" url/link in the Start Menu => Oracle Database 10g Express Edition => Go To Database Homepage. In order to connect to the database from SQL*Plus (which is included with Oracle Developer Suite 10g) you will need to run the Net Configuration Assistant to configure your TNSNAMES.ora and SQLNET.ora files. Go to Start Menu => Oracle - DevSuiteHome1 => Configuration and Migration Tools => Net Configuration Assistant to run the assistant. After you run the assistant, test to make sure can connect through SQL*Plus before you attempt to connect through Forms.
    Hope this helps,
    Craig...

  • How can I know the database is using Cost Based or Rule Based?

    Hi all expertise,
    How can I know the database is using Cost Based or Rule Based?
    If cost based it is using, what methods are need to use to minimize the cost when database is running? And which tables I can see the performance of the database?
    Thanks
    Amy

    how to see database setting ?
    use this
    SQL> sho parameter optimizer
    NAME TYPE VALUE
    optimizer_dynamic_sampling integer 1
    optimizer_features_enable string 9.2.0
    optimizer_index_caching integer 0
    optimizer_index_cost_adj integer 100
    optimizer_max_permutations integer 2000
    optimizer_mode string CHOOSE
    choose means if table statistics is available then it will use cost
    else
    use rule based optimizer
    for seeing performnace of table use
    set autotrace on
    and run your query
    if it doen't show cost.it means it use rule based
    for using cost based
    u will calculate table statistics
    9i
    dbms_stats.gather_table_stats('owner','table');
    8i
    analyze table <table_name> compute statistics;
    hope it will help you
    kuljeet pal singh

  • Use DB Connectivity tool, can I know the database is open by another user without opening it?

    hi all,
    A urgent issue here, is it possible for me to know whether the database is being used by the other user without opening a databse using Databae Connectivity Tool?
    Can anyone know the solution?

    Duplicate post: http://forums.ni.com/ni/board/message?board.id=170&message.id=511732

  • How to know the database size

    can one tell how to find the database size?

    Depends what you mean by database size and how you want the output to look?
    Are you referring to the number of rows across all tables of a schema? The number of bytes used by the rows? The number of bytes used by the tablespaces? The number of bytes used by the datafiles? etc. etc. etc. So many options.
    Be more clear in your requirements please.

  • How to know the database changes between different releases

    Where can I get the information of database changes, like for example new columns new tables, etc, between different releases?
    My goal to try to determine the current version, or is there a better way?
    Thank you

    For JD Edwards World or for JD Edwards EnterpriseOne - you can go to upgradejde.com Once this screen comes up, pick Resources. You will then have an option to take JD Edwards EnterpriseOne or JD Edwards World. On the next screen, you can select the tab Compare Releases. This will allow you to enter the release that you are currently on and enter the latest GA release of software. You will then see all the differences between your current release and the release you should upgrade to. You can also format this into a printed report.

  • What is the sql query to know the database name having known table name?

    when i am running the following query....error coming
    select * from information_schema.tables where table_name = 'articles'
    Error starting at line 1 in command:
    select * from information_schema.tables where table_name = 'articles'
    Error at Command Line:1 Column:33
    Error report:
    SQL Error: ORA-00942: table or view does not exist
    00942. 00000 - "table or view does not exist"
    *Cause:
    *Action:
    i am running the above query in SQLDeveloper tool against ORACLE database
    plz give alternate solution.

    Hi,
    select * from information_schema.tables where table_name = 'articles'You are trying query view ( information_schema.tables ) from MSSQL on ORACLE??!!
    Each RDBMS have your own data dictionary... you must check documention of ORACLE to query the properly data dictionary.
    Try it:
    select * from users_tables where table_name = 'articles'
    or
    select * from all_tables where table_name = 'articles'
    or
    select * from dba_tables where table_name = 'articles'http://docs.oracle.com/cd/E11882_01/server.112/e25494/general011.htm#ADMIN11564
    Regards,
    Levi Pereira

  • How to know the database tables for 0CUST_SALES_LKDH_HIER

    Is there any way to find out the underlying data base tables for "0CUST_SALES_LKDH_HIER"?
    In general where should I should go to check the underlying data base tables.

    Table - KNVH - Customer Hierarchies
    Easy ways first check for the datasources at http://help.sap.com/saphelp_nw2004s/helpdata/en/3d/5fb13cd0500255e10000000a114084/frameset.htm
    If that really doesn't help you have to have a look at this Excellent blog by Roberto Negro : /people/sap.user72/blog/2005/09/05/sap-bw-and-business-content-datasources-in-pursuit-of-the-origins

  • How to know which Oracle version database I am using ?

    Hi all,
    I am configuring an administrative file on the server and there are many databases in our company : there are Oracle8i, Oracle9i and Oracle 10g databases.
    What I know only is the connect string which I use to connect to a database via Sql*Plus. But I do not know if it is in 8i or 9i or 10g.
    So can you help me how to know the database version which I am using ?
    Thank you very much indeed.

    To be clear I tell you my big problem : I am developing a forms application. There is a specification in my project telling that if the end-user does nothing during a periode of time which can be set by an administrative user , say 3 minutes , then the end-user session is disconnected. So how to implement this ?
    I tried to use profile and the sqlnet.expire_time but it is too long greater than the set time-limit !
    So what is the best way to implement this functionality ?
    Note that in my forms application, I wrote a query on the dba_profiles view to get the value of the column limit for the resource_name idle_time. All users , that is the "public" keyword , have been granted select on dba_profiles by sys , and this value of the limit column is the time-limit I used in my forms. When the forms application is run then there is a timer created which periodically tests connection to the database by issuing a simple select statement. The periodicity of the timer is set to the value of the limit column in dba_profiles plus one minute because I set sqlnet.expire_time to 1 minute. When the disconnection arrives then there should be a message displayed to the end-user saying that he cannot do anything because his session has been stoped.
    I think I was clear and I am waiting for a good advice from all of you.
    Thank you very much indeed.

  • What  is command used to run the the  database query sripts?

    Hi all,
    i got some clue from another thread and i observed the command is like
    sqlcli -d DBNAME -u SQLUSER,SQLPASS -i filename.sql -c <delimiter> is there,
    when i use this the only first query is successfully executing,
    this might be problem with delimiter.
    can any body help how to use delimiter in the script file with an example.
    thanks in advance.
    --Hari

    Hello Hari,
    1. Please let me know the database version & sqlcli tool version, which you are using:
         sdbregview -l
         < review the installed the database software packages >
         xinstinfo <DBNAME>
         < to check the Kernelversion of your database >
         sqlcli -v
         < to check the version of sqlcli >
    2. Please update with the options/statements you was running.
       What errors/problems did you get?
    3. For example, I run on the local server:
      sqlcli -d NLK -u sapr3,sap
    sqlcli NLK=> \i c:\test\run_1.sql
    0 rows affected (3 msec)
    0 rows affected (2 msec)
    sqlcli NLK=> \i c:\test\run_2.sql
    1 row affected (3 msec)
    1 row affected (2 msec)
    sqlcli NLK=> \i c:\test\run_3.sql
    0 rows affected (4 msec)
    1 row affected (2 msec)
    1 row affected (2 msec)
    1 row affected (2 msec)
    sqlcli NLK=> select * from a3
    COL1
    COL2
    56
    49
    44
    12
    48
    12
    3 rows selected (2 msec)
    Run_1:
    create table a1 (col1 int NOT NULL default '0', col2 int NOT NULL default '0')
    create table a2 (col1 int NOT NULL default '0', col2 int NOT NULL default '0')
    Run_2:
    INSERT INTO a1 values (56,49)
    insert into a2 values (44,12)
    Run_3:
    create table a3 (col1 int NOT NULL default '0', col2 int NOT NULL default '0')
    INSERT INTO a3 values (56,49)
    insert into a3 values (44,12)
    insert into a3 values (48,12)
    4. To use option '-c <separator>' example:
    sqlcli -d NLK -u sapr3,sap -c /# -i c:\test\run_4.sql
    COL1
    COL2
    56
    49
    56
    49
    44
    12
    48
    12
    Run_4::
    create table a3 (col1 int NOT NULL default '0', col2 int NOT NULL default '0')
    INSERT INTO a3 values (56,49)
    insert into a3 values (44,12)
    insert into a3 values (48,12)
    commit
    select * from a3
    Thank you and best regards, Natalia Khlopina
    Add number 4. example.
    Message was edited by:
            Natalia Khlopina

  • Defragment the database

    Hi,
    my Stat_data.dbf constantly grows. If I which delete in the database, remains the same the size stat_dba.dbf. As I know the database in such a way defragmentieren that stat_dba.dbf becomes smaller also.

    What do you mean by "i *see*" => how do you see it ?
    If you use Entreprise Manager, it will NOT show you the used space but the HWM (High Water Mark).
    If i well understand what you want to do, you want to know how "full" is your database at a t time.
    If you really want the exact size of used (not allocated) space, you need to count the number of block (Oracle blocks, not OS blocks) and then multiply by db_block_size parameter...
    Anyway, i think your reflexion is in the wrong way.
    Your problem is that you want to know how full is your database to prevent some space problem. The reflexion should be to first check the table list and the estimated size of each (and how they will grow by year or week or month, ...)
    You will now see that u will have 80% of little tables (few lines in each table), 15% of medium tables and few BIG tables (it not exactly the truth, it's an approximation of course, i am not a medium :-)).
    For an efficient design, you have to specialize your tablespace (cause i bet you have only one tablespace for all your tables).
    Make a LOCCALY MANAGED tablespace for little tables named something like TBS_LITTLE with a 16K UNIFORM extent size.
    Make one or two for your medium tables. If you know that one of your medium is 100MB/year, make a tablespace name TBS_A00MB with an extent uniform size of 20MB and that's will be ok for many many years.
    Make one tablespace for each of your big tables. Follow almost the same method for the index (make the extent smaller) and your DBA life will be really cool !
    That which seem to be a problem for you is that some free space is show as still allocated in a datafile. My question is why you would like to "really" freed this space ? this space will be reuse the next time you will insert/update another row and that's cool like that...
    Fred

  • How to know the logout url in Java PDK

    Is there any method that can give us the logout url of SSO using java PDK?
    Thanks in advance,
    Tony Cruz

    Thank you for the replies. But what i really want to do is a login portlet that can show me a link to logout, and i want to use this portlet in all projects that my company is in, so the code of this portlet must be 100% dinamic, this means that i do not have to know the database schema/passwords, where database is, etc, i thought there was some method in the JPDK that was able to give the link to logout (this is possible for login) but until now i cannot find it. There is a solution for this using a PL/SQL procedure called wwsec_app_priv.logout that lies in the portal schema, this procedure works but i'm not able to redirect the browser to the url i want after logout (in the documentation they say its possible and that there is a parameter called p_done_url that can do this, but in the procedure signature this parameter its not implemented) so right now i'm stucked in this one, and im not sure if i can use the 100% dynamic approach with good results.
    Thanks

  • How to compare, current value in :block.text_item with the database value

    Hi
    Could you please tell me
    How to compare the current value in :block.text_item with the corresponding database column value.
    I am using forms 10g
    There is block and there is an text Item in that block.
    When I run the form and query the block (tabular), the :block.text_item shows me, whatever value there in the database.
    Now I add some value in the :block.text_item to the existing value.
    now
    the :block.text_item contains old+ new added value
    whereas
    the database table contains 'old' value
    Now on a button click , I want to find out what is the value that I have added
    Could you please tell me, is it possible without writing a select query?

    Hello,
    Now on a button click , I want to find out what is the value that I have addedSo you mean always user will add value in the existing value. Because this way will fail in one case. Let say
    Value in Database is = ABCD
    User opened the form and he removed the D and write E and now value is ABCE and length is still same 4. So, there is no addition.
    Anyway you can know the database value at runtime there is one property for item called DATABASE_VALUE. It gives the value which is in database while you are running the form before save. and you can use like this..
    Trigger = WHEN-MOUSE-DOUBLE-CLICK on item level
    DECLARE
      vItemValue DATATYPE; -- Set the data type according to your desired field.
      vValueAdded DATATYPE; -- Set the data type according to your desired field.
    BEGIN
      vItemValue:=GET_ITEM_PROPERTY('ITEM_NAME',DATABASE_VALUE);  -- It will return you the database value in vItemValue variable.
      IF LENGTH(vItemValue)>LENGTH(:FORM_ITEM_NAME) THEN  -- It mean something change or added
        vValueAdded:=SUBSTR(:FORM_ITEM_NAME,LENGTH(vItemValue)+1);
        MESSAGE('Added value is : '||vValueAdded);  -- It will show you the added value.
      END IF;
      -- now suppose you want to show the old and new value in message not the added one
      -- Then no need of IF condition. You can just use message like this
      -- And i would prefer to use like this way
      MESSAGE('Old Value : '||vItemValue||'  New Value - '||:FORM_ITEM_NAME);
      MESSAGE('Old Value : '||vItemValue||'  New Value - '||:FORM_ITEM_NAME);
    END;Hope it is clear.
    -Ammad

  • Name of the database tables where the error log (SM35) values are present

    Hi,
    I want to know the database tables which contains the values of the error log present in SM35.
    Plz help me out.

    Hi,
        Check out for APQI Table with
    GROUPID
    PROGID
    QSTATE
    CREATOR
    MSGCNTE
    APQL Batch Input Log Directory
    Regards
    Bala Krishna
    Edited by: Bala Krishna on Feb 11, 2009 3:45 PM

  • How/where can i find "user" entity from first cup tutorial in the database

    within the first cup java ee tutorial a user entity is crated:
    @Entity
    public class FirstcupUser implements Serializable { ...in some other code the user is created and inserted?:
    @PersistenceContext
        private EntityManager em;
    FirstcupUser user = new FirstcupUser(date);
            em.persist(user);the question is how or where in the database(i don't know the database name, the table name should be user?) i can find the inserted users? within net beans in "services" i can see a db server with a "sample" database - this seems to be a preinstalled example db. but where can i find the db created by the web app i wrote?
    thx in advance

    Press Option key and select Go > Library in the menu bar. To show that folder, open Terminal and copy:
    chflags nohidden ~/Library

  • Find out the database port

    Hi,
    i test my database with a connect from the programm SQL*PLUS. Here I need no port. Now I want to test ist with the SQL Developer. Here I need the database port. I don't know the database port. Can you tell me how I can find out the database port?

    At a command prompt type tnsping database. That will display the tns connection details which includes the port number.
    Or you could look in tnsnames.ora which is probably in <ORACLE_HOME>\network\admin.
    Or you could use the tns connection type in sqldeveloper which picks up the details from tnsnames directly.
    Message was edited by:
    smitjb

Maybe you are looking for

  • Messages sends message to wrong account despite explicit selection

    All the time I am sending messages to the wrong service for users, even after explicitly selecting to right one. In Messages, I have Google Talk, AIM (for the one person who still uses it, haha), my work Jabber account, and iMessage configured. The p

  • Problems installing Oracle8i Personal Edition

    Please help i have windows Me and i just purchased and oracle tool kit for my course which i am takig in school. the cd that i have is Version 8.1.5 for windows 98 is there a win me version becuase it don't want to install on my PC thanks

  • Regarding report

    hi As of my requirement i want to pick data from VBAK,BKPF,BSEG according to customer number(KUNNR),I didn't find common field in VBAK and BKPF and one more If i take the loop for header data(VBAK) shell i take/read/loop the another header data(BKPF)

  • Oracle Financial Consolidation Hub FCH Historical Rates

    There is a requirement to enter data for Historical rates in Oracle R12. I only know that GCS is the schema for historical rates table. Please, I need to know if there are any interface tables or API relates to this upload. Also any technical web lin

  • Error 798 with PPTP-EAP VPN (Windows 7 x64)

    Hello, My work has a PPTP-EAP VPN which uses smart card authentication to login. I can connect just fine with the smart card, but I'm trying to setup the VPN connection so it can read the certificate from the local certificate store, instead of me ha