Best Practice For Database Migration

Nov 17, 2006

Can you tell me what is the best practice for SQL database migration from
one DB server, to another one, new DB server. The old DB server will be
removed.

1. Backup from old and restore all databases on the new server
2. Export data and copy/import on a new server
3. Something else...

Thanks in advance for any good advice...

Regards

View 2 Replies


ADVERTISEMENT

New Database: Best Practice

Jan 24, 2007

Good Morning,
I work for a company that has sees alot of people come and go. The one thing I have noticed is that people use their admin accounts to log into SQL and create sp, views and databases.When the user leaves I am stuck with all these objects that are owned by somone no longer working for the company.
So my question to you guys is: What is the best practice to use in creating new objects?
Thanks for your guru-ness!

View 3 Replies View Related

Upgrading A Database (good Practice)

Mar 5, 2008

hi experts,
i have a postcode database that i need to update. the database cnotains of 6tables, the file i ahev has all the information at once, so i have to organize it and insert records into the appropriate tables.
this is the first time i'm doign this so i would like to know what the best way to do? do i need to create a stored procedure or a script, or may be something special and efficient that i do not know yet.
any advise will be very appreciated
thanks in advance

View 1 Replies View Related

Best Practice For Database Design Scenario

Sep 26, 2007

Hi,

I'm currently building a database that is going to have at least 6 different types of users accessing it via a web application.

A user will have different information collected about them. A few of of the users will have the same or similiar information collected about them.

I will be using role based authentication.

Now my query is this;

Scenario 1:
Would it be a good idea to keep all the users common information in one table. Ie. thier username,email,password,name. Then create a tblDetails for each type of user that would contain the different data. That way i can just check one table to verify thier login credentials.

OR
Scenario 2:
Would it be best to create a seperate table for each type of user and then log them in based on the credentials stored in each type of users respective table.

Hope this is clear. I'm leaning towards scenario 1, although I've used scenario 2 before. Just wondering which would be preferred.

Cheers
RobC

View 2 Replies View Related

Best Practice-working With SQL Express Database

Mar 13, 2006

Hi,

I am new to working with Database using .net C#. i will really appreciate if someone can point me to a link where i can find best practices of working with sql express database with my c# web service applications.

preferably i would like to have answers for:

- to have one db or to have one for testing and one real db?

- db security

- use windows authentication or db user authentication

etc.

View 1 Replies View Related

Best Practice For Upgrade Of Live Hosted Database?

Sep 11, 2007

I'm not sure this is the exact forum in which to ask this question, so if there is a more appropriate forum, please point me in that direction.

Basically I'm looking for advice and best practices for dealing with an upgrade plan for a hosted database. Here is the situation:
- Hosted software application (.Net)
- Uses SQL Server 2005
- When we upgrade the software application to a new version, there will be schema and data changes that need to be applied to the database
- For the software application, we have considered upgrading an offline machine and then switching old one instantaneously.
- For the database, I'm trying to figure out if we can keep everything live for upgrades, or if we should have a small amount of scheduled downtime to upgrade.

So we have identified 2 basic directions:
1) Keep the database live and apply the new script changes just after the application software is upgraded. This means zero downtime, but we'd have to design and test our application to be backward compatible, so that the new version of the application code could handle both the new schema design, and the old schema design. It seems that this option would add a huge amount of complexity because we would essentially be testing a 3rd app/schema combination.
2) Take a small amount of scheduled downtime and upgrade the application code and database all at once.

Obviously option #2 is the most desirable from a development process point of view, and #1 is the most desirable option from a business point of view (zero downtime).

So, I'm looking for some advice on this. Do most people take the whole system down? Are there 100% live systems that deal with this? Are there other approaches I'm not considering?

Any information would be greatly appreciated. Thanks.

View 4 Replies View Related

Date And Time Best Practice - Storage In SQL Server Database

Jul 27, 2007

