Hi,
If I will rename the logical file name in production will it create any issues.(sql server 2000).
I am getting the problem while restore the production database to other server. So,that I am planning to rename the logical name. The restoration is automated job for all the databases. That restoration script is working fine execpt for 3 databases because the logical names are different for these databases
Any advice.
Regards
Bharat
2 4508
Hi,
If I will rename the logical file name in production will it create any issues.(sql server 2000).
I am getting the problem while restore the production database to other server. So,that I am planning to rename the logical name. The restoration is automated job for all the databases. That restoration script is working fine execpt for 3 databases because the logical names are different for these databases
Any advice.
Regards
Bharat
can you explain your problem little bit more.
Hi,
Thanks 4 ur response.
I have taken the backups from production and copy to other server ,then I will execute this restoration automated script for all the databases.
My script is given below.
----
-----
set @logical_data_n ame =@db_name + '_' + 'data'
set @logial_log_nam e =@db_name + '_' + 'log'
---
---
RESTORE DATABASE @db_name
FROM DISK = @backup_filenam e
with replace,
MOVE @logical_data_n ame to @phsical_data_n ame
MOVE @logial_log_nam e TO @physical_ldf_f ilename
So,my script supports if the logicalname and physical names are same.
ex:: logical names are abc_data,abc_lo g
phsyical names are abc_data.mdf,ab c_log.ldf
But for 3 databases say dbname is test.
logical names are test1_data,test 1_log
phsyical names TEST_DATA.MDF,T EST_LOG.LDF
so, I am planning to rename the logical names to(test_data,te st_log) in production. My question is will it creates any issues.
Thanks
Bharat
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Venkat |
last post by:
Hi All,
Currently i guess rename and remove are not supported using fstream.
How do i rename or remove a file?
regards,
Venkat
|
by: dudufigueiredo |
last post by:
I have one folder containing mp3 files, the folder is:
C:\My Shared Folder\Rubber Soul
And the files are:
01 drive my car.mp3
02 norwegian wood.mp3
03 you won't see me.mp3
04 nowhere man.mp3
..
..
|
by: jez123456 |
last post by:
Hi, I’ve written a c# program to compact certain msaccess databases. The way
this works is to compact say C:\test1.mdb to C:\temp.mdb, then delete
C:\test1.mdb and rename C:\temp.mdb as C:\test1.mdb.
My problem occurs if there is already a C:\temp.mdb file. I don’t want to
just delete this, as it could have been created separately by a user.
In my code, I set a constant as follows:
private const string tempMdb = @"C:\temp.mdb";
|
by: Jay at SCA |
last post by:
I've been having the following issue with a windows
service I've created in vb.net (.net fw 1.1):
Basically, my service monitors a folder for the creation
of any new files of a particular type and renames them
using the "Rename(oldfilename,newfilename)" function.
Unfortunately, this function only seems to work if and
only if it is preceeded by a 'msgbox("<some text>")'.
ie. If I have the following the service sees the file
|
by: VB Programmer |
last post by:
My web hoster says that I have to rename my ASPNETDB.MDF SqlExpress db for
my 2.0 site to work. Is this accurate?
If so, how can I rename it without breaking anything on my site?
FYI: This is the error I'm getting after I publish my site to their
servers...
An attempt to attach an auto-named database for file
c:\hosting\myhost\member\myaccount\customerdomains\mysite\App_Data\ASPNETDB.MDF
failed. A database with the same name exists,...
| |
by: mantrid |
last post by:
Im trying to move a file but am having luck
my code is below. The temp and target paths are valid as they echo
correctly. but I cant get the copy() function to work, or the rename()
function
$target_path = $targetdir . basename($uploadedfile);
$temp_path = $tempdir. basename($uploadedfile);
echo "Target - ".$target_path." Temp - ".$temp_path."<br>";
|
by: jonathan184 |
last post by:
trying to rename filenames and extensions then add a header in line1 of each file
if the header existed in line 1 to go to the next file.
but i am getting error explciti errors
Here is my code I am using
#!/usr/bin/perl
user warnings;
|
by: blueboy |
last post by:
Hi,
I am planning to automate a nighty restore of a DB on another server
can someone point me in the right direction with the SQL script to
modify the logical file names to the correct path and not the ones
carried over with the DB??
i.e the database is to be renamed on the new server
any help much appreciated
|
by: achotto |
last post by:
hi, i try to upload a multiple image files. after that i will rename the files name.
the problem is when i upload a 2 or more same files name exp-goal.jpg, it will return "files already exist". ok this is my codes,
Set Upload = Server.CreateObject("Persits.Upload.1")
Count = Upload.Save("d:\cmsupload\cimg\")
for each File in upload.Files
'
'...sme operation here..
|
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,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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...
|
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...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |