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 7877803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:28:49+00:00 2026-06-03T03:28:49+00:00

We are using sqlcmd.exe to back up our database programatically. So while i am

  • 0

We are using sqlcmd.exe to back up our database programatically. So while i am checking the path of exe it is placed inside "C:\Program Files\Microsoft SQL Server\100\Tools\Binn\SQLCMD.EXE"

So my doubt is can the same sqlcmd.exe used to take db backup from sql server 2005 and 2008, or to take back up of 2005 whether we have to use different sqlcmd?

  • 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-03T03:28:50+00:00Added an answer on June 3, 2026 at 3:28 am

    The sqlcmd utility in SQL Server lets you run Transact-SQL statements and related commands at a command prompt, within a script file or in a Query Editor window in SQL Server Management Studio. It can be a handy tool, whether you want to run simple ad hoc queries or create script files to perform routine tasks or automate procedures. Although the utility supports a number of advanced options, you can start using sqlcmd with relative ease by entering simple commands at the Command Prompt window on any system where SQL Server is installed.

    Interactive mode in sqlcmd
    To quickly get started using sqlcmd you can enter interactive mode. Interactive mode lets you run Transact-SQL statements and sqlcmd commands directly, similar to entering statements in a Query Editor.

    Syntax to take backup:

    sqlcmd -S.\SQLExpress -Q"BACKUP DATABASE dbName  TO DISK = 'path'"
    

    The path you have mentioned in the post is correct. It can vary version to version of sql server.

    You can use the sqlcmd of sqlserver 2005 to take backup of sql server 2008.

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

Sidebar

Related Questions

How do you specify the the row terminator when outputting query results using sqlcmd?
I am using the following command in my MSBuild file to drop a database
Is there a good tutorial for Creating a database using msbuild ? jean paul
I run queries using SQLCMD utility via PHP and I wanted to know if
I am executing a bunch of SQL scripts using SQLCMD , and redirecting the
My company is currently using the sqlcmd 2005 for deployment and for some reason
How does one format wide listings vertically like in MySQL using the sqlcmd client?
I am using the sqlcmd tool with SQL Server to execute scripts. The scripts
I am using SQLserver 2008 R2 edition. I am trying to create a database
I am using invoke-sqlcmd to manage my databases, it works fine. I save the

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.