IP address or computer name

I am importing data, I am using IP address to connect to shared folder in different server. 
Business wants me to use server name instead of IP address. 
Can we use computer name in tsql statement instead of IP address?
What are the advantages and disadvantages of it? what is the best practice?

>Can we use computer name in tsql statement instead of IP address?
How do you plan to use it?
You can use computer name or any name for that matter as a linked server name:
http://technet.microsoft.com/en-us/library/ms190479.aspx
http://msdn.microsoft.com/en-us/library/aa560998.aspx
Using computer name may help to make the SQL statement self-documenting.
BULK INSERT from another server:
http://technet.microsoft.com/en-us/library/ms175915.aspx
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/665d7c59-3829-4551-b00a-52ea69129036/remote-bulk-insert?forum=sqldataaccess
Kalman Toth Database & OLAP Architect
IPAD SELECT Query Video Tutorial 3.5 Hours
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

Similar Messages

  • Get ip address or computer name

    hi all,
    please tell me how i can get the ip address or computer name of a machine running a form.
    Besr Regards,
    hany

    A simple way to get the computer name on the Windows platform in client/server mode is
    tool_env.getvar('COMPUTERNAME', l_str);
    The similar technic should be possible on other platforms.
    Another possibility is to use the database session information:
    select sys_context('userenv', 'host'), sys_context('userenv', 'ip_address') from dual;
    I suppose this will give the name and address of the application server in web-mode.

  • File sharing afp:// address not computer name

    Just setting up my new iMac and the file sharing afp:// address does not match the computer's name (Brute Squad), it's pulled in my old PowerBook's name (Alumen). I'm assuming it came from my Apple/iCloud account since that was the only computer I had registered when I set the iMac up. Restarting didn't help. Any ideas?

    You can change the computer name in the System Preferences > Sharing pane, change the name at the top.
    Best of luck.

  • Datasocket change ip address to computer name

    Hi,
    When I write data on the network, the IP address appears inplace of the computer name.  I would like to have it where the computer names appears instead of the IP address.  When the URL is dstp://computername/channelname . But on the data server the IP address appears and no computer name.
    Any suggestions....
    --claudia

    Attached is an example of what I'd like to see on the Datasocket Diagonistic.  The funny part is that I am using the computer name for the URL of the datasocket read & write.
    Attachments:
    datasocket.gif ‏14 KB

  • URGENT..how to get ip address or computer name of user making a JSP request

    Hi,
    How do i in my jsp, get the user ip address or any other kind of identification via JSP..
    issit something like this...
    <%
    request.getRemoteUser() ;
    %>
    this jsp will be accessed when the remote user clicks a link from a normal web page...

    request.getRemoteUser usually gives the user name if the Authentication header is present and in case the user is authenticated via http authentication based mechanism.. when you want the ip address of a machine try the methods in socket.
    Something like this,
    InetAddress ia=<socketobject>.getInetAddress();
    String str=ia.getCanonicalHostName();
    Hope this Helps
    Hi,
    How do i in my jsp, get the user ip address or any
    y other kind of identification via JSP..
    issit something like this...
    <%
    request.getRemoteUser() ;
    %>
    this jsp will be accessed when the remote user
    r clicks a link from a normal web page...

  • How can I konw , Which computer name or IP Address make SAP User lock

    Dear all,
    I have one issues about SAP user lock,
    Now I don't know which computer name or IP Address make user lock.
    How can I check it or Can you tell me about the table that keep information about the ip address or computer name?
    I can see the computer name when I use t-code al08 or sm04.
    But I don't know the table that keep data from this t-code.
    Pls suggest me for this issue.
    Regards,
    Pannee

    In SM21
    If you double click on the message "User XXXXX locked due to incorrect logon"
    You'll see under details the name of the terminal
    Terminal............ XXXXXXXXXXX
    for IP address just ping the terminal.
    Regards
    Juan

  • Hi firefox i wanted to disable my ip adreass and my computer name

    hi i have problems with torrent website they tracking my ip adress and try hack my computer i wanted disable ip address and computer name i am use wireless connection is that any possible can i get new ip address i don't split my personal information to know other guy

    Hi @RicardoAlmeida ,
    Thank you for your query, I will do my best to  help!
    I grasp that you are having an issue with your switchable graphics and HP support referred you to a bios update.
    You can run the HP Support Assistant  to aid with HP updates.  Here is a link to the HP ENVY dv6-7300sp Notebook PC Drivers where there is a bios update if it has not been done previously. Updating the BIOS.   As a bios update does have the potential to cause damage, I suggest contacting HP support for assistance.
    As you do have switchable graphics I believe this document is the one you require, It will help you configure your graphics.
    Switchable Graphics on Notebooks Configured with Intel and ATI GPUs
    Best of Luck and
    Sparkles1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!

  • Looking for my computer name and mac address.  Where do i find them?

    I think this should be straightforward.  Where would I find my Mac Address and name of my computer?  I want to tether with my phone and need to give my phone this info.
    Thanks in Advance.
    Deb

    Your Computer Name is found in the Sharing preferences at the top. For your MAC address open Network preferences, select your desired port such as Wireless then click on the Advanced button. Click on the Hardware tab. You will find it there.

  • In System Preferences- Sharing- Remote Management the address doesn't reflect the computer name.

    Hi,
    I have a dual boot system with two seperate hard drives, Lion and Snow Leopard.  One drive has a name of mac-pro2 for Lion and mac-pro2sl for Snow Leopard.  Something happened when I rebooted from Snow Leopard to Lion that in System Preferences->Sharing->Remote Management that the computer name had changed to the Snow Leopard  computer name it has a address and name of mac-pro2sl.  I have change the Computer Name: and it worked and was changed to mac-pro2 but Remote Management still has the address of mac-pro2sl and doesn't reflect the computer name.  I can ssh into Lion with mac-pro2sl but I have a conflict with from other computers when I log in with a warning of "Remote Host Identification has Changed".  How do you change the computer name for remote management and ssh?
    I have changed the hostname and it reflects the change when you login, mac-pro2 for Lion.  But when you ssh into Lion it requires mac-pro2sl not mac-pro2.
    When I change the computer name it shows below that the name in "Remote Management: On" "computer using the address mac-pro2sl" is selected but then doesn't change but remains the same when the dialog closes.  How do you change the address to reflect the computer name? Is there a command line utility?
    Thanks for any help.

    If this problem is due to DNS, look in your configuration. What is the number one DNS server address? Is it local, or is it on the Internet at large? Or post the Address here and folks can help you look it up.
    192.168.yyy.zzz
    10.xxx.yyy.zzz
    172.xxx.yyy.zzz
    are all strictly local.

  • Computer names persistently associated with a MAC address causing problems

    Our WDS server will assign out a computer name like CompanyName###  This is great.
    The problem is sometimes WDS will assign a computer name that is getting associated with the MAC address somehow--I assume this is what's happening--and kick a computer off the domain that now has that computer name. 
    Is there some way I can disable the association of computer names with MAC addresses, or persistent computer names?

    Hi,
    How did you define your naming policy in WDS or in your answer file?
    3.1.1.4 Machine Naming Policy
    http://msdn.microsoft.com/en-us/library/dd871418.aspx
    Please also check this hotfix:
    Windows Deployment Services generates duplicate client computer names when the %MAC variable is used
    http://support.microsoft.com/kb/957051
    Hope this helps.

  • Script to query DHCP server for computer name if IP address is known

    I run vulnerability scans of my company’s network. After scanning my network I have a lists of IP addresses with no computer names. Most of them appear to be VTC or telephony
    systems so they are don’t respond to NBTSTAT. I can manually
    find them in my DHCP server but the lists is quite long. Does anyone know of a script that I can run against the IP address lists that would query the DHCP server and return the associated machine name that is listed in the DHCP server? 

    Surely you have a DNS server and this is all set up and you're not relying on NetBIOS broadcasts or a WINS server?
    PowerShell:
    ([Net.Dns]::GetHostByAddress("123.123.123.123")).HostName
    -- Bill Stewart [Bill_Stewart]

  • Get Network Computer name from IP address

    On a windows machine I want to be able to get the computer name if I know the IP. I have a VI that will return the MAC Address which is useful since my wireless access point does not have a static IP, I can search for the MAC Address to find it and then access it, but would like to add the feature of returning the computer name.. How can I do this?
    Thanks
    Jeff
    Jeff D.
    OS: Win 7 Ultimate
    LabVIEW Version: 2011,2010,2009 installed
    Certified LabVIEW Architect

    Attached screenshot shows how to find the name of the network adapters
    on your computer... the STR IP function has Multiple Outputs enabled to
    produce an array. 
    If you wanted to find the computer name of another computer you could
    feed the IP address string "x.x.x.x" to the STR IP function.
    Attachments:
    Screenshot.jpg ‏66 KB

  • I have recently opened a new account with Itunes.I want to download my previous music purchases to my new account which has a different computer name, email address and Apple ID. My credit card details remain the same. Please HELP.

    How can I restore my old account music purchases which I closed, to my new current account which has a new computer name, email address and Apple ID? The credit card details remain unchanged, so would this act as a tracking device  for Apple to locate my substantial past purchases?

    Why would you start another account?
    You cannot transfer purchases to another account.

  • Terminal-IP address instead of computer name is showing

    Hi, my computer is behaving strangely lately and I noticed that in terminal the host name is displayed like this:
    c-XX-XXX-XX-XX-XXX:~ myusername%
    with XX numbers corresponding to my actual IP address
    When I looked in my 1 month old backup, it is displayed correctly there with an actual drive name.
    In addition, the current shell is tsch, despite the fact that I am running OSX10.4.11 where it is supposed to be bash as far as I understand.
    Is displaying IP address in terminal instead of computer name normal? If not, how to reset this?
    Any help would be much appreciated.

    BDAqua,
    My report:
    1. Moved preferences.plist from /Library/Preferences/SystemConfiguration/preferences.plist into trash.
    2. rebooted.
    3. Computer now shows [localhost] in terminal as a host name-success. However, now Internet does not work.
    4. Went to System preferences>Network>Built-in-Ethernet. There was a blank page (all settings gone).
    5. No matter. Inputed comcast.net in Search domains field (Comcast is my provider). Clicked on Apply now. All settings came back, internet works.
    6. Now Terminal again shows my IP as a host name, but at least I know that this change came from Comcast.
    Unexpected benefit: Apparently this procedure got rid of annoying "Your settings are being modified by another application" bug-Good to know, thanks.
    Conclusion: For some reason Comcast sees fit to modify Terminal settings.
    Big thanks for making the problem clearer.

  • MDT Database - Auto Computer Name Using MAC Address

    I am trying to build a MDT server which will auto name any computer by using the MAC Address of the Network Card, I have read lots of articles and there isn't a definitive answer but I am looking for a simple answer which will work. I have tried all sorts
    of things customising the Customsettings.ini and the unattend.ini and the database.
    These are the settings I am looking at .
    Can anyone please advise me how to get MDT to query the database and output the computer name using one of these variables.
    %OSDComputername%
    %Computername%
    Can you please help.

    Hi Walkermescc,
    Since it is related to SQL database, our help might be limited. I suggest you refer to this article and it might be helpful.
    http://blogs.technet.com/b/deploymentguys/archive/2011/08/05/dynamic-computer-naming-in-zti-deployments-using-mdt-and-configmgr.aspx
    If you need more support about MDT and Database, you could post your issue to the MDT forum and there might be more suggestion for you. 
    MDT server forum:
    https://social.technet.microsoft.com/Forums/en-US/home?forum=mdt
    Regards

