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 3323976
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:21:59+00:00 2026-05-17T23:21:59+00:00

I have an sql server view which I’ve recently added a field to the

  • 0

I have an sql server view which I’ve recently added a field to the underlying table and the view itself. I can open the view just fine on the server, but when I try to run it in SQL management Studio on my PC, I get the following error:

>     Msg 7352, Level 16, State 1, Line 2
>     OLE DB provider 'SQLOLEDB' supplied inconsistent metadata. The
> object
> '[AVANTISERVER\NCL_MASTER].[Avanti].[dbo].[EmployeeFile]'
> was missing expected column 'Code'.

Code is not the column that was added, in fact the added column isn’t even on that table.

And Here is the view:

ALTER  VIEW [dbo].[WorkOrdersDetailed]
AS
   SELECT m.Serial, 
          m.Description, 
          m.Make, 
          m.Model, 
          m.Notes, 
          wo.WorkOrderID, 
          wo.DueDate, 
          dbo.DateOnly(wo.DueDate) AS [Due Date], 
          ISNULL(wo.AssignedTo, '') AS AssignedTo, 
          wo.WorkTypeID, 
          wo.Completed, 
          wo.DateCompleted, 
          wo.CompletedBy, 
          wo.Manager, 
          wo.FollowUpBy, 
          wo.FollowUpDate, 
          wt.Category, 
          wt.Description AS WorkType, 
          REPLACE(wt.Notes, '\r\n', '<br />') AS WorkTypeNotes, 
          wt.Duration, 
          CASE wt.Frequency 
            WHEN '0' THEN 'None' 
            WHEN '1' THEN 'Daily' 
            WHEN '7' THEN 'Weekly' 
            WHEN '28' THEN 'Monthly' 
            WHEN '56' THEN 'Bi-Monthly' 
            WHEN '84' THEN 'Quarterly' 
            WHEN '168' THEN 'Semi-Annually' 
            WHEN '365' THEN 'Annually' 
            ELSE 'None' 
          END AS Frequency, 
          wo.CompletionNotes, 
          wo.CreatedBy, 
          wo.DateCreated, 
          wt.Status, 
          CASE Priority 
            WHEN '1' THEN '1-Highest' 
            WHEN '2' THEN '2-High' 
            WHEN '3' THEN '3-Normal' 
            WHEN '4' THEN '4-Below Normal' 
            WHEN '5' THEN '5-Lowest'
            ELSE 'None' 
          END AS Priority, 
          CASE dbo.Departments.DepartmentName 
            WHEN 'Information Technology' THEN 'I.T.' 
            ELSE dbo.Departments.DepartmentName + ' - ' + dbo.CostCenter.CenterName
          END AS Location, 
          wo.ToolsReconciled, 
          wo.PartsReconciled, 
          wo.CleanReconciled, 
          wo.TurnedOverTo + ' - ' + dbo.AvantiEmployeeData.LongName AS TurnedOverTo, 
          wo.TempRepair
     FROM dbo.WorkType  wt
     JOIN dbo.WorkOrders wo ON wo.worktypeid = wo.worktypeid
     JOIN dbo.Machines m ON m.serial = wo.machineserial
     JOIN dbo.CostCenter cc ON cc.costcenterid = m.costcenter
LEFT JOIN dbo.Departments d ON d.departmentid = cc.department
LEFT JOIN dbo.AvantiEmployeeData aed ON aed.code = wo.turnedoverto

How can I correct this so the error does not happen?

  • 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-17T23:22:00+00:00Added an answer on May 17, 2026 at 11:22 pm

    Apparently this is a known issue. Make a view, then query the view. See link:

    http://support.microsoft.com/kb/255097

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

Sidebar

Related Questions

I have a view which if i try to edit, MS SQL Server Management
We have a SQL Server table containing Company Name, Address, and Contact name (among
We have a SQL server database. To manipulate the data non-programmatically, I can use
I have a SQL Server 2005 table like this: create table Taxonomy( CategoryId integer
I have an SQL Server DB with a table with these fields: A bit
I have within my Sql Server 2008 database a trigger which will run on
I have the following tables in a SQL Server 2008 db: tblItem , which
We have SQL Server 2005 running on Win2003/64, and we push it hard. We
We have SQL Server database setup. We are setting up a replication scenarios where
I have an SQL server database that I am querying and I only want

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.