Can you select the server name or I.P. from SQL

I am trying to find where I can get the server name or IP address from an SQL query, Can you Help?

Do you mean the database host? It's like this:
SQL> select host_name from v$instance;
HOST_NAME
sqlintdb4                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Can you get the file name of the current executing TSQL script?

    Can you get the file name of the current executing TSQL script? I wrote entries to a generic log file and would like to include the script name.

    Okay, So What you can do is
    1. Read get the version from your  database and redirect it to a text file(SQLCMD outout can be directed to text file using -o option or windows redirection operator >)
    2. Now you can read this value from the text file either inside a batch file or a powershell script and decide what operations you can do. 
    Satheesh
    My Blog |
    How to ask questions in technical forum

  • Can I select the Storage type of Azure Backup from April, 1, 2015 ?

    Can I select the Storage type of Azure Backup from April 1, 2015 ?
    I want to select the Storage type for saving money and for purpose.
    "$10 per protected instance for each 500GB per month + Storage consumed".
    The price of Azure Backukp from April 1, 2015.
    I want to select the Storage type.
    LRS type = for client pc backup to saving money.
    GRS type = for critical server backup to protect against disaster.
    Regards,
    Yoshihiro Kawabata

    Short answer - yes, in the new pricing model, you can select LRS and GRS storage.  That being said, we are going to update this and other questions related to the pricing change with a list of FAQs hopefully by next week. Please bear with us
    Thanks
    Shreesh

  • Can you change the field names in the address book?

    Can you change the Pager field name to read 2nd cell?

    No.
    This add-on https://freeshell.de//~kaosmos/morecols-en.html allows you to modify the labels of the 4 custom fields of the contact card

  • HT5840 Can you change the tab name? If can, how?

    Can you change a tab name?

    I believe the Tab is just named according to the name of the folder you are in. I don't think there's any way to change that.

  • I just set up a wireless network using an airport express. How can you change the network name

    How can you change the name of a wireless network set up with an airport express

    Yes, you can. If you use the current AirPort Express, Apple says that you can connect up to 50 devices. Realistically, make that 25-30 or so before the speed really begins to drop.
    Remember that you will have to reset the modem though, before you connect it to the AirPort Express as the modem "remembers" the settings for your computer.

  • How can you select the "from" in Mail with multiple accounts?

    Is there a simple dropdown to select the "From" field in Mail when using multiple accounts?
    All I can find is a support page saying From is defined by the email account that is highlighted and active.
    Thanks

    Hoo,
    When you hover your mouse over your name in the from field it presents a little arrow. Click it and it lets you select who you are sending an email as.
    Also if your reading an email that you got say to your @iCloud.com email when you hit compose it will automatically select your @iCloud.com email to compose your email.
    Hope that helps,
    Weston

  • Acrobat9 5th Jan.   in form design can you change the title name

    I have a form in acrobat 9
    and have noticed a spelling mistake in a field name EG
    First neme _____John_______________
    Last name _____Smith_______________
    I want to correct the spelling mistake, Can it be done in Acrobat ?
    name is spelt neme
    any sugestions anyone
    TIA

    If you do not want to use the text touchup tool, correct the original document and print to a new PDF. After printing, open the original PDF and use replace pages to replace the appropriate page. If you designed the form in Designer, you will have to do this operation in Designer.

  • How can you keep the file name when using "Download Linked File As..."?

    I'm a longtime PC user finally making the transition to Mac.  Some of the tasks that seemed so simple in Windows have really stumped me!  One of the tasks I do frequently is download files into specific folders.  After much looking, I finally found the "Download Linked File As..." option if I right-click on the download link.  The problem is, when I choose this option, I lose the file name.  I get a window in which I can choose the desired folder, but the filename is always "0".  If I want to keep the filename (and I usually do), I have to type it in manually.  Is there anyway around this?

    You can post a screen shot by clicking on the liitle Camera icon above your reply.  :)
    Just checked on 10.7.4+, still the same, something is borked about your install, to see if we need to re-install...
    To find out if it's system wide or user specific, try this...
    Open System Preferences>Accounts, unlock the lock, click on the little plus icon, make a new admin account, log out & into the new account.
    Does it work in the new account?

  • Can you change the "Full Name" of a BO account

    We have a user who has changed their surname. We can rename the Account Name but the Full Name is greyed out and I cna't see anyway I can change this.
    How have you handled such name changes (it may even apply if you have setup an account name and made a spelling error).
    With thanks
    Gill

    Gill,
          Looks like your CMS is integrated with some sort of 3rd party security like LDAP, AD &/or SAP.  If you want the option to change/update users FULL name then you must un-check that option.
    See example for SAP Integration where the FULL Name, Email setting are NOT being imported over from SAP.
    Regards,
    Ajay

  • HT3819 can you select the items you don't want your family to be able to see?

    I want to get some of my dad's songs he has on his ipod without buying them so i was going to try using the home sharing but i dont want to share all of my songs. Before i turn home sharing on i would like to know if i can select the items i want and don't want my family to be able to see

    I really do appreciate everyone's input to my question. I guess what I wanted to do, and how it can be done aren't as simple as I had hoped. But I know what will work now. Thank you again and have a nice holiday season.

  • Can you select the row in a table view without highlighting the cell?

    I have an an app with a table view which is presented modally. Cell selections in this table are saved in the parent controller so that they can be reselected if the table is reloaded after being dismissed.
    When the cell is first highlighted, I want to momentarily highlight the cell and have it fade out, which I do by unselecting the cell from the modal view controller's didSelectRowAtIndexPath by calling setSelected:animated on the table view cell.
    However, when I present the table view controller modally again and want to display the previously selected cell as selected, I don't want the cell background to be highlighted, and I'm having trouble doing this.
    In order to make sure the table view knows the cell is selected, I am calling selectRowAtIndexPath. I need to make sure the cell is selected so that I can set/unset the cell's accessoryType. However, this has the sideeffect of highlighting the cell too, which looks weird and confusing to the user.
    I've tried things like temporarily setting the cell's selection style to none, but while that stops the cell background from highlighting? I've tried setting the selectionStyle to UITableViewSelectionStyleNone, but while this prevents the cell background from highlighting, the cell text still changes to white, so it the text is invisible against the white background.
    Is there a easy way of setting a cell to selected in the table view without also changing the highlight and text colour of the actual cell? Immediately setting the cell to be unselected still makes the highlight visible for a split second.

    I tried that, but setting the highlighted property doesn't seem to affect it.
    I figured out how what I was doing wrong though. I was setting selection style UITableViewSelectionStyleNone, selecting the cell, then setting the selection style back to whatever it had previously been. This causes the background not to draw highlighted, but the text and accessory type to still draw highlighted.
    In order to fix this, I moved the code to set the cell selection style to whatever it had previously been to the didDeselectRowAtIndexPath method.

  • XMII 12.x  Can you get the Server's Time Zone from a webservice call?

    Is there a MII / NW webservice call to get the server's time zone?

    After thinking about it a little my best approach was just a simple JSP page, because I really was more intersted in the servers GMT offset.
    <%@page import="java.util.*" %>          
    <%
    Calendar myCalendar = new GregorianCalendar();  
    int gmtOffset = (myCalendar.get(Calendar.ZONE_OFFSET) + myCalendar.get(Calendar.DST_OFFSET))/(1000 * 3600); 
    %>
    <%=gmtOffset %>

  • HT202450 Where on earth can you buy the bottom case foot replacement kit from?

    - an assistant in a retail store said I could buy it from Apple online!!!
    - I want the feet, the glue - the whole shooting match....

    If you call Apple with the phone number on your Apple Account, so long as your product is registered the process is fairly simple. When you call in they'll inform you it may cost $20 BUT it wont. Tell the person on the other end you want the DIY replacement kit for the bottom foot pads. Inform them that it is a special order item if they appear to not know what youre referring to. Its ~14 plus the shipping cost. Definitely the easiest and best way to do it IMO. Just ordered mine and the price is way cheaper than if you order from elsewhere for the tools included.

  • Can you select the max of a group by and mach it to another table?

    I can't get my little head around this one. I have 2 tables
    table 1:
    T1ID col1 col2 col3
    1 a t e
    2 g y a
    3 h r p
    4 f u w
    and table 2 that has many entries from table 1
    Table 2:
    T1ID ID col1
    1 3 Y
    1 2 M
    1 1 H
    3 2 W
    3 1 E
    I want the contents of table 1 with the value of col1 from table 2 where the ID is the highest?
    so returning table 3:
    ID col1 col2 col3 col1_from_table_3
    1 a t e Y
    2 g y a
    3 h r p W
    4 f u w
    is this easy to do with a select statment?
    Thanks for all of you help(in advance)
    LT

    SQL> create table t1 (t1id,col1,col2,col3)
      2  as
      3  select 1, 'a', 't', 'e' from dual union all
      4  select 2, 'g', 'y', 'a' from dual union all
      5  select 3, 'h', 'r', 'p' from dual union all
      6  select 4, 'f', 'u', 'w' from dual
      7  /
    Tabel is aangemaakt.
    SQL> create table t2 (t1id,id,col1)
      2  as
      3  select 1, 3, 'Y' from dual union all
      4  select 1, 2, 'M' from dual union all
      5  select 1, 1, 'H' from dual union all
      6  select 3, 2, 'W' from dual union all
      7  select 3, 1, 'E' from dual
      8  /
    Tabel is aangemaakt.
    SQL> select t1.t1id id
      2       , max(t1.col1) keep (dense_rank last order by t2.id) col1
      3       , max(t1.col2) keep (dense_rank last order by t2.id) col2
      4       , max(t1.col3) keep (dense_rank last order by t2.id) col3
      5       , max(t2.col1) keep (dense_rank last order by t2.id) col1_from_t2
      6    from t1
      7       , t2
      8   where t1.t1id = t2.t1id (+)
      9   group by t1.t1id
    10  /
       ID COL1  COL2  COL3  COL1_FROM_T2
        1 a     t     e     Y
        2 g     y     a
        3 h     r     p     W
        4 f     u     w
    4 rijen zijn geselecteerd.Regards,
    Rob.

Maybe you are looking for