Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3273336
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:55:16+00:00 2026-05-17T18:55:16+00:00

I have a cross reference table RolePrivilege that has FK to Role and Privilege

  • 0

I have a cross reference table RolePrivilege that has FK to Role and Privilege tables….basically Role can have many Privileges.

Hotfix located at
Microsoft hotfix

has already been applied.

Here is my code:

Public Sub InsertRolePrivilege(ByVal inrole As Role, ByVal inprivilege As Privilege)
        Dim r As Role = (From ro In DataConnect.dcGSFCommon.Roles Where ro.RoleId = inrole.RoleId).First

        Dim rolep As New RolePrivilege
        rolep.PrivilegeId = inprivilege.PrivilegeId
        rolep.CreatedBy = System.Threading.Thread.CurrentPrincipal.Identity.Name
        rolep.DateCreated = System.DateTime.Now()
        rolep.RolePrivilegeId = System.Guid.NewGuid()

        r.RolePrivileges.Add(rolep)

        DataConnect.dcGSFCommon.SubmitChanges()

    End Sub

On execution of the last line, I get the following error:
The target table ‘dbo.RolePrivilege’ of the DML statement cannot have any enabled triggers if the statement contains an OUTPUT clause without INTO clause.

The app is a windows app, with 2008 SQL server with updated patch, version 9.0.4035

Any help would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T18:55:17+00:00Added an answer on May 17, 2026 at 6:55 pm

    Presumably (since you didn’t say)

    1. There’s a trigger on the table.
    2. You can’t remove the trigger.

    If you examine the generated sql (set DataContext.Log to Console.Out ), you’ll see an output clause. The purpose of this clause is to Autosync properties on your instances with the database generated values.

    What you need to do is set the AutoSync property on each column to AutoSync.Never. You can do this through the linq to sql designer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a cross reference table that looks like this: id document_id subject_id 1
I Have Database that contains 4 tables TABLE TBLCARTITEM (CART_ID, ITEM_ID, PROMOTION_ID, many more
I have a cross reference table and need to find common values of one
I have a SampleDB that contains 3 tables. Table Employees (EmployeeID, EmployeeName) Table Projects
I have two simple tables in my database. A card table that contains Id,
I have a cross platform program that runs on Windows, Linux and Macintosh. My
I have some cross platform DNS client code that I use for doing end
I have a script that appends some rows to a table. One of the
I need to cross reference 2 tables. within tb1 is booking_ref, investor within tb2
We have started to use spring aop for cross cutting aspects of our application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.