Unix Technical Forum

sql server migration issues

This is a discussion on sql server migration issues within the SQL Server forums, part of the Microsoft SQL Server category; --> we recentely tried migrating our databases from 2000 to sql server 2005.The migrated databases had some issues like collation ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-01-2008, 02:48 PM
83rish@gmail.com
 
Posts: n/a
Default sql server migration issues

we recentely tried migrating our databases from 2000 to sql server
2005.The migrated databases had some issues like collation issues,so
we created the scripts for each databases and then updated these
scripts to remove collation issues to make these compatible to SQL
server 2005.
But we have some permission issues for the users in case of these
created databases i.e. we are unable to see all the tables with
ssupdate user id ,or any other id .except the dbo id
which is the owner of this database,where we can see all the tables
and stored procedures.
iam fairly new at sql server .does anyone have any suggestions or
critcisms ?
you are welcome.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-01-2008, 02:48 PM
Erland Sommarskog
 
Posts: n/a
Default Re: sql server migration issues

(83rish@gmail.com) writes:
> we recentely tried migrating our databases from 2000 to sql server
> 2005.The migrated databases had some issues like collation issues,so
> we created the scripts for each databases and then updated these
> scripts to remove collation issues to make these compatible to SQL
> server 2005.


If you had collations issues in your migration, it was simply because
someone had installed SQL 2005 with a different server collation than
you had in SQL 2000. This is something that could happen if you move
a database between different instances of the same version of SQL Server.

> But we have some permission issues for the users in case of these
> created databases i.e. we are unable to see all the tables with
> ssupdate user id ,or any other id .except the dbo id
> which is the owner of this database,where we can see all the tables
> and stored procedures.
> iam fairly new at sql server .does anyone have any suggestions or


This too is a problem that is not unique to when moving databases between
versions, but only when moving databses from one server to another.

There two concepts to keep in mind here: logins and users. Logins are on
server level, users are on database level. A database user usually map
to a server login through a SID. If you move database between servers,
users derived from Windows logins will still map to the same login on
the server - provided that they are authorised to log in on both servers.

However, this does not happen to SQL logins, as they are local to the
server. So in this case, you will need to remap the database users to
the logins on the new sever. Assuming that you have SQL 2005 SP2, you
can use the ALTER USER command:

ALTER USER nisse WITH LOGIN = nisse

Note: this particular syntax is missing from Books Online, as it was added
in SP2.

--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:57 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com