With regards to time zones, daylight savings, and web users, is there a best practice for storing date & time information in a database?
For example, my databases are hosted in Time Zone A, but the web users are in Time Zone B.  Then, when I create a rss feed (which is displayed in GMT), I add a third time zone into the mix for the same data.  To date (no pun intended), I have been entering the date/time data in the time zone of the database server (Time Zone A), and then converting it using an application setting in the web.config file (i.e. TimeZoneBOffset = -1, GMTOffSet = -5).  In other words, each time I display a date I calculate what it should be using the time-zone offset in the web.config.  This also enables me to account for changes in day light savings, etc.
My concerns are three fold:  1. What if I move the database to another server and the time zone changes?  2. Right now the users are in only 1 time zone.  If I expand it to several then the offset will have to be by users, which is do-able, but something I haven't had experience with in the past.  3. It is likely more efficient to calculate the time zone once on input into the DB, rather than in each use like I'm doing now.  What time zone baseline for insert into the db should I use?
Thanks in advance for your help!
PS My application is primarily looking at 'smalldatetime' data - down to the 'minute' level.
 
 

View 6 Replies View Related

Best Practice For Add, Edit Records Into Database With Lots Of Fields ?

Feb 7, 2006

What's the best practice for adding / editing a record into a database with lots of fields ?I am not talking about the mechanics of it, as there are a lot of trivial examples using ADO.NET, stored procs, etc.
Deleting is easy, you just pass in (a few) primary key/keys to uniquely identify the record.
But in the real world when you have, say, a table with 100 fields! Do you code the INSERT sproc by hand,  with 100 parameters... then call it with your ADO.NET code ? sounds like a lot of work to me...
What about updating! That's even worst, sometimes you may need to update only 3 or 4 fields, but using sprocs you would have to pass the whole 100 parameters in again, and "update" the whole record (when in fact you are only changing 3 or 4 fields).
With the update i could write different sprocs targeting only the fields i wish to update, but that sounds like duplicating work, vs having one generic update proc.
Sometimes i just feel like bypassing sprocs and having inline sql as it would be less work... but i know it is untidy.. and more potential to be buggy.
So come on guys (and gals)... let's hear your thoughts on how you would handle the insert  / update scenarios when you have lots of fields ? Northwind examples are too trivial :-)
 

View 1 Replies View Related

Problem With Migration Sql 2000 Database To Sql 2005 Database

Mar 21, 2007

Hi all

I have a problem with the migration of databases from sql 2000 to sql 2005.

When i try to create the table or when i try to import the database, the below message is prompt:

Mens. 2782, Nivel 16, Estado 1, Línea 1

La instrucción DDL no está permitida.



Any ideas about this problem?

Thanks in advance

View 1 Replies View Related

SQL Database Migration - Please Help

Nov 20, 2007

We have an old client server application (vb / sql 2000) we have now converted that application to a web based asp.net / sql 2000. Though the db is same (sql 2000) for both applications, tables/columns has been changed during the development process. Now i need to migrate the data from our old db to this new db. Should this be done the "painful" way of checking each and every table its links/dependencies, columns manually or is there a tool which helps me migrate the data from one db to another (even though the tables/columns are different)Please Help.Thanks. 

View 3 Replies View Related

Database Migration

Apr 4, 2007

Hi,
How do i migrate my DataBase From sql serevr 2000 to 2005? Including the data. In 2000, it was easy through DTS (Copy SQL Server Objects Task: undefined). But don't any thing of that type in 2005(SSIS). Kindly Help...........


Thanks,
Rahul Jha

View 4 Replies View Related

Database Migration

Jan 22, 2008

HI Guys

I have a large MYSQL database that I need to migrate to MS-SQL Server 2005. Are there any good tools available to do this with ?

:eek:

View 14 Replies View Related

Database Migration

Jun 17, 2008

Hi All,

I have created new xyz database in one of our sql server 2005. Now I want to restore the YTR database from sql server 2000 server and I also wanted my SQL server 2000 logins/users and thier permissions remain same on YTR database.

Urgent help would be appreciable.

Regards,
Frozen

View 3 Replies View Related

Database Migration

Jan 17, 2006

Hi,I wonder wether a software or a device (or script) allowing to migrate datafrom an existant database to a new database by using correspondant ODBCdrivers existed.Thanks for your help.

View 2 Replies View Related

Database Migration

Nov 23, 2007



Can any one help me to migrate SQL Server 7.1 databse to SQL Server 2000.

Thanks in advance

View 1 Replies View Related

SQL Express Database Migration Help

Mar 21, 2007

Hi i have had a few problems taking a database backup .bak from an SQL Express install on one server i.e. SQLHOST/SQLExpress and moving it to a new machine in a different office i.e. MASTERSERVER/SQLExpress

Does anyone have any ideas on this?

Thanks

View 1 Replies View Related

SQL 7 To SQL 2000 Database Migration

