Wrox Programmer Forums
|
BOOK: Professional ASP.NET 1.0, Special Edition/1.1
This is the forum to discuss the Wrox book Professional ASP.NET 1.1 by Alex Homer, Dave Sussman, Rob Howard, Brian Francis, Karli Watson, Richard Anderson; ISBN: 9780764558900
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 1.0, Special Edition/1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 26th, 2004, 12:02 PM
Registered User
 
Join Date: Oct 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default IBuyAdventure missing products.sql script

I am attempting to install the IBuyAdventure application. I discovered that products.sql is blank. Product.txt has the data to import but could you provide the SQL script to create the products table?

Thanks in advance.
 
Old September 6th, 2005, 05:07 AM
Registered User
 
Join Date: Sep 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Roomee Send a message via Yahoo to Roomee
Default

well , buddy I've written it today 06 Sept 2005.. Its a bit late for you but others do get some help...

Here is that : for SQL Server 2005 .... Generated Scripts.

************************************************** ************************************************** ****

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Accounts]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Accounts]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Orders]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Orders]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Products]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Products]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[ShoppingCarts]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[ShoppingCarts]
GO

CREATE TABLE [dbo].[Accounts] (
    [CustomerName] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
    [Password] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Orders] (
    [CustomerName] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
    [Ordered] [datetime] NULL ,
    [TotalValue] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[Products] (
    [ProductID] [int] IDENTITY (1, 1) NOT NULL ,
    [ProductCode] [nvarchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
    [ProductType] [nvarchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
    [ProductIntroductionDate] [smalldatetime] NULL ,
    [ProductName] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
    [ProductDescription] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
    [ProductSize] [varchar] (5) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
    [ProductImageURL] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
    [UnitPrice] [float] NULL ,
    [OnSale] [int] NULL ,
    [Rating] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[ShoppingCarts] (
    [ShoppingCartID] [int] IDENTITY (1, 1) NOT NULL ,
    [ProductCode] [nvarchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
    [ProductName] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
    [Description] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
    [UnitPrice] [float] NULL ,
    [Quantity] [int] NULL ,
    [CustomerName] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO

************************************************** **************************************************


Roomee Panhwar





Similar Threads
Thread Thread Starter Forum Replies Last Post
How Run .sql Script file in MS SQL Server 2000? aarkaycee SQL Server 2000 5 October 12th, 2009 05:43 AM
Missing .sql script mzindler19 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 7 April 19th, 2008 09:27 PM
Missing SQL Chap 6 Earl G. Hyde BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 May 15th, 2005 10:35 AM
AdsManager SQL Code Missing justin_dago BOOK: ASP.NET Website Programming Problem-Design-Solution 4 April 9th, 2004 03:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.