PC Review


Reply
Thread Tools Rate Thread

changing column to autonumber

 
 
Konrad
Guest
Posts: n/a
 
      19th Jul 2003
Hi

How to change programatically column
from primary key to
autonumber?

Thanks
Konrad


 
Reply With Quote
 
 
 
 
Stephen Muecke
Guest
Posts: n/a
 
      19th Jul 2003
Konrad,

Look at the AutoIncrement, AutoIncrementStep and AutoIncrementSeed
properties of DataColumn

Stephen

"Konrad" <(E-Mail Removed)> wrote in message
news:bfc3i0$6b8$(E-Mail Removed)...
> Hi
>
> How to change programatically column
> from primary key to
> autonumber?
>
> Thanks
> Konrad
>
>



 
Reply With Quote
 
Konrad
Guest
Posts: n/a
 
      20th Jul 2003
What about changing column to autonumber
in existing database.

"Stephen Muecke" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Konrad,
>
> Look at the AutoIncrement, AutoIncrementStep and AutoIncrementSeed
> properties of DataColumn
>
> Stephen
>
> "Konrad" <(E-Mail Removed)> wrote in message
> news:bfc3i0$6b8$(E-Mail Removed)...
> > Hi
> >
> > How to change programatically column
> > from primary key to
> > autonumber?
> >
> > Thanks
> > Konrad
> >
> >

>
>



 
Reply With Quote
 
Stephen Muecke
Guest
Posts: n/a
 
      20th Jul 2003
Konrad,

Sorry, I assumed you meant a DataSet
If its a SQLServer database (or MSDE), you can use ALTER TABLE to make
changes to a table
Refer to SQL Server Books Online for help on this

Stephen


"Konrad" <(E-Mail Removed)> wrote in message
news:bfd5fj$ark$(E-Mail Removed)...
> What about changing column to autonumber
> in existing database.
>
> "Stephen Muecke" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Konrad,
> >
> > Look at the AutoIncrement, AutoIncrementStep and AutoIncrementSeed
> > properties of DataColumn
> >
> > Stephen
> >
> > "Konrad" <(E-Mail Removed)> wrote in message
> > news:bfc3i0$6b8$(E-Mail Removed)...
> > > Hi
> > >
> > > How to change programatically column
> > > from primary key to
> > > autonumber?
> > >
> > > Thanks
> > > Konrad
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Konrad
Guest
Posts: n/a
 
      20th Jul 2003
Mainly I'am interested in Access database.
I read from sites that this is impossible.
Is it true?


"Stephen Muecke" <(E-Mail Removed)> wrote in message
news:et#(E-Mail Removed)...
> Konrad,
>
> Sorry, I assumed you meant a DataSet
> If its a SQLServer database (or MSDE), you can use ALTER TABLE to make
> changes to a table
> Refer to SQL Server Books Online for help on this
>
> Stephen
>
>
> "Konrad" <(E-Mail Removed)> wrote in message
> news:bfd5fj$ark$(E-Mail Removed)...
> > What about changing column to autonumber
> > in existing database.
> >
> > "Stephen Muecke" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > Konrad,
> > >
> > > Look at the AutoIncrement, AutoIncrementStep and AutoIncrementSeed
> > > properties of DataColumn
> > >
> > > Stephen
> > >
> > > "Konrad" <(E-Mail Removed)> wrote in message
> > > news:bfc3i0$6b8$(E-Mail Removed)...
> > > > Hi
> > > >
> > > > How to change programatically column
> > > > from primary key to
> > > > autonumber?
> > > >
> > > > Thanks
> > > > Konrad
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I Return a selected row without the Frist column (ID autonumber column) ?? David Eadie Microsoft ADO .NET 2 10th Apr 2005 09:13 AM
Changing the Value of an Autonumber =?Utf-8?B?U2FtbXlhNjY=?= Microsoft Access Getting Started 3 25th Feb 2005 03:15 PM
Changing Autonumber =?Utf-8?B?c21ib3lk?= Microsoft Access Forms 1 29th Dec 2004 03:31 AM
Changing Autonumber Aurora Microsoft Access Database Table Design 6 8th Jan 2004 07:33 PM
Changing primary key to autonumber Jan H. DeGiorgio Microsoft Access Database Table Design 3 31st Dec 2003 06:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:17 PM.