Jul 20, 2005

Could someone help us with a problem we're having with regard tomoving several databases from SQL 7 to SQL 2000 on different serversin different domains. Our current SQL 7 server resides in one domain,and holds several databases. We now want to move these to a SQL 2000server in another domain.We're trying to use the Copy Database wizard on the SQL 2000 server(logged in as the local admin account), selecting the SQL 7 server asthe source, using 'sa' account on that server. The target is the SQL2000 server, again using 'sa' account. We're leaving everything elsewith regards to logins, jobs etc as default (i.e. taking everythingthat can be found), but when the steps execute, the last step thatbrings the database across fails with an error code -2147467259 -Failed to create the share OMWWIZI.Can anyone help us out with this error, or provide any suggestions asto what we can do?Any help would be greatly appreciated. Thanks.

View 2 Replies View Related

Migration To A Database Questions

Oct 2, 2007

Hello,

I'm new to databases but not to programming in general. I've got a few applications which currently sit on a single PC and read/update a particular XML file on the box. The applications are C# apps and use FileSystemWatchers and a mutex to keep watch for changes and update the XML file as needed. It has worked reasonable well for me.

Now, I need to run these applications on separate machines, so it seemed a good point to consider moving toward a database solution.

I'm hoping that there is a straightforward solution using SQL Server that will ensure that my applications alway have the current view of the world. I had run into instances with my existing setup where once in a while an application thought its DataSet was up to date, but wasn't.

Can someone point me in the right direction to implement the solution? I suspect that this is a really common need for lots of programs that are distributed. I'm still quite a newbie with databases and SQL Server, so I'm not even sure I'm using the right terms to describe things.

Thanks,
Matt

View 1 Replies View Related

Validation After Database Migration

Aug 31, 2015

I have migrated sybase database to sql server it seems successfully migrated, we required to validate data and datatype before going to production, how can this be achieved, kind of stored procedure which can be run both sides (sybase and sql) and validated in some way.

View 5 Replies View Related

SQL 2012 :: Database Migration Time

Sep 2, 2014

Usually when in the process of migration, how to calculate how much time it will take to migrate the database. If a database full backup is taking approximately 3 hr how much time it will take to restore that database.

Which process is better to migrate the SQL server from 2008 to 2014.

Database migration wizard or restoring the db using backup file?

Usually if you are new to the sql server and you don't have any idea about the OS how can you find how much time it will take for migration for each database and for all databases

View 2 Replies View Related

Need Help With A MySQL To MSSQL Database Migration...

May 1, 2007

Hello there..... im currently running a mysql database and i want to switch to a mssql database structure... creating the database is not a issue, but inserting values is a problem...

my forum has a lot of data and moving one row at a time is near insanity....

i tried this. ---




Code Snippet

INSERT INTO si_acl_groups ("group_id", "forum_id", "auth_option_id", "auth_role_id", "auth_setting") VALUES
(100, 0, 0, 14, 0),
(96, 0, 15, 0, 1);


but i only get this error. ---

Msg 102, Level 15, State 1, Line 2
Incorrect syntax near ','.

any suggestion...

i was able to dump the mysql database into a .sql file but it just gives the same error when i execute...

please help...

View 15 Replies View Related

SQL Server 2008 :: Table Migration From One Database To Another

Jul 7, 2015

I'm trying to migrate tables from one database to another. The tables in the source database (MY_SOURCE_DB) have a schema of "dbo". I want to create the tables in the target database (MY_TARGET_DB) with a schema of "xyz". I want to migrate all of the tables with "contract" in the table name:

select table_name from information_schema.tables
where table_name like '%contract%'

I want to migrate the full table definitions, table data and dependent objects. This needs to be done through a sql script as opposed to SSIS.

View 2 Replies View Related

SQL Server Test To Production Database Migration

Feb 25, 2006

Hi,



Is there any tool available to migrate the data from the SQL Server
test database to SQL Server production database. Data Migration should
be based on a condition which can be given as an input for a table by
the user. The dependant tables also should be migrated based on the
condition. i.e data subsetting based on the matching conditions.



Ex : Salary > 2000



The rows of the table which matches the condition alone need to be
migrated for the corresponding table. Also its dependant table's
rows should be migrated based on the given condition. Please help me
with a tool which can automate this.



Thanks,

Smitha

View 5 Replies View Related

Migration To Sql Server On Network For Access Database

