You are here: Re: Newbie: How to create a database from script? « MsSQL Server « IT news, forums, messages
Re: Newbie: How to create a database from script?

Posted by Jozef on 11/16/05 09:37

Thanks Jens, you ROCK! It worked fine. I know it was a silly problem, but
I couldn't find exactly what I was looking for in the help file.

David, I was just looking for the "tool" to run the script in (and the
additional code that Jens provided to specify the database). The QA was the
answer.

Thanks again!

"Jens" <Jens@sqlserver2005.de> wrote in message
news:1132039143.720269.61390@g49g2000cwa.googlegroups.com...
> Hi Joseph,
>
>
>
> You have to add something like
>
> USE NameofthedatabaseWhereyouwanttodeploythescript
> GO
> <YourScript>
>
> You can then load this within query analyzer and execute it. if you
> dont have the QA just execute the script with the OSQL commandline
> function like this:
>
> OSQL -S<YourServernameHere> -E -i<PathandNameoftheInputscript>
>
> HTH, Jens Suessmeyer.
>

 

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

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