Z
Z
zaharoffff2016-04-23 21:08:49
SQL
zaharoffff, 2016-04-23 21:08:49

MS Acccess, SQL can't change data type, details in description?

05c632512d914b5fa98efe499e37a15e.pngb254c8d66582438bbb7491b6bd226e75.png7bcbe760ee7849af93a4b7fcc49ff4b1.png
There is a field schet_rest (account balances), it is text, there are 20,000 lines, now for the correctness of queries, you need to make the data type numeric or monetary. The problem is that it is not possible to change the data type. One of the versions in the help is that "file lock limit exceeded" MaxLocksPerFile . Tried to do as it is written in the help. (Find the MaxLocksPerFile setting in the Windows Registry Editor (regedit.exe) and increase its value. The MaxLocksPerFile setting is located in the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Access Connectivity Engine\Engines\ACE) did not help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2016-04-23
@zaharoffff

In my opinion, it's easier to create an additional field of type numeric or monetary. Transfer data from the old field with conversion. Delete the old field, rename the new one to the old one.
If you don't know how to write a query:

UPDATE таблица
SET <Новое поле> = CAST(<старое поле> as <тип данных>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question