You are here: Re: How to run a query file « MsSQL Server « IT news, forums, messages
Re: How to run a query file

Posted by Ed Murphy on 11/01/07 01:38

Roy Harvey (SQL Server MVP) wrote:

> On Wed, 31 Oct 2007 17:02:36 -0700, "mitchman10@gmail.com"
> <mitchman10@gmail.com> wrote:
>
>> I have a query file, test.sql, in the root of my C drive. It is
>> 400,000 lines worth of insert into statements and is so big i cannot
>> load in into management studio. How can I run this?
>
> Add a line with nothing but a GO every, oh say after every 100 INSERT
> commands. Then you could TRY to execute the file using the command
> line utilities OSQL or SQLCMD. I'm not sure if they will choke on a
> file that size as I've never had reason to test them in that way.

Failing that, split it up into multiple files (by whatever means you
like) and execute them individually.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация