473,471 Members | 1,970 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Restricted Data Type Attribute Violation - hel-lo?

Access 97 SR 2 Front End
SQL Server 7.00.1063 Back End

When I attempt to relink the tables in my Access app. I am suddenly
getting this weird error message = "ODBC--Call Failed", followed by
"[Microsoft][ODBC SQL Server Driver]Restricted Data Type Attribute
Violation(#0)". This problem did not manifest last time I tried a few
weeks ago, and so far as I know there have been no software changes
such as Service Packs etc.

The error occurs when attempting to link a view. Here is the script
for the tables and the view siipl_DoesNotWork:

==================================

CREATE TABLE [dbo].[tblBOMEntries] (
[fldID] [int] IDENTITY (1, 1) NOT NULL ,
[fldCMMPartID] [int] NULL ,
[fldSIPartNo] [varchar] (20) NULL ,
[fldDescription] [varchar] (50) NULL ,
[fldQtyAssy] [int] NULL ,
[fldItemNo] [int] NULL ,
[fldOnIPL] [bit] NOT NULL ,
[fldRefDesig] [text] NULL ,
[fldParentID] [int] NULL ,
[fldBOMLevel] [int] NULL ,
[sys_ts] [timestamp] NULL ,
[fldObsDate] [varchar] (15) NULL ,
[fldEffDate] [varchar] (15) NULL ,
[fldItemRevNo] [int] NULL ,
[fldModNo] [varchar] (10) NULL ,
[fldNewBOMFlag] [smallint] NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[tblCMMIndex] (
[fldCMMPartID] [int] IDENTITY (1, 1) NOT NULL ,
[fldMainDescription] [varchar] (50) NULL ,
[fldSIPartNo] [varchar] (50) NULL ,
[fldBOMRevision] [varchar] (5) NULL ,
[fldBOMAttached] [bit] NOT NULL ,
[fldBOMDate] [datetime] NULL ,
[fldCMMID] [int] NULL ,
[sys_ts] [timestamp] NULL ,
[fldLink] [int] NULL ,
[fldNewBOMRevision] [varchar] (5) NULL ,
[fldNewBOMAttached] [bit] NOT NULL ,
[fldNewBOMDate] [datetime] NULL ,
[fldSiteID] [int] NULL
) ON [PRIMARY]
GO

SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO

setuser N'siipl'
GO
CREATE VIEW siipl.DoesNotWork
AS
SELECT dbo.tblBOMEntries.*,
dbo.tblCMMIndex.fldCMMPartID AS Expr1
FROM dbo.tblCMMIndex INNER JOIN
dbo.tblBOMEntries ON
dbo.tblCMMIndex.fldCMMPartID = dbo.tblBOMEntries.fldCMMPartID

================================

However, if I create a new view based on exactly the same SQL as
DoesNotWork I don't get the same error message:

CREATE VIEW dbo.DoesWork
AS
SELECT dbo.tblBOMEntries.*, dbo.tblCMMIndex.fldCMMPartID AS Expr1
FROM dbo.tblCMMIndex INNER JOIN
dbo.tblBOMEntries ON
dbo.tblCMMIndex.fldCMMPartID = dbo.tblBOMEntries.fldCMMPartID
The only difference that I can deduce between siipl.DoesNotWork and
dbo.DoesWork is the ownership. Can that be the problem? If so, why?

TIA

Edward
Jul 20 '05 #1
1 11298
Edward:

Do you have to run a script on the server just to re-link a table?

I've automated table and view linking from A97 to SS2000 without
having to do this; I just created a TableDef object and set the
connection properties.

Maybe I'm missing something?

-Matt

On 16 Jul 2003 02:32:16 -0700, te********@hotmail.com (Edward) wrote:
When I attempt to relink the tables in my Access app.


Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Nicolas Keller | last post by:
Hi! I'm used to have Mozilla for testing my PHP sites when I'm coding. The site's nearly finished, now I've made a test with the Internet Exlporer... guess what... failed. The problem: I'm...
1
by: mp | last post by:
I just upgraded to Tomcat 4.1.29 and I am receiving the following error when I connect via ODBC to an oracle database: java.lang.ClassNotFoundException: Security Violation, attempt to use...
30
by: Sean R. Lynch | last post by:
I've been playing around with Zope's RestrictedPython, and I think I'm on the way to making the modifications necessary to create a capabilities-based restricted execution system. The idea is to...
0
by: Steven Bethard | last post by:
Does anyone know where the documentation for "restricted environments" is? I see this referred to in the documentation for eval, but not explained. Does eval use rexec? I thought that was...
3
by: John Dunlop | last post by:
(Note crosspost and follow-ups to ciwah.) Nicolas Keller wrote in thread "Differences in form handling btw Mozilla and IE?": > The problem: I'm using a form that submit's (POST) its data via...
4
by: Alex Sibilev | last post by:
Hello, I have a really weird problem I've been trying to solve it without any luck for the last couple of hours :( I'm writing a "conference board" application (quite similar to ASP.NET...
0
by: Torsten Munkelt | last post by:
Hi, I want to write an XML-schema saying that this document <root> <edge type="special"> <target type="one"/> </edge> <edge type="special"> <target type="one"/>
0
by: vinodpatel | last post by:
HI I am loading some files using bulk insert from store procedure. Iand I am also using sp_OA... to move files to other folder Some time while Executing this store procedure I am getting ERROR...
6
by: burkley | last post by:
In XML Schema, is it possible to derive a complex type via restriction and have the new derived type be in a different namespace than the original base type? I've banged on this for 2 days now...
0
by: Cassel | last post by:
I am unsure if i am posting in the right place or in the right way. Please bare with me, i am a total newbie in this forum. I am creating a script in Paintshop pro and everything went fine...
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
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
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,...
1
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.