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

  • Home
  • SEARCH
  • 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 102241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:55:32+00:00 2026-05-11T00:55:32+00:00

I use RedGate SQL data compare and generated a .sql file, so I could

  • 0

I use RedGate SQL data compare and generated a .sql file, so I could run it on my local machine. But the problem is that the file is over 300mb, which means I can’t do copy and paste because the clipboard won’t be able to handle it, and when I try to open the file in SQL Server Management Studio I get an error about the file being too large.

Is there a way to run a large .sql file? The file basically contains data for two new tables.

  • 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. 2026-05-11T00:55:32+00:00Added an answer on May 11, 2026 at 12:55 am

    From the command prompt, start up sqlcmd:

    sqlcmd -S <server> -i C:\<your file here>.sql  

    Just replace <server> with the location of your SQL box and <your file here> with the name of your script. Don’t forget, if you’re using a SQL instance the syntax is:

    sqlcmd -S <server>\instance. 

    Here is the list of all arguments you can pass sqlcmd:

    Sqlcmd            [-U login id]          [-P password]   [-S server]            [-H hostname]          [-E trusted connection]   [-d use database name] [-l login timeout]     [-t query timeout]    [-h headers]           [-s colseparator]      [-w screen width]   [-a packetsize]        [-e echo input]        [-I Enable Quoted Identifiers]   [-c cmdend]            [-L[c] list servers[clean output]]   [-q 'cmdline query']   [-Q 'cmdline query' and exit]    [-m errorlevel]        [-V severitylevel]     [-W remove trailing spaces]   [-u unicode output]    [-r[0|1] msgs to stderr]   [-i inputfile]         [-o outputfile]        [-z new password]   [-f  | i:[,o:]] [-Z new password and exit]    [-k[1|2] remove[replace] control characters]   [-y variable length type display width]   [-Y fixed length type display width]   [-p[1] print statistics[colon format]]   [-R use client regional setting]   [-b On error batch abort]   [-v var = 'value'...]  [-A dedicated admin connection]   [-X[1] disable commands, startup script, environment variables [and exit]]   [-x disable variable substitution]   [-? show syntax summary]  
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 73k
  • Answers 73k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer What I tend to use the ThreadPool.QueueUserWorkItem to load the… May 11, 2026 at 2:04 pm
  • added an answer All entries in your list will contain a finite number… May 11, 2026 at 2:04 pm
  • added an answer I'd take the opposite approach: forget unpacking, stick to bit… May 11, 2026 at 2:04 pm

Related Questions

We've purchased a tool from Redgate called SQL Data Compare. I use it mainly
I use Firebug and the Mozilla JS console heavily, but every now and then
I use rsync to synchronize files to Windows clients in a server agnostic way.
I use emacs to edit my xml files (nxml-mode) and the files were generated
Does anyone know of a reasonably priced tool that will create DDL statements to
I'm looking for recommendations of a good, free tool for generating sample data for
Are there any programs that will allow you to follow a sql transaction through

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.