Jul 26, 2007

hi,

I migrated the Northwind database using SQL Migration Assistant for Access. it worked fine and I was able to link the access forms to Local machine SQL Server 2005 and it worked fine.

Now i want to link the same Northwind access database to Another Server on the network.

When i try to run the wizard again, it won't migrate the user objects like tables to server, it will just create a database and that is it.
it will give me this error too.

No User objects were selected.

any idea,

Thanks,



Fahim

View 1 Replies View Related

Migration Assistant For Access Can't Find SQL Database?

Aug 6, 2007

I've installed SQL 2005 Express Addition which created a default database using Windows Authentication -- MachineName/SQLEXPRES. I want to convert some access databases to sql server in the migration assistant, however, when I try to connect the migration assistant to the default database I can't find the database in the drop down box wizard? I'm perplexed? Please shed some light or point me to some articles that will help. Thanks.

View 5 Replies View Related

Replication :: Table Migration From One Database To Another In Same Instance

Nov 26, 2015

I want to move table from one database to another database in same instance, table should migrated with complete data,with same column data type, all constraints like PK,FK unique key, check, identity, permissions has to be there.. which is the right way to achieve this.

View 7 Replies View Related

SQL 2012 :: Migration From Access Database Completely To Query For A Report?

Jan 15, 2015

we want to completely do away with access, on my report tool,which is crystal report, we want query to be our data source so , we do not want to use ssis packageor import from access to sql, how can l handle bringing all table and the query from Access together.

View 1 Replies View Related

SQL Server Test Database To SQL Server Production Database -- Data Migration

Feb 25, 2006

Hi,

Is there any tool available to migrate the data from the SQL Server test database to SQL Server production database. Data Migration should be based on a condition which can be given as an input for a table by the user. The dependant tables also should be migrated based on the given condition. i.e data subsetting based on the matching conditions.

Ex : Salary > 2000

The rows of the table which matches the condition alone need to be migrated for the corresponding table. Also its dependant table's rows should be migrated based on the given condition. Please help me with a tool which can automate this.

Thanks,
MiraJ

View 4 Replies View Related

Database Migration Plan - (mssql/msde To -&> Pgsql/mssql)

Feb 10, 2008

Hi,

i was planning to create a database migration tool ..
its a certain database of a DMS (document management system) to
another DMS (two different DMS)... from DMS using msde 2000 server .. and tranfer to a DMS using a postgre sql or mssql .. depends ..

they have different table structures and names . . :D

i was thing of what language shall i use.. or what language is the best to work on this kind of project :)

hoping for your kind help guys. thanks :)



br
Frozenice

View 1 Replies View Related

The T-SQL Practice

Jun 2, 2004

Hello, everyone:

Does any one know the good T-SQL practice topic web site? It is better to include solutions. Thanks a lot.

ZYT

View 2 Replies View Related

Best Practice For 'dbo'

Sep 3, 2006

When setting up databases for end users, what's the best practice regarding who's the dbo for each individual database - the user itself or a sysadmin?

Does it really have any importance at all who the owner (as defined by 'dbo') is ?

View 5 Replies View Related

What Is Better Practice

May 7, 2007

(Terms)
TermID, Term
1----- Abc
2----- Arcico
3----- Tunic

and
(RelatedTerms)
TermID, RelatedTermID
1 ------ 3
1------ 2
2------ 4


I want to get the following results

1.- a list of all the terms that start with A%
2.- a list of all the related terms … that belong to terms that start with A%


For number 1 - I am doing a select on Terms table with where term like A%.

For number 2 – I am joining both tables and then once again doing a where term like A%.


Would it be more efficient to take the first results and put them in a table variable, and then just do a join with the second table RelatedTerms.TermID = Terms .TermID

The number of records that generally comeback are between 500 to 1000 records that

What would you consider is a better approach ? or maybe there is an even better way ?

View 4 Replies View Related

Best Practice?

Aug 14, 2007

Wasn't sure where to ask this question.

Was wondering what everyone is doing in regards to server/db protection?

Do you run your DB's on independent servers?

Do you run your DB's on clustered servers?

Do you run your DB's on redundant haardware w/ a 3rd party
application for bit-to-bit data replication?

Is anyone placing the DB's on a SAN's?

We're at a crossroads, and looking for a good direction to ensure the DB's are up.

Any insight welcome.
Thanks,
Kerry

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved