473,396 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Removing an index unique key

I have a table which has an index unique key.

However the Access DB is installed in a PC which I have no access and its operated by a user with no Access knowledge.

So I need to create a script will help me remove the index key by someone with no knowledge of Aceess Database.

Ideally will be a script which can be executed by double clicking on a file and will make the appropriate changes in the Access DB.

Thanks in advance.
Jan 8 '08 #1
3 2383
Rabbit
12,516 Expert Mod 8TB
Why would you need to remove a primary key? They are there to prevent duplicates. And for relationships.
Jan 8 '08 #2
jaxjagfan
254 Expert 100+
Do you actually need to remove the index? Are you using the data exported for another process and just dont need the index column? I know you said the User doesn't know anything about Access but someone set that user up with Access to support some sort of business process (I assume). Deleting the primary key could cause any queries and/or functions to stop working and (As Stated) allow duplicates.

BTW - What you are looking for is a VBS script but even that will not modify a Jet (Access) data structure.

What sort of process are you trying to accomplish? If possible give us some details. I am sure with all of the processes all of the members here have been faced with that we can provide a viable solution.
Jan 8 '08 #3
Ok I need to be more clear.

Its not the actually primary key of the table. Was added later as a unique key due to client requirement to stop the user insert new records which will have the same date.

So I went into the database and I crated an index key type unique and added the date field. Now the process has change and they want me to remove that restriction. However this applications has been sent to 3000+ users and I can not ask them every single one go and change there database by themselves.

So I need a kind of script who will remove the additional unique key from the index so they can click on the file and execute the change on the access database.

Maybe do not need to delete the index just need to alter it from unique key to something else.
Jan 10 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: June Moore | last post by:
Hi, I would like to add a unique index that consists of two fields in a table. e.g. tbl_A (field1,field2) -- field1 & field2 Indexed and combination must be Unique. Can anyone tell me the...
5
by: Kamil | last post by:
Hello What should I use for better perfomance since unique constraint always use index ? Thanks Kamil
4
by: Drew | last post by:
I have a permission tracking app that I am working on, and I have made the insert page for it. I am having issues on how to prevent duplicates from getting entered. Currently the interface for...
5
by: aj | last post by:
DB2 WSE 8.1 FP5 Red Hat AS 2.1 What is the difference between adding a unique constraint like: ALTER TABLE <SCHEMA>.<TABLE> ADD CONSTRAINT CC1131378283225 UNIQUE ( <COL1>) ; and adding a...
10
by: Laurence | last post by:
Hi there, How to differentiate between unique constraint and unique index? These are very similar but I cannot differentiate them? Could someone give me a hand? Thanks in advance
7
by: vsgdp | last post by:
I have a container of pointers. It is possible for two pointers to point to the same element. I want to remove duplicates. I am open to which container is best for this. I thought of using...
5
by: Phill W. | last post by:
(VB'2003) What's the correct way to remove multiple, selected items from a ListView control (say, from a ContextMenu)? I ask because I'm getting a very annoying ArgumentOutOfRangeException...
3
by: vj_dba | last post by:
Hi Group, I have a Primary key in my table. It's clear Primary key wont allow duplicates, this primary key creates one index for retrival. Suppose if my table is having a Unique index also....
6
by: Alvin SIU | last post by:
Hi all, I have a table in Db2 v8 like this: Team Name Role ------ -------- --------------------- A Superman Leader A Batman Member A WonderWoman Member B ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.