473,414 Members | 1,698 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,414 software developers and data experts.

How to rename field with link table in access 2003

Alias90
23
Hi Everybody!

I have a program combine database to SQL server 2005. I used
DOBC to connect to sql.I want to rename the field in sql database.I tried on testing code in local table in access. The code is OK, but do it in link table. The access is announce "Operation not supported on linked tables. (Error 3057) ". So how to solve it? Please help me!!!
Nov 26 '12 #1

✓ answered by zmbd

You can try to just go into the backend directly to rename the field. However, with an existing link... it might break the link in the frontend. Easy enough to fix by relinking.

As for being primary key or not... really doesn't matter. The rename will not, as far as I know, cascade thru the structure. You will have to edit all the queries, views, etc... that refer to the old field name.

As this deals more with the SQL Server than Access I'm moving this thread to the MS SQL Server forum where maybe someone that understands this a little better can help.

I'm also renaming the thread to reflect the question at hand: "MS Access 2003 Front End to rename Field in SQL Server Back End"

10 5349
zmbd
5,501 Expert Mod 4TB
Alias90:
You can not rename linked tables.
You have to kill the link and then either go into the backend directly or in this case I believe that you can do a pass-thru query to send the SQL to the backend to rename the table... sorry, I don't do enough with the "SQL server 2005" to confirm that action however, that how I've had to handle things with the other servers.

Biggest thing to keep in mind is that the rename will not cascade thru relationships nor in queries so you take a huge risk in renaming a table in that doing so might break your frontend application at best and at worst can cause your entire backend concept to implode.

In any case, you can then relink to the renamed table.
Nov 26 '12 #2
Alias90
23
huhu! (crying)
Can we change another solution?'Cause the field which i want to change isn't the primary key.In this case, renaming field will not cascade throught relationships.
Nov 26 '12 #3
zmbd
5,501 Expert Mod 4TB
You can try to just go into the backend directly to rename the field. However, with an existing link... it might break the link in the frontend. Easy enough to fix by relinking.

As for being primary key or not... really doesn't matter. The rename will not, as far as I know, cascade thru the structure. You will have to edit all the queries, views, etc... that refer to the old field name.

As this deals more with the SQL Server than Access I'm moving this thread to the MS SQL Server forum where maybe someone that understands this a little better can help.

I'm also renaming the thread to reflect the question at hand: "MS Access 2003 Front End to rename Field in SQL Server Back End"
Nov 26 '12 #4
NeoPa
32,556 Expert Mod 16PB
@Alias90 - May I ask why changing the name of the field on the SQL Server would be a problem?

The linked table in the FE should pick up the change automatically and you'd be good to go. What further problems are you dealing with?
Nov 26 '12 #5
zmbd
5,501 Expert Mod 4TB
NeoPa:
OP was trying to change the field in a linked table within Access front-end; this is a prohibited action.
Nov 26 '12 #6
NeoPa
32,556 Expert Mod 16PB
I don't believe so Z.
Alias90:
I want to rename the field in sql database.I tried on testing code in local table in access. The code is OK, but do it in link table.
I read that to mean the intention was to rename the source field but the code tried to rename the linked field instead. This triggered an error (naturally enough).
Nov 27 '12 #7
Alias90
23
Zmbd@!
Thank U so much!
Nov 27 '12 #8
NeoPa
32,556 Expert Mod 16PB
@Alias90:
There are outstanding questions posted for you (See post #5 below). Even when you get answers you're happy with it really isn't a good idea to ignore anyone who has shown an interest in your problem (or any other posts really).
Nov 27 '12 #9
Alias90
23
Neopa@!
'Cause our sql database has table A(A1,A2,A3,date) . my colleagues used to create the name field is "date". .But it's same key "date" in Access (We haven't permission rename field in sql).So when i edit the code, i used "insert into " structure, the Access is informed " systax error ".After, I coded( rename field "date" by "date1"),it run well . However, this is link table,the code cann't run in link table.That why i want to connect to sql database to rename field. My Eng isn't good.I hope everybody can understand my comment
Nov 27 '12 #10
NeoPa
32,556 Expert Mod 16PB
The English is a bit of a problem, but let me say what I understand from that and you can tell me if I'm wrong.

NeoPa:
May I ask why changing the name of the field on the SQL Server would be a problem?
It wouldn't. That seems to be the required solution.

NeoPa:
What further problems are you dealing with?
None. All good from post #4.

In view of this understanding I will set Best Answer for you.
Nov 27 '12 #11

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

Similar topics

1
by: tabonni | last post by:
Hi All I connected MS Exchange Server to MS Access database using Access link table function. I can open the database table and see the fields and data inside the link table. However, the table...
1
by: Joe | last post by:
I have a table with a student id and course id. I would like to make both fields the primary key since a student can have multiple course ids but I do not want duplicate records. How would I go...
2
by: Kevin | last post by:
I'm thinking of moving data from Excel to Access to get around Excel's 1024-character limit on text-wrapping, and just learned that unless you do something with VB, text field-type in Access 2003...
1
by: Olaf Rabbachin | last post by:
Hi folks, I'm looking for a way of retrieving the default-value of a table's field within an Access 2003 MDB. Any hints on how to accomplish this from ASP.Net? Thanks, Olaf -- My .02:...
3
by: stephenf33 | last post by:
Hi All I was wondering if anyone knew how to or has developed an access database that could record exam scores and then copy information onto another form as a league table, showing the highest...
2
by: RKSpangler | last post by:
Greetings: Is there any way to determine the maximum width of all data elements in a particular column in a table? Sorting a column won't do it, of course, since it will use a collating...
1
by: junis | last post by:
Dear Experts.. i need create table with identiry field .. if i use GUI ..i just click and choose autonumber as type ... but i try with SQL Stement : "Create Table Test (id autonumber, Desc...
5
by: Jakob32 | last post by:
Hi I'm trying to link information from a query in another Access database to my own Access database using this code (which have worked fine for me earlier). SELECT * FROM MinHL IN...
5
by: Bugran | last post by:
I am trying to copy a textbox field on a form (which basically contains the body of a letter) into a memo field in a table (Access 2003) for later printing later. Of course Access queries/SQL will...
2
by: lwannwayoo | last post by:
Hi Everybody! I have a database in Microsoft Access 2003 and I want to insert image in my Table Field. How can I don it??. I use OLE type but when i insert image to that field only the word...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.