Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 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 February 4th, 2005, 09:44 AM
Authorized User
 
Join Date: Jun 2003
Location: Norfolk, , United Kingdom.
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Default change table structure

Hi

I need to be able to change/alter a table structure, more specifically, to remove the TEXTIMAGE ON [Primary], see scripted table below,

CREATE TABLE [dbo].[tblwSecondApplicant] (
    [SecondApplicantID] [int] IDENTITY (1, 1) NOT NULL ,
    [FirstName] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
    [LastName] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
    [Occupation] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
    [DateofBirth] [datetime] NULL ,
    [PassportNumber] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
    [Signature] [int] NULL ,
    [AddressID] [int] NULL ,
    [TelephoneID] [int] NULL ,
    [TitleID] [int] NULL ,
    [ShareHolderID] [int] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

How do I go about changing this?



Duncan
__________________
Duncan
 
Old March 3rd, 2005, 04:10 AM
Authorized User
 
Join Date: Feb 2005
Location: Pune, Maharashtra, India.
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The above ddl script is wrong you can't use TEXTIMAGE_ON when a table has no text, ntext, or image columns.

To remove the TEXTIMAGE_ON you just need to remove the text, ntext, or image data types columns from the table.




Cheers,
Pooja Falor




Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy whole structure of table in #temp table maulik77 SQL Server 2000 2 December 21st, 2006 02:42 AM
Copy table structure sagarbhargava SQL Server 2000 3 November 16th, 2006 03:16 AM
Splitting Table into more efficient structure MauiSpud Access 7 May 12th, 2006 07:35 AM
Printing of Table structure Vanaj SQL Server 2000 4 July 16th, 2004 01:26 AM
Table / DB Structure mtangorre SQL Server 2000 1 June 27th, 2003 01:32 AM





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