473,657 Members | 3,022 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Changing the name in the ServerName column

Hi,

I'm in the process of moving a database from a server running Windows 2000 SP4
to a PC running XP SP2.
Basically, here's what I've managed to do so far:

Made a full backup of the database on the server and then
restored it onto the PC.

Both running MS SQL Server 2000 SP3; though the server has Standard edition
while PC has Personal edition since Standard edition prerequisite is at least
a Windows 2000 Server.

Next step in the list as advised by the vendor of the product
was to change the server name in the ServerName column in a couple of tables;
due to the name difference of the machines.

I've managed to change them in a couple of tables but not others with the
following pop-up error dialog box:

SQL Server Enterprise Manager

Another user has modified the contents of this table or view; the database
row you are modifying no longer exists in the database.
Database error:'[Microsoft][ODBC SQL Server Driver][SQL Server]UPDATE statement
conflicted with COLUMN REFERENCE contraint 'FK_ScaDESPlugi nRegs_ScaDESSer vers'.
The conflict occurred in database 'ScaSystemDB', table 'ScaDESPlugInRe gs',
column 'ServerName'.
[Microsoft][ODBC SQL Server Driver][SQL Server]The statement has been
terminated.'

I've searched the net but couldn't find a resolution to this.

Anyone able to help in deciphering as to way I'm getting the above error and
how to correctly go about renaming the ServerName column in tables.

Thanks in advance.

Regards,

Daniel
Jul 9 '08 #1
2 3149
On Thu, 10 Jul 2008 01:48:04 +0200 (CEST), Daniel Ngu
<da****@debian. invalidwrote:

The error message seems to indicate that you first have to update the
ServerName in table ScaDESServers, then in table ScaDESPluginReg s
(boy, I hope I don't have that backwards :-))

-Tom.

>Hi,

I'm in the process of moving a database from a server running Windows 2000 SP4
to a PC running XP SP2.
Basically, here's what I've managed to do so far:

Made a full backup of the database on the server and then
restored it onto the PC.

Both running MS SQL Server 2000 SP3; though the server has Standard edition
while PC has Personal edition since Standard edition prerequisite is at least
a Windows 2000 Server.

Next step in the list as advised by the vendor of the product
was to change the server name in the ServerName column in a couple of tables;
due to the name difference of the machines.

I've managed to change them in a couple of tables but not others with the
following pop-up error dialog box:

SQL Server Enterprise Manager

Another user has modified the contents of this table or view; the database
row you are modifying no longer exists in the database.
Database error:'[Microsoft][ODBC SQL Server Driver][SQL Server]UPDATE statement
conflicted with COLUMN REFERENCE contraint 'FK_ScaDESPlugi nRegs_ScaDESSer vers'.
The conflict occurred in database 'ScaSystemDB', table 'ScaDESPlugInRe gs',
column 'ServerName'.
[Microsoft][ODBC SQL Server Driver][SQL Server]The statement has been
terminated.'

I've searched the net but couldn't find a resolution to this.

Anyone able to help in deciphering as to way I'm getting the above error and
how to correctly go about renaming the ServerName column in tables.

Thanks in advance.

Regards,

Daniel
Jul 10 '08 #2
Daniel Ngu (da****@debian. invalid) writes:
Next step in the list as advised by the vendor of the product was to
change the server name in the ServerName column in a couple of tables;
due to the name difference of the machines.

I've managed to change them in a couple of tables but not others with the
following pop-up error dialog box:

SQL Server Enterprise Manager

Another user has modified the contents of this table or view; the database
row you are modifying no longer exists in the database.
Database error:'[Microsoft][ODBC SQL Server Driver][SQL Server]UPDATE
statement conflicted with COLUMN REFERENCE contraint
'FK_ScaDESPlugi nRegs_ScaDESSer vers'. The conflict occurred in database
'ScaSystemDB', table 'ScaDESPlugInRe gs', column 'ServerName'.
[Microsoft][ODBC SQL Server Driver][SQL Server]The statement has been
terminated.'
You probably need to do this with INSERT and DELETE. You should speak to
the vendor again, as apparently the advice you got was incomplete.
--
Erland Sommarskog, SQL Server MVP, es****@sommarsk og.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Jul 10 '08 #3

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

Similar topics

1
5011
by: steven virnig | last post by:
A server with SQL 2000 installed is moving to a new physical location. Our company standards mean that the name of the server and the IP address of the server will change also. This SQL instance name is the same as the server name. Will I have to uninstall and reinstall SQL Server (and recover the databases) when this move is made so that the instance name equals the server name? Is there a stored procedure that changes the instance...
4
20150
by: mokles | last post by:
Hi All, I am trying to change column name on an existing table. I am using SQL Server 7. As the table is quite big, it is taking quite long time to do it. By the way I could change the column name only through the Enterprize Manager. Is it possible to change the column name using SQL script? Why the change of column name will depend on the size of the table?
1
1966
by: RWC | last post by:
Hello, I have SQL Server 2000 Enterprise Edition, and I'd like to change the default port to something else (we'll use 2033 for this example). I've tried to connect from another computer on the same subnet using "ServerName:2033" as the server, but it doesn't connect. It will connect if I change the Server to use the default port and change the server to connect to on the client to "ServerName", but either I"m not referencing the new...
2
2503
by: Paolo Pignatelli | last post by:
I am trying to get an output/file like this (below) in an XML file (MyXmlFile.xml) (which I will use for a slide show) -- <gallery timer="3" order="sequential" fadetime="2" looping="yes" xpos="0" ypos="0"> <image path="images2/Test1.jpg" />
1
3248
by: Amos | last post by:
Can I add a column to the datagrid and also resize it? I add them like this: DataTableAddress.Columns.Add("Col1", typeof(string)); DataTableAddress.Columns.Add("Col2", typeof(string)); DataTableAddress.Columns.Add("Col3", typeof(string)); I'd like to add to resize them without using a datacolumn because there's over 30 columns and because the application is working well already (I don't know how the datacolumn additions will affect the...
3
1740
by: Adam Tibi | last post by:
Hi, Is there a way of getting the domain name of tghe currently executing site, I tried using this silly code: public static string GetDomainName() { string serverName = System.Web.HttpContext.Current.Request.ServerVariables.ToLower();
6
2114
by: Adam Tibi | last post by:
Hello, I want to get the right most name of the a domain name, for example: if the domain is www.myweb.com , I want to get myweb.com something.myweb.com --> myweb.com www.myweb.com.au --> myweb.com.au something.myweb.com.au --> myweb.com.au www.myweb.tv --> myweb.tv www.something.myweb.net --> myweb.net
5
2661
by: Hymer | last post by:
Hello, I have a small two-column table with three rows. The first column has a logo and the second column has the name of the organization. The logo's in the first column are too high. That is, they don't align horizontally with the organization name. I need to lower the logo's within the column. However, I don't know how to manipulate one column at a time. Everything I
2
2181
by: hmznzr | last post by:
i am using b.net 2005. i am generating a crystal report. but when i work in a different computer i have to set the location of the database of the report before i generate. is their any dynamic way to set my database location to the report.
0
8302
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8499
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8601
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7314
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5630
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2726
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 we have to send another system
2
1937
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.