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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:53:09+00:00 2026-06-09T21:53:09+00:00

When I deploy dbproj to SQL script and try to run it on another

  • 0

When I deploy dbproj to SQL script and try to run it on another computer I get an error:

The server name in the build script SOMENAME does not match the name of the target server ANOTHERNAME. Verify whether your database project settings are correct and whether your build script is up to date.

There are such lines generated in the script:

IF (@@servername != 'MYNAME')
BEGIN
    RAISERROR(N'The server name in the build script %s does not match the name of the target server %s. Verify whether your database project settings are correct and whether your build script is up to date.', 16, 127,N'MYNAME',@@servername) WITH NOWAIT
    RETURN
END

Is there any way to allow SQL deployment script to run on any server?

  • 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-06-09T21:53:11+00:00Added an answer on June 9, 2026 at 9:53 pm

    I found a solution: I just have to go to Project Properties -> Deploy -> Edit Deployment Configuration File and uncheck GenerateDeployStateChecks checkbox. After that any mention of my server name disappear in deployment script.

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

Sidebar

Related Questions

We deploy our .net web application in six server(each with one copy) to get
We use web deploy packages to create and deploy a SQL Server database, when
When I try to deploy my XAP to the Windows Phone, I get the
To deploy in GlassFish Server Open Source Edition 3.1.1 (build 12): Caused by: java.security.PrivilegedActionException:
I am trying to deploy my ASP.NET website with database (SQL Server 2008) on
I'm trying to deploy database project ( dbproj format, not new SSDT sqlproj )
I want to deploy 2 Symfony2 projects onto an EC2 server. In addition I
How to deploy rar/ear/war file to IBM Web Sphere Application Server 7.0 using maven
I have a standard sql server 2008 project which has been created using vs2010.
I want to deploy two Grails WAR under same JBoss server. One I use

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.