Newbie needs help



Hi,

I am using SQLEXPRESS running locally on my machine and am trying to create
a database (AdventureWorks) for an example that I am using. What complicates
this a bit is that this example is using NAnt. The local.properties.xml file
contains the following:

<?xml version="1.0"?>
<properties>
<property name="sqlToolsFolder" value="C:\Program Files\Microsoft SQL
Server\90\Tools\Binn"/>
<property name="osql.ConnectionString" value="-E"/>
<property name="initial.catalog" value="AdventureWorks"/>
<property name="config.ConnectionString" value="data
source=SQLEXPRESS;Integrated Security=SSPI;Initial
Catalog=${initial.catalog}"/> <property name="database.path"
value="C:\root\development\databases" />
<property name="osql.exe" value="${sqlToolsFolder}\osql.exe" />
</properties>

When I open the Enterprise Manager and run the script for attach.sql the
database is created fine.

when I run the "build builddb" I get the following error:

NAnt 0.85 (Build 0.85.2139.0; nightly; 11/9/2005)
Copyright (C) 2001-2005 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///C:/root/development/playground/adventureworks/avworks.build
Target framework: Microsoft .NET Framework 2.0
Target(s) specified: builddb

[echo] Loading local.properties.xml

builddb:


exec.sql.template:


convert.template:

[copy] Copying 1 file to
'C:\root\development\playground\adventureworks\sql
\attach.sql'.
[exec] Msg 1813, Level 16, State 2, Server OHBOCXX99RMRVK, Line 1
[exec] Could not open new database 'AdventureWorks'. CREATE DATABASE is
aborted.
[exec] Msg 602, Level 21, State 50, Server OHBOCXX99RMRVK, Line 1
[exec] Could not find row in sysindexes for database ID 13, object ID
1, in
dex ID 1.
[exec] Run DBCC CHECKTABLE on sysindexes.

BUILD FAILED

C:\root\development\playground\adventureworks\avworks.build(60,10):
External Program Failed: C:\Program Files\Microsoft SQL
Server\90\Tools\Binn\osq
l.exe (return code was 1)

Total time: 1.8 seconds.

When I installed SQLEXPRESS, I installed it using Windows Authentication and
I would think that Integrated Security would work. I'll bet I'm doing
something silly, but I've tried to figure it out with no luck.

thanks in advance!
Bill
.



Relevant Pages

  • Re: Got an Exception error - still
    ... it looks to me like you are trying to attach the adventureworks database which is made for sql2005 with sql2000, ... I tried using Enterprise Manager for SQL 2000. ...
    (microsoft.public.sqlserver.setup)
  • SQL 2005 SP1 Database Mirroring
    ... CREATE ENDPOINT Mirroring ... :CONNECT Principal ... ALTER DATABASE [AdventureWorks] SET RECOVERY FULL WITH NO_WAIT ...
    (microsoft.public.de.sqlserver)
  • Re: Newbie needs help
    ... Chances are they are using the AdventureWorks sample database which come ... Targetspecified: builddb ...
    (microsoft.public.sqlserver.security)
  • SQL 2005 Mirroring Problems, HELP
    ... I try to Mirror a Database, ... ALTER DATABASE [AdventureWorks] SET RECOVERY FULL WITH NO_WAIT ... but NOT on three diffrent SQL Server. ...
    (microsoft.public.sqlserver)
  • Re: Sql Server 2005 - Moving data folder
    ... Now I seem to be able to move the adventureworks database without issue. ... > I'm trying to move the data folder where the db's are kept for SQL ...
    (microsoft.public.sqlserver.setup)