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

  • Home
  • SEARCH
  • 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 571991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:33:59+00:00 2026-05-13T13:33:59+00:00

This is a similar problem to this question When I deployed my dev app

  • 0

This is a similar problem to this question

When I deployed my dev app to the prod server I was getting an error:

System.Data.SqlClient.SqlException: Invalid object name ‘dbo.Login’.

The table attribute on the linq mapping looks like [Table(Name=”dbo.Login”)]

When I loaded the prod db schema into the vs2008 server explorer and refreshed my dbml entirely with that one, the application on prod works, but now the application on dev does not work.

The table attribute on the linq mapping now looks like [Table(Name=”prodDbUsername.Login”)]

On the dev server I now get

System.Data.SqlClient.SqlException: Invalid object name ‘prodDbUsername.Login’.

What is the best way to manage these different user prefixes between dev and prod?

  • 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-13T13:33:59+00:00Added an answer on May 13, 2026 at 1:33 pm

    It sounds like you have have identical tables named differently in your different environments. The simplest way to fix your problem is to use identical schema for all environments (the data can be different, but you are asking for all kinds of problems if the schema is not the same).

    EDIT: With your further clarification, the tables are being created either with a different owner or a within a different schema. See http://www.sqlteam.com/article/understanding-the-difference-between-owners-and-schemas-in-sql-server for further clarification on the difference.

    I would recommend that you try creating your tables with the following syntax:

    CREATE TABLE [dbo].[MY_TABLE_NAME]...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 512k
  • Answers 512k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Good question, and Simon's approach is certainly reasonable. Another idea… May 16, 2026 at 5:41 pm
  • Editorial Team
    Editorial Team added an answer Anytime there is no activity for a certain amount of… May 16, 2026 at 5:41 pm
  • Editorial Team
    Editorial Team added an answer Update I simply glossed over the fact you already have… May 16, 2026 at 5:41 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

A similar problem to mine is in this thread , but it doesn't use
I am getting a Fatal error: Using $this when not in object context in
I have a problem very similar to this one : CATransaction Not Animating I'm
A strange problem occurred yesterday on a production system which has been running fine
Developing a Struts 2 app I run in a following problem. I need to
We've deployed our rails app to EC2. In our setup, we have two proxies
I have tried many things, but I'm still not getting this to work. Here's
I am using SVN for source code management on a Classic ASP app that
I'm currently working on a multi-threaded application that would be deployed on arm and
The following small example shows my problem: template<class T> struct X { static void

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.