Linking Records to Files on a Server

I work for an engineering firm and I have a table in my Access 2002 database that holds data regarding engineering drawings (i.e, drawing #, drawing size, project #, etc.).
I have a .PDF file for each drawing and these .PDF files are located on one of the servers at work. Each record in my table (each drawing) has an associated .PDF fle, or each record could have more than one .PDF file associated with it.
I need to link each record in my table (each drawing) to its .PDF file, which is on a server. I've added a 'text' column to my table and I also have the full path to where the actual .PDF files are.
I need help on how I can get the .PDF file name for each record and insert it into my table.
Can anyone please help????
Thanks in advance.

The connection between a record and its file is that each record (each engineering drawing data) has it's associated electronic file in a .PDF format. So for example, if there's a record, let's say drawing number 123, there's a .PDF file for it on the server called 123.PDF.
When I say I need to grab the file name, I need to actually get the text '123.PDF' and insert it into a column in the table for the record that has 123 as the drawing number.
So for example, I have a table that has data about all engineering drawings. One of the columns in this table is called 'pathToFile'. I have a folder on a server that has all of the electronic files for each actual drawing in a folder. I need help with syntax and algorithm to write code to loop through each record in my table, get the drawing number and based on the drawing number, go to the folder on the server and get it's .PDF file and insert in into my 'pathToFile' column. So for the example above, if the drawing number is 123, then the entry in my 'pathToFile' column for that record would be '\\server_name\folder_name\123.pdf'.
I hope this makes sense.

Similar Messages

  • How do I email a link to a file on my server?

    I know on windows machines you can email a link to different files on your computer that other people have access to like c:/caleb/documents/... but I am not sure how to do that with a mac
    We use a server at work and my boss always tells me to open different files that are hard to navigate to. I am wondering if there is a way for him to just email me a link to the file so I can just click on the text in my email and it will open up the finder window with the file in it.
    Any help would be appreciated.
    Thank you,
    Caleb

    If users are on the local windows machine then "C:/path/..." will work, but if they're accessing it through the network then "\\servername\sharename\path\file" is how it's linked.
    In the mac it's the same way. If "windows" file sharing is enabled then the slash-slash method will work if the users are on a windows PC. Otherwise, it will require the use of specific protocol prefixes in the address. For connecting via AFP (apple filing protocol -- the default and mac-native networking system) the following is the address to use:
         afp://servername/sharename/path/file
    Emailing this address to users who can get network access to the computer will allow them to click the link and connect. For example, my machine is called "Laptop" (ip address is 192.168.1.3) and I have a file called "textfile.txt" located in a "testfolder" in my "Public" directory (which is the shared directory that is readable by users other than myself). To send a link to that file I'd send the following:
         afp://Laptop/Public/testfolder/textfile.txt
    Alternately I can link to it using the IP address as follows:
         afp://192.168.1.3/Public/testfolder/textfile.txt
    To connect to the same computer via windows networking (from a PC or Mac that has windows networking enabled), ensure you have windows networking turn on in your computer and the only difference in the address would be to use "smb" instead of "afp" in the addresses above. This is for NON-windows computers; since windows machines will not know what to do with "smb://servername...", and instead will require the "\\servername\..." notation.

  • How do I include a link to a file on my server, in an outgoing message?

    Hi,
    I manage an office with several desktops and a Mac Pro running Leopard Server. Users share files over afp. I want users to be able to write emails that include links to files on the server. Is there a way they can do this without laboriously typing in the entire path to the file? e.g., afp//:12.34.56.78/NetworkDrive/Project/Folder/This Is My File.doc
    ?

    Hi,
    Creating the alias on the desktop works fine, and accessing the file/folder from the desktop works fine too. And if the alias is to a file, I can drag it into a new Mail message and that works ok.
    But if the alias is to a folder, dragging it into a Mail message window results in a 507KB attachment that, when clicked, says 'The document "NAME" could not be opened.'
    By the way, dragging any alias onto the Mail dock icon in order to create a mail message from it, results in an entirely different behavior: rather than sending an alias, it send the original file/folder.

  • Is it possible to link to specific files on a server from within a pdf?

    Hi all,
    Is it possible to create hyperlinks to a specific file on a Windows server from within a pdf?
    Let me explain further, I am working on a Mac trying to create hyperlinks from within InDesign to specific files on a Windows server. I am exporting the file to pdf, along with the hyperlinks, which look correct when I click on them from within Acrobat.
    On Windows, the links will read as \\servername\directoryname\filename so this is exactly how I enter it as the hyperlink. When I view the hyperlink information in the resulting pdf from within Acrobat, it still looks correct as \\servername\directoryname\filename but when I try to click on it from the Windows side OR the Mac side, the link doesn't work and gets changed....the slashes revert to the opposite direction and the whole link gets messed up. I am trying to figure out if the cause is InDesign, Acrobat or whether this can even be done? Of corse, I never have issues with normal URLS.
    What we are trying to do is set up an internal catalogue for the company of all our materials. (Everyone works on Windows)
    Should I try to create the links from within a Windows version of Acrobat... do you think that will make any difference?
    Thanks in advance for your help:)
    Very much appreciated!
    Christine

    Thank you for your help...very much appreciated!
    Basically, what we needed were for the links to be static and not relative, and they were mainly for Windows users. What finally worked was creating the links from within a Windows version of Acrobat. We plan to email the final pdf to several employees around the word (we are an international company) with all the links intact. Once they were logged into our network (vpn'd in) the links would still be valid no matter where the document was located. The trick is to change the start of the link to a specific IP address (the server address) when you are setting it up in Acrobat. I hope this makes sense and is helpful for everyone else out there:)
    (P.S. This works for Windows users only though and cannot be done via the Mac version of Acrobat. I can set things up within the Mac version of Acrobat so that the links will work as long as the document resides in the same location on the server... the advantage to doing it THIS way is that it will work for BOTH Mac and Windows users.)
    Thanks again,
    Christine

  • How to link Excel 2010 .XLSX file to SQL server 2008R2 - a method that actually works?

    I have been trying unsuccessfully to link my excel file to SQL server like I used to with SQL 2005.
    In SQL 2008R2 I have installed the 64-bit data access components from Office 2010 to get the  provider 'Microsoft.ACE.OLEDB.12.0' avilable.
    When I try this command:
    SELECT
    FROM
    OPENDATASOURCE(
    'Microsoft.ACE.OLEDB.12.0',
    'Data Source="E:\ADUpdates\Employee List1.xlsx"; Extended properties=Excel 12.0')...[Sheet1$]
    I get this error:
    Msg 7399, Level 16, State 1, Line 1
    The OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)" reported an error. Access denied.
    Msg 7301, Level 16, State 2, Line 1
    Cannot obtain the required interface ("IID_IDBCreateCommand") from OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)".
    The Access Denied error seems to be form the worksheet and not the file itself. Evidence is that if I enter a bogus sheet name it tells me the sheet doesn't exist and after this error the file is locked open and can't be saved again from Excel until the
    query windows is closed. The sheet is not protected in Excel so I don't know how access to it can be denied.
    Does anyone actually have this working in SQL 2008R2?

    Some minor progress on this issue by running SQL Server service under a domain account with Administrator priv on the SQL server.
    This query now works in a query window:
    SELECT * FROM OPENDATASOURCE( 'Microsoft.ACE.OLEDB.12.0', 'Data Source="E:\ADUpdates\Employee List.xlsx"; Extended properties=Excel 12.0')...[EmployeeData];
    However, creating a Linked server object for the same spreadsheet still does not work:
    EXEC master.dbo.sp_addlinkedserver @server = N'TEST', @srvproduct=N'Excel 12.0', @provider=N'Microsoft.ACE.OLEDB.12.0', @datasrc=N'E:\ADUpdates\Employee List.xlsx'
    The test connection to the linked server failed.
    Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "TEST".
    OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "TEST" returned message "Unrecognized database format 'E:\ADUpdates\Employee List.xlsx'.". (Microsoft SQL Server, Error: 7303)
    For help, click:
    http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600&EvtSrc=MSSQLServer&EvtID=7303&LinkId=20476
    Naturally, the help link provided only confirms the contempt microsoft holds for their customers by not providing any information at all.
    (appologies for the weird colour and fonts, this is a microsoft product, just have to live with obvious defects).

  • Emailing a link to a file on an SMB server

    How do you create a link to a file on an SMB server, to send to other people (e.g. in email)?
    In a large corporation with mixed Mac/Windows network we use Samba to allow Mac OS X 10.6 to access the file servers.
    This works fine for basic operations such as browsing the servers, or copying files, etc. However, it isn't clear how to create a link to a file on a server, such that it can be emailed to people.
    Creating a link to a folder works ok, via this syntax:
        smb://servername/SomeFolder/AnotherFolder/
    When the email recipient clicks on the link (which appears by default as blue underlined), OS X automatically mounts the server as a local volume, and Finder  opens a window so that they can see the folder contents.
    But when trying to create a link to a particular file, via this syntax:
        smb://servername/SomeFolder/AnotherFolder/FileToShare.mp4
    It doesn't work. When the recipient clicks on the link, Finder appears to mount an empty fictitious volume called SomeFolder/AnotherFolder/FileToShare.mp4, containing no files. It is as if the URL parsing support for Samba links only supports referencing directories rather than individual files.
    By contrast, on Windows sharing a file can be done via this syntax:
         \\servername\SomeFolder\AnotherFolder\FileToShare.mp4
    And clicking on the link would automatically open the file (e.g. in whatever application is associated to play the video, edit the document, etc).
    Is there any way to create a clickable link to a file (not folder) on an SMB server?
    Matthew

    Thank you for trying to help.
    However, that utility does not solve the problem as far as I can tell. Regardless of whether the link text is typed in manually, or is 'snagged' via some utility, it still doesn't work in the case I was mentioning. All options in PathSnagger require that the drive is already mounted, as far as I can tell. And once it is mounted, PathSnagger generates the following strings for various options:
         Snag Path Windows:          \Volumes\servername\SomeFolder\AnotherFolder\FileToShare.mp4
         Snag Path Unix:               /Volumes/servername/SomeFolder/AnotherFolder/FileToShare.mp4
         Snag Path HFS:          servername:SomeFolder:AnotherFolder:FileToShare.mp4
         Snag Path File:          file://localhost/Volumes/servername/SomeFolder/AnotherFolder/FileToShare.mp4
    Note that none of these retain the original server location and protocol (smb://servername) because the volume is now mounted. As such, if emailed to another recipient, in general they do not work.
    Perhaps my original question was not clear. Is there any way to create a clickable link to a file (not a folder) on an SMB server, so that the link can be emailed to other people, and email recipient clicks on the click, the file is opened? (And server volumes mounted automatically as necessary)
    On Windows it can be done via a link such as:
         \\servername\SomeFolder\AnotherFolder\FileToShare.txt
    On Mac, the corresponding support for Samba URLs seems incomplete. A link such as:
         smb://servername/SomeFolder/AnotherFolder/FileToShare.txt
    does not appear to work even on the sender's computer, and even if the server is already mounted.
    The expected behaviour is that when a user (e.g. email recipient) clicks on the link, it should mount the server (if necessary) and open the file (in the example above, FileToShare.txt). Unfortunately, this does not seem to happen.
    Matthew

  • Why does a link to zip file on server open a blank web page?

    Using CS6, I created this page:  J & B Computers - Projects I've uploaded 2 zip files and linked them from this page with this code:  <a href="Zip Files/CheckIPApp.zip" target="_blank">Download a zip file of the IP Checking utility</a> When this link is clicked, it opens up a blank tab instead of prompting for a download. I've tried it with and without the target=blank, I've also tried target=new... I've tried it in Chrome and Firefox. I've tried it on different computers. I've searched for an answer for hours...  what the heck is going on? I want the link to open up the save/download box and it just won't... TIA if you have a resolution!

    Since it's a file download, there's no reason to add the target="_blank", I'm guessing your file is 404 for some reason which would give you a blank window per the target.
    Make sure the case structure of the file and link are identical. Servers are case sensitive, a server sees CheckIPApp.zip and checkIPApp.zip as totally different files. Your local OS sees them as the same thing so during local testing it will work, when uploaded, it won't.
    Make sure you've loaded the file onto the server at the exact location specified by the link. It should be in a folder called "Zip Files" that resides on the same directory level as the page that the link is on.
    You may also want to normalize your file names. They should be all lower case alpha-numerics without any spaces (use hyphens or underscores instead) and without special characters ($%&*). You can use DW's Files window to change names and DW will fix the links automatically.

  • Creating a link to a file on a Windows server?

    I am trying to create a link to a file located on a Windows server that I can email to users and they can click on the link and it will open the actual file.
    Here is what I have done so far:
    smb://server/sharedfolder/document.doc
    The user can click on the link but it just opnes up the "sharedfolder" and then you have to find the file you want and then open it and that works.
    I need the link to be able to just open the actual file.
    Is there a way to do this??
    Thanks

    Since it's a file download, there's no reason to add the target="_blank", I'm guessing your file is 404 for some reason which would give you a blank window per the target.
    Make sure the case structure of the file and link are identical. Servers are case sensitive, a server sees CheckIPApp.zip and checkIPApp.zip as totally different files. Your local OS sees them as the same thing so during local testing it will work, when uploaded, it won't.
    Make sure you've loaded the file onto the server at the exact location specified by the link. It should be in a folder called "Zip Files" that resides on the same directory level as the page that the link is on.
    You may also want to normalize your file names. They should be all lower case alpha-numerics without any spaces (use hyphens or underscores instead) and without special characters ($%&*). You can use DW's Files window to change names and DW will fix the links automatically.

  • Wiki file attachments - can the wiki be configured to link to a file already on the server rather than uploading it into the page?

    Can the wiki be configured to link to a file already on the server rather than uploading it into the page? This would enable users to open (and edit) the original server hosted document rather than downloading a static copy that can't be edited and synced back into the wiki page.
    As a workaround I've tried attaching an alias to a file but it doesn't work - the wiki instead uploads the aliased file.
    From what I can work out, the default wiki behaviour is to upload a document to a wiki page, which creates a copy of the uploaded document in the wiki database. This copy has no connection to the original document. It can be downloaded and edited, but the edits are not saved back into the wiki hosted version of the document.
    I'd like to be able to upload a link or alias to a document (with preview please!) already on the server. A user could then preview the document or click to open and edit it.
    The only way I can do this at the moment is to create a link "afp://123.../doc.rtf" to the original. This is timeconsuming and confusing for non-technical users and doesn't offer the benefits of the attach function (ie document preview).
    Is there any way the wiki can be configured to link to documents already on the server using the attach functionality?

    An update for anyone in a similar situation.
    Patch 3944727 for 9.0.4.1 that solves this issue: "USER LOV IASM11SHIP EDIT USER LOV SHOULD SHOW THE NICKNAME ATTRIBUTE." However, the patch is mutually exclusive with the latest CPU's and there's no plan to merge the pacthes given the dwindling support for 9.0.4.1. So that patch is pretty much worthless.
    I've been told that this patch is included in newer portal versions, so the real solution is an upgrade.
    Trenton

  • Record File in Window Server with RFC to File Interface

    Hi ALL,
    I´m with problem to record files in Windows Server through RFC to File Interface.
    Tried to record in my local machine (C:TEMP), without success.
    Can someone help me?
    Tks.
    Rodrigo

    Then Pooja,
    It don´t message with error.
    In SXI_MONITOR display with sucess but not record file in windows directory...
    Tks

  • Read the file on application server and Z  table as Link in ALV report.

    Hi ,
    I need some suggession on following requirement.
    I need to develop an ALV report where, I have to display 6 column. Four rows are kind of data which i am getting from some tables. But other two column are link to Excel files. So following are the two cases
    Case 1: One of these column has a link, and when you select this link , an Excel file gets open and this Excel file is stored in Application server.
    Case 2: The other column, will have a link and after selecting the link, an Excel file gets open but this time the Excel file is coming from a Z table( Stored as File name..file type and File content).
    Please give some light on these two cases.
    Regards
    PG

    Hi PG,
    If I understood you have to handle some different links.
    Well,
    you can try to do this:
    1- when you fill the fieldcat structure you have to add --> fieldcat-hotspot = 'X', for each column you want to handle like hotspot.
    2- manage the method hotspot_click of class cl_event_receiver where you can handle your different excel files.
    Let me know,
    bye
    Alessandro

  • Problem  in reading file from application server

    while reading the file from application server i am succesful in reading from dataset but the program gets terminated giving a runtime error "CONVT_CODEPAGE".
    the code written is as below :
    open dataset d1 for input in text mode encoding default.
    IF sy-subrc NE 0.
    EXIT.
    ENDIF.
    do.
                    Read dataset d1 into btab.
         if sy-subrc <> 0.
         exit.
                   else.
                   condense btab NO-GAPS.
                   wtt_text-text1 = btab-wa+0(10).
                   wtt_text-text2 = btab-wa+10(1).
                   wtt_text-text3 = btab-wa+11(3).
                  append wtt_text.
                  clear wtt_text.
                  wt_counter = wt_counter + 1.
                  ENDIF.
    enddo.
    write : /10 ' number of records :'.
    write :  wt_counter.
    kindly help me asap.
    regards,
    rachu.

    If I am not wrong you are working on a Unicode enabled system. That is why this error is coming.
    Look at the link below, where the solution is provided.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/79/c554dcb3dc11d5993800508b6b8b11/content.htm
    open dataset DSN in text mode for output encoding utf-8.
    Regards,
    Ravi
    Note - Please close the thread by selecting PROBLEM SOLVED against the answer which helped your most, if the issue is resolved.

  • Reading XML File from application server

    Hi experts,
    My aim is to read a XML file from application server and extract the relevant data from it and process further.
    When I am trying to read a XML file from application server it is reading success fully but the problem is that its not reading the last root structure of XML file why is so happening can any body help me?
    I am using the following code:
    TYPES: BEGIN OF xml_line,
    text(256) type x,
    END OF xml_line.
    DATA: e_file LIKE rlgrap-filename VALUE  'applcatin server path'
    OPEN DATASET e_file FOR INPUT IN BINARY MODE.
    IF sy-subrc EQ 0.
      DO.
        READ DATASET e_file INTO wa_item1-text.
        IF sy-subrc EQ 0.
          APPEND wa_item1 TO gt_item1 .
          CLEAR wa_item1.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
    ENDIF.
    CLOSE DATASET e_file.
    after this i am passing this internal table to "cl_ixml" class to extract the data
    but it returning the itab with required value except the last record.
    The stream reading the file it self is i thought in complete thats why it is not converting the all values.
    Please  help me...
    Thanks a ton in advance.

    Hi,
    1 Copy Report BCCIIXMLT1
    2 (you can change the way of filling internal table xml_table if necessary)
    3 you don't need the part between
    *-- render the DOM back into an output stream/internal table
    and
    *-- print the whole DOM tree as a list...
    Comment it out or simply delete it
    4 Rename form print_node to your liking e.g. process_node
    5 In your new form you need three extra variables:
    data: attribs type ref to IF_IXML_NAMED_NODE_MAP,
          attrib_node type ref to IF_IXML_NODE,
          attrib_value type string.
    6 After the lines:
    when if_ixml_node=>co_node_element.
      string = pNode->get_name( ).
    Insert:
    attribs = pNode->get_attributes( ).
    clear attrib_value.
    case string.
      when ''. "put your XML tag name here
        attrib_node = attribs->get_named_item(name = '' ). "put your XML attribute name here
        attrib_value = attrib_node->get_value( ).
    You can also refer link,
    /people/r.eijpe/blog/2005/11/21/xml-dom-processing-in-abap-part-ii--convert-an-xml-file-into-an-abap-table-using-sap-dom-approach
    thanks & regards
    shreemohan

  • Upload 1gb file from application server to PSA

    Hi,
    The following is the requirement my client has,
    1) there will be a 1gb file on application server
    2) pick up the file, and validate if the number of records are equal to number provided in the footer, if they dont match, reject the file
    3) then validate the first field, employees number, with a database table
    if the employee exisits insert this file in PSA ( BW)
    else reject this file and proceed to next file.
    this file is a fixed length file, and not a CSV.
    can you please provide me with some hint or link or answers.
    Thanks
    ajay

    Hi,
    The following is the requirement my client has,
    there will be a 1gb file on application server pick up the file, and validate if the number of records are equal to number provided in the footer,  if they dont match, reject the file then validate the first field, employees number,
    with a database table if the employee exisits insert this file in PSA (
    BW) else reject this file and proceed to next file.
    this file is a fixed length file, and not a CSV.
    can you please provide me with some hint or link or
    answers.
    Thanks
    ajay
    for my above queries, i have an idea but need your help to solve.
    i want to read the file on application server ( for example 1st record to 100th record) and store it in the internal table 1, and again i want to read the same file on application server from 101th record to 200th record and store it in the internal table 2. and so on.
    can anyone help me to this, what is it that i should code for this?
    open data set
    read data set (any conditions???)
    close dataset.
    ill surely award points for all the replies.
    thankyou
    ajay

  • Importing Data From XLS File to SQL Server

    Dear All,
    I want to import the data from Excel(.xls) file to SQL Server (2008 R2). But due to some problem (may be data), an error is occurring when I am going to import using Import Data Wizard. I want the rows to ignore those are creating issues and to keep track
    of those records. That's why I need to process rows one by one. How can I do it? Any idea?
    Thanks & Regards,
    Anujit Karmakar
    Anujit Karmakar Sr. Software Engineer

    Whats the error? Have you mapped the source-destination data types  in column mappings?
    Below is a link to video to guide you through the Steps of Import/Export Wizard
    SSIS Wizard Video: http://www.youtube.com/watch?v=9Wmdhnx1niU
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other
    forum members can benefit from it 

Maybe you are looking for

  • Connecting PC to TV

    Envy Phoenix h-9  1350 Windows 8 Pro. Processor- Intel (R), core(TM) i7, [email protected] 64 bit, Ram 12.0GB Hi, I have an HDMI on my pc and also a HDMI connection on my 52 inch TV. I want to connect those two connections so I can watch movies on my

  • Why are my playlists on itunes and iphone in a different order?

    In itunes I have a playlist title "000" to keep it at the top of my playlists. It's where I dump new stuff I want to listen to.  However, on my iphone, that list shows up at the bottom. ***? I was hoping this would be addressed in iOS 6 but it was no

  • My hp4530 will not print after installing Yosemite

    After installing Yosemite my printer will not connect because it is not "found" by my macbook pro.  I re-installed the driver, but that hasn't worked.  What else can I do? I've restarted, unplugged . . . all the obvious things haven't been successful

  • What devise should I buy, an iPad, iMac or mac air?

    i use my macbook for my work and home.  It is getting old and outdated.  I constantly make notes on my iphone but would like something bigger for use to carry in my purse.  Should I replace it with an ipad mini and get an iMAC or Macbook air for work

  • Why the hand - always the hand?

    I had this problem with PSE2 on this PC, I downloaded the PSE7 trial (which I will purchase if this problem can be resolved), and now - the same issue has happened with PSE7 trial. PC is a nearly new higher performance Dell Vostro, XP Pro, should be