Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2014
    Posts
    6

    Unanswered: Running a Stored Proc remotely

    Hey all!

    I've been trying to look for a solution to this but haven't really been successful.

    Basically, I have a stored procedure in SQL Server 2008 (the stored proc is actually stored there with a name) and I can run it with the 'exec storedproc_name insert_date' command (my stored proc needs a date to run).

    The stored proc just creates a temp table with some data (but we can ignore this bit).

    I only need a way to run this stored proc remotely (I dont care about getting the data, I just need to run it in the server).

    Is there any way of doing this? Preferably via a unix system? I just need a way to run the 'exec' command. Returning data etc. isn't needed.

    Any ideas?

    Thanks!

  2. #2
    Join Date
    Jan 2003
    Location
    Massachusetts
    Posts
    5,800
    Provided Answers: 11
    I believe there are ODBC packages for UNIX to access SQL Server. If not, then you may have to fall back on a Java program using JDBC.

  3. #3
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    FreeTDS is also an option. It can be installed using apt-get, or built from source code. There is also jTDS at SourceForge for Java.

    -PatP
    In theory, theory and practice are identical. In practice, theory and practice are unrelated.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •