Showing posts with label computer. Show all posts
Showing posts with label computer. Show all posts

Thursday, February 16, 2012

Best way to move SQL 6.5 to new hardware

Hi,
Can anyone tell me the best way to moving MS SQL 6.5 System to new
Hardware Box?
I already setup new SQL Server using different computer name, just want
to copy all data and security info to new one.
Many thanks in advance.
Regards,
Chris Lee
Chris,
there's a huge amount of things to take into account, but when I did it I
found this article very helpful:
http://www.microsoft.com/technet/pro...y/sqlugrd.mspx
HTH,
Paul Ibison
|||Dear Paul,
Thanks for your reply, but the article apply to SQL 6.5 to SQL 6.5 upgarde?
Regards,
Chris Lee
|||Hi,
Did you installed the SQL Server with the same directory structure as actual
(Old) SQL server. If yes then:-
1. Apply the same service pack in the new server (Probably sp5a + post
update 5a)
2. Stop the SQL server in old server and new server
3. Copy all the DAT (Including system databases) files from (
drive:\mssql\data) old server to
new server
4. Start SQL server in new server
5. Using ISQLw login to SQL Server and execute the below script
sp_dropserver 'old_server_name',
go
sp_addserver 'new_server_name', 'local'
6. Stop and Start the SQL Server service
Thanks
Hari
MCDBA
"Chris Lee" <c_h_r_i_s_l_e_e_@.h_o_t_m_a_i_l_._c_o_m> wrote in message
news:ca93g0$2pf8@.imsp212.netvigator.com...
> Hi,
> Can anyone tell me the best way to moving MS SQL 6.5 System to new
> Hardware Box?
> I already setup new SQL Server using different computer name, just want
> to copy all data and security info to new one.
> Many thanks in advance.
> Regards,
> Chris Lee
|||Apologies - just assumed you were upgrading. Please refer
to Hari's post then.
Regards,
Paul Ibison
|||Thanks Hari,
It's work!!! Great Thanks!
Regards,
Chris Lee

Best way to move SQL 6.5 to new hardware

Hi,
Can anyone tell me the best way to moving MS SQL 6.5 System to new
Hardware Box?
I already setup new SQL Server using different computer name, just want
to copy all data and security info to new one.
Many thanks in advance.
Regards,
Chris LeeChris,
there's a huge amount of things to take into account, but when I did it I
found this article very helpful:
http://www.microsoft.com/technet/pr...oy/sqlugrd.mspx
HTH,
Paul Ibison|||Dear Paul,
Thanks for your reply, but the article apply to SQL 6.5 to SQL 6.5 upgarde?
Regards,
Chris Lee|||Hi,
Did you installed the SQL Server with the same directory structure as actual
(Old) SQL server. If yes then:-
1. Apply the same service pack in the new server (Probably sp5a + post
update 5a)
2. Stop the SQL server in old server and new server
3. Copy all the DAT (Including system databases) files from (
drive:\mssql\data) old server to
new server
4. Start SQL server in new server
5. Using ISQLw login to SQL Server and execute the below script
sp_dropserver 'old_server_name',
go
sp_addserver 'new_server_name', 'local'
6. Stop and Start the SQL Server service
Thanks
Hari
MCDBA
"Chris Lee" <c_h_r_i_s_l_e_e_@.h_o_t_m_a_i_l_._c_o_m> wrote in message
news:ca93g0$2pf8@.imsp212.netvigator.com...
> Hi,
> Can anyone tell me the best way to moving MS SQL 6.5 System to new
> hardware Box?
> I already setup new SQL Server using different computer name, just want
> to copy all data and security info to new one.
> Many thanks in advance.
> Regards,
> Chris Lee|||Apologies - just assumed you were upgrading. Please refer
to Hari's post then.
Regards,
Paul Ibison|||Thanks Hari,
It's work!!! Great Thanks!
Regards,
Chris Lee

Best way to move SQL 6.5 to new hardware

Hi,
Can anyone tell me the best way to moving MS SQL 6.5 System to new
Hardware Box?
I already setup new SQL Server using different computer name, just want
to copy all data and security info to new one.
Many thanks in advance.
Regards,
Chris LeeChris,
there's a huge amount of things to take into account, but when I did it I
found this article very helpful:
http://www.microsoft.com/technet/prodtechnol/sql/2000/deploy/sqlugrd.mspx
HTH,
Paul Ibison|||Dear Paul,
Thanks for your reply, but the article apply to SQL 6.5 to SQL 6.5 upgarde?
Regards,
Chris Lee|||Hi,
Did you installed the SQL Server with the same directory structure as actual
(Old) SQL server. If yes then:-
1. Apply the same service pack in the new server (Probably sp5a + post
update 5a)
2. Stop the SQL server in old server and new server
3. Copy all the DAT (Including system databases) files from (
drive:\mssql\data) old server to
new server
4. Start SQL server in new server
5. Using ISQLw login to SQL Server and execute the below script
sp_dropserver 'old_server_name',
go
sp_addserver 'new_server_name', 'local'
6. Stop and Start the SQL Server service
Thanks
Hari
MCDBA
"Chris Lee" <c_h_r_i_s_l_e_e_@.h_o_t_m_a_i_l_._c_o_m> wrote in message
news:ca93g0$2pf8@.imsp212.netvigator.com...
> Hi,
> Can anyone tell me the best way to moving MS SQL 6.5 System to new
> Hardware Box?
> I already setup new SQL Server using different computer name, just want
> to copy all data and security info to new one.
> Many thanks in advance.
> Regards,
> Chris Lee|||Apologies - just assumed you were upgrading. Please refer
to Hari's post then.
Regards,
Paul Ibison|||Thanks Hari,
It's work!!! Great Thanks!
Regards,
Chris Lee

Best way to move CSK database from one computer to another

Hi,

Can someone suggest a good way to move the CSK database from ine instandc of MSDE200 to another on a different PC. I tried exporting using MS Web database administrator which moved the tables but stripped off the defaults and all stored proceedures.

Any better ideas?

Halsorry for my sloppy post...
that should read "one instance of MSDE2000 to another..."

Friday, February 10, 2012

best way to change servers for a live database?

