dbTalk Databases Forums  

Setting Attributes in SQL Back-End DB through VBA

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss Setting Attributes in SQL Back-End DB through VBA in the microsoft.public.sqlserver.clients forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Marcel Stoop
 
Posts: n/a

Default Setting Attributes in SQL Back-End DB through VBA - 02-05-2007 , 06:20 AM






Hi all

My Access Application uses a MS SQL 2000 Server as back-End DB.
Question:

Is it possible through VBA Code to set following attributes within the MS
SQL Server DB:
- Pimary Key
- Identity
- Identity Seed
- Identity Increment

If so, could you please give me an example of Code how to do this.

Purpose: with the many tables in the DB it is not that comfortable to set
those settings always manually, as soon as I have to create a new DB.

Thanks for the help.

Cheers
Marcel



Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.