Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8755645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:53:44+00:00 2026-06-13T13:53:44+00:00

newbie question here: I have FreeTDS working and querying a Microsoft SQL server 2008

  • 0

newbie question here: I have FreeTDS working and querying a Microsoft SQL server 2008 r2 db, from a mint linux vm, reading the inter-webs, mostly stackoverflow, it is mentioned that I should use sqsh also with FreeTDS, SQSH & FreeTDS, I don’t understand what sqsh, besides being sometype of cli I guess, adds as I can use FreeTDS to access the db.. Any info to clear this up would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T13:53:45+00:00Added an answer on June 13, 2026 at 1:53 pm

    I have used sqsh a lot in the past. It was really helpful.

    If you have used sybase/mSServer isql, you’ll know that it’s a real pain. There’s no real support for cmd-line editing and history. SQSH was originally created to provide a shell-like cmd-line environment for interfacing with your database. It very easy to use to extract data from a database and save to a file. You can then edit the file as needed, and use bcp or other to load data into new table.

    The SQSH shell supports Environment variables, file redirection (I don’t recall using input direction internallY, but being able to write

    select c1, c2, c3,c7, c120 from customer > customerFile
    

    was very handy.

    See the complete list of features at http://www.sqsh.org under the features link from the menu on the left.

    Commands 
    Variables 
    Redirection and Pipes 
    Aliasing 
    Command Substitution 
    Backgrounding & Job Control 
    SQL Batch History 
    Configurable Exit Status 
    Inter-Server BCP 
    Remote Procedure Calls 
    Semicolon "go" 
    Simple Scripting 
    Flow-of-Control  
    Functions  
    Multiple Display Styles 
    X Windows Support 
    Macro Pre-Processing 
    Miscellaneous 
    Commands
    

    Note that Flow-of-control allows to have 1 query that returns a multi-line result set, and use do, and while loop processing on each record. This also support if ... elif ..fi blocks. I don’t recall using those features that much, but I found the aliases and env vars, and redirection saved me hours.

    That said, I was a motivated user. The documentation will not spoon feed to you all of the answers, so some time will be required for experimentation, head-scratching and review.

    I don’t have any experience with TDS except to have read about it. Basically the question you need to answer is, am I shell command-line junky, and would I be willing to spend a little time to learn how to get cmd-line power in a text-based SQL client.

    IHTH.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is sort of SQL newbie question, I think, but here goes. I have
Extreme newbie question. I have my database (SQL Server) set up to cascade deletes
Just a quick newbie question here. I have a method that calculates a value
Newbie question here. I have a web form with a text area and naturally
SSRS newbie question here... I have a table where one column is varbinary(max) data.
currently i'm studying MySQL, sorry for my newbie question. Here my question I have
Newbie question here but for some reason I cant figure this out. I have
Newbie question here. I have a navigation bar with padding in all of my
Newbie question here: I'm using ANSI C on server to crunch numbers for a
Hi Sorry for this noob question but here goes...i have a working slidetoggle on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.