I have a 24/7 live Sql Server 7 database. The server hardware is old. I
have a new computer for this Sql Server, and I will also be switching to SQL
Server 2000. What's the best way to transition from one to the other? I
can install everything on the 2nd server, and start using a different server
name, and I can tolerate 20 minutes of downtime when I finally switch from
one machine to the other. But I don't know the best way to get the
database from one machine to the new machine, in a fast way. Other times
I've moved databases, I've found problems with the user records not matching
to the same user IDs in the Master System tables. And stored procedures
that have "dbo" owners suddenly freak out because that dbo isn't a valid
user ID anymore, etc.Safest way of copying the data is backup and restore, if it will fit in =your 20 minute window.
To avoid problems of user mismatches make all the guids for the logins =the same on both systems - sp_grantlogin or ap-addlogin (can't remember =which) allowyou to force the internal id to ensure your second machine =is same as first.
dbo should always be a valid db user - can be fixed by =sp_changeuserslogin, this happens if the internal login ids are out of sync.
As an alternative to backup restore you could detach sp_detachdb, copy =the f iles and then sp_attachdb, but personally I always prefer the =backup./restore route.
Good Luck
Mike John
"AFN" <DELETEnewsgroupCAPSaccount@.yahoo.com> wrote in message =news:%vjLb.46123$C87.11549@.twister.socal.rr.com...
> I have a 24/7 live Sql Server 7 database. The server hardware is =old. I
> have a new computer for this Sql Server, and I will also be switching =to SQL
> Server 2000. What's the best way to transition from one to the =other? I
> can install everything on the 2nd server, and start using a different =server
> name, and I can tolerate 20 minutes of downtime when I finally switch =from
> one machine to the other. But I don't know the best way to get the
> database from one machine to the new machine, in a fast way. Other =times
> I've moved databases, I've found problems with the user records not =matching
> to the same user IDs in the Master System tables. And stored =procedures
> that have "dbo" owners suddenly freak out because that dbo isn't a =valid
> user ID anymore, etc.
> >|||You could use the Database Copy/Move wizard. It will detach the database
from SQL7, copy it to the destination server, re-attached the database on
the new machine and resolve all the logins. It's pretty slick.
Jim
"AFN" <DELETEnewsgroupCAPSaccount@.yahoo.com> wrote in message
news:%vjLb.46123$C87.11549@.twister.socal.rr.com...
> I have a 24/7 live Sql Server 7 database. The server hardware is old.
I
> have a new computer for this Sql Server, and I will also be switching to
SQL
> Server 2000. What's the best way to transition from one to the other?
I
> can install everything on the 2nd server, and start using a different
server
> name, and I can tolerate 20 minutes of downtime when I finally switch from
> one machine to the other. But I don't know the best way to get the
> database from one machine to the new machine, in a fast way. Other times
> I've moved databases, I've found problems with the user records not
matching
> to the same user IDs in the Master System tables. And stored procedures
> that have "dbo" owners suddenly freak out because that dbo isn't a valid
> user ID anymore, etc.
>|||Hi,
Try sp_help_revlogin to migrate the logins. This article has the details.
http://support.microsoft.com/default.aspx?kbid=246133
Backup and restore like you do for a standby server and with minimum
downtime can commission the new server of.
Sankar Renganathan DBA
SPAR Group Inc.,
sankariahr@.hotmail.com
1-248-568-7164
"Mike John" <Mike.John@.knowledgepool.spamtrap.com> wrote in message
news:e%23fRUti1DHA.2324@.TK2MSFTNGP09.phx.gbl...
Safest way of copying the data is backup and restore, if it will fit in your
20 minute window.
To avoid problems of user mismatches make all the guids for the logins the
same on both systems - sp_grantlogin or ap-addlogin (can't remember which)
allowyou to force the internal id to ensure your second machine is same as
first.
dbo should always be a valid db user - can be fixed by sp_changeuserslogin,
this happens if the internal login ids are out of
sync.
As an alternative to backup restore you could detach sp_detachdb, copy the f
iles and then sp_attachdb, but personally I always prefer the
backup./restore route.
Good Luck
Mike John
"AFN" <DELETEnewsgroupCAPSaccount@.yahoo.com> wrote in message
news:%vjLb.46123$C87.11549@.twister.socal.rr.com...
> I have a 24/7 live Sql Server 7 database. The server hardware is old.
I
> have a new computer for this Sql Server, and I will also be switching to
SQL
> Server 2000. What's the best way to transition from one to the other?
I
> can install everything on the 2nd server, and start using a different
server
> name, and I can tolerate 20 minutes of downtime when I finally switch from
> one machine to the other. But I don't know the best way to get the
> database from one machine to the new machine, in a fast way. Other times
> I've moved databases, I've found problems with the user records not
matching
> to the same user IDs in the Master System tables. And stored procedures
> that have "dbo" owners suddenly freak out because that dbo isn't a valid
> user ID anymore, etc.
>|||If you can copy the files within the window I like copy wizard or
attach/detach.
If the files are TOO big then backup the orig, restore it on the new..
(Users are still working on the orig.)
When the restore is complete, kick users OFF of orig.. Backup log on orig,
restore on new, and you should be good to go. (with the exception of
matching up logins, which can be done while users are still using the orig
database.)
--
Wayne Snyder, MCDBA, SQL Server MVP
Computer Education Services Corporation (CESC), Charlotte, NC
www.computeredservices.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"AFN" <DELETEnewsgroupCAPSaccount@.yahoo.com> wrote in message
news:%vjLb.46123$C87.11549@.twister.socal.rr.com...
> I have a 24/7 live Sql Server 7 database. The server hardware is old.
I
> have a new computer for this Sql Server, and I will also be switching to
SQL
> Server 2000. What's the best way to transition from one to the other?
I
> can install everything on the 2nd server, and start using a different
server
> name, and I can tolerate 20 minutes of downtime when I finally switch from
> one machine to the other. But I don't know the best way to get the
> database from one machine to the new machine, in a fast way. Other times
> I've moved databases, I've found problems with the user records not
matching
> to the same user IDs in the Master System tables. And stored procedures
> that have "dbo" owners suddenly freak out because that dbo isn't a valid
> user ID anymore, etc.
>

Best way for a SQL Server Service to Log On to the Local Computer

What's the recommended way for all of the SQL Server Services (database
engine, browser, SSIS...) to Log On to the Local Computer. Should it be the
Local System account or should I specify another account. Usually I set the
Log On during installation and never think about it again but I thought it
was worthwhile specifically asking the question.
Michael HocksteinIt is often a good idea to use a domain account with only the privledges it
needs to do what it has to an no more. Have a look at this site for lots of
security related info:
http://www.microsoft.com/sql/techno...ty/default.mspx
Andrew J. Kelly SQL MVP
"michael" <howlinghound@.nospam.nospam> wrote in message
news:9282F5DE-D413-472C-ACA0-5120BD884757@.microsoft.com...
> What's the recommended way for all of the SQL Server Services (database
> engine, browser, SSIS...) to Log On to the Local Computer. Should it be
> the
> Local System account or should I specify another account. Usually I set
> the
> Log On during installation and never think about it again but I thought it
> was worthwhile specifically asking the question.
>
> --
> Michael Hockstein|||Hi, Michael,
I agree with Andrew. In most cases, it is recommended that you use domain
user account for your SQL Server services since trusted security can be
easily established between computers. The domain users are also easily
managed by Active Directory on Domain Controller. As a server side service,
its startup service account should be stable since some operations like
backing up database, creating database, executing xp_cmdshell and SSIS
packages etc may need more permissions (sysadmin or local administrator).
It is convenient that you just add a domain user to your local
administrators group. When you log on your Windows with any login account,
your SQL Server services related jobs, stored procedures and packages
executions will not be affected.
Please refer to the "Server farm-level accounts" section of this article:
Plan for administrative and service accounts
http://technet2.microsoft.com/Offic...5b6-4a7a-8da0-2
d07639d04a11033.mspx?mfr=true
For now, could you please let us know if you need further assistance on
this issue? If you have any other questions or concerns, please feel free
to let us know. It is always our pleasure to be of assistance.
Sincerely yours,
Charles Wang
Microsoft Online Community Support