Creating a database in SQL Server using an SQL Scripthttp://forums.asp.net/t/1267699.aspx/1?Creating+a+database+in+SQL+Server+using+an+SQL+ScriptThu, 29 May 2008 05:07:33 -040012676992386803http://forums.asp.net/p/1267699/2386803.aspx/1?Creating+a+database+in+SQL+Server+using+an+SQL+ScriptCreating a database in SQL Server using an SQL Script <p>Hi,</p> <p>I am trying to create the &quot;Personal&quot; database in my SQL server using the SQL script (Personal.sql) that is provided with the starter kit.&nbsp; Does anyone know how I can run this script to create the database? Do I do it from the command line? If so how do I do this and can I use windows authentication to connect to the server?</p> <p>Many thanks in advance,</p> <p>Trevor Keast</p> 2008-05-29T00:14:46-04:002387111http://forums.asp.net/p/1267699/2387111.aspx/1?Re+Creating+a+database+in+SQL+Server+using+an+SQL+ScriptRe: Creating a database in SQL Server using an SQL Script <p>Hi,</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;We can run the scripts in two ways.</p> <p>1. Open your Sql client , if it is sql server 2005 then sql management studio Run--&gt;sqlwb,Sql server 2000 then isqlw. Login to your database server using either sql authentication or windows authentications what ever you want. if you are having create database script in your personal.sql then , just copy the script file content and paste in query window and run it,</p> <p>it will create the personal database.</p> <p>2. The Alternate way is Running from comman line ,you need to&nbsp;run OSQL command for achieving this one. </p> <p>the OSQL synatax is </p> <p>OSQL -U &lt;user name&gt; -P&nbsp;&lt;Password&gt; -S&nbsp;&lt;SQl Server Name&gt; -i&nbsp; &lt;Script File Path&gt;</p> <p>&nbsp;</p> 2008-05-29T05:07:33-04:00