Maybe you are looking for

  • Do i have to install new graphics card on my PC? as i will install windows 8.1 with 4GB ddr2 RAM

    My PC name is COMPAQ SG3350IL i have 2   DDR2  RAM slots in which i can install  total 4 GB RAM. I will install windows8.1 on my PC very soon, for that do i have to upgrade my video BIOS also with RAM( as above)? All this i am asking is for installin

  • Duplicate record with same primary key in Fact table

    Hi all,    Can the fact table have duplicate record with same primary key . When i checked a cube i could see records with same primary key combination but the key figure values are different. My cube has 6 dimentions (Including Time,Unit and DP) and

  • Error: illegal start of expression

    Hi, when I compile my program, I get an error that says "A6Q1.java:96:illegal start of expression public static int IndexOf(int comma) " and ^ points to the p in public. Here is a copy of the program (CSI1100 is a class that enables the read-in from

  • Acrobat X Faulting Module Scan.api

    Have customer where one user who has Acrobat Standard X gets error to close Adobe every time she tries to scan within Acrobat.  She gets the error: Faulting application adobe.exe, version 10.1.1.33 faulting module scan.api, version 10.1.1.33. in Even

  • Interpreting Monitor alerts

    I have my monitor setup with several thresholds. And I am getting gwiapop3BadPassword gwiapop3UnknownUsers notifications. I would like to followup and see further details about these MIB captures but I can't find anything relating to them in the log