Re: import user list

From: JoeyDBA (JoeyDBA_at_yahoo.com)
Date: 07/22/04


Date: Thu, 22 Jul 2004 13:16:53 -0500

Have you thought about using bcp to copy out from sysxlogins. You can create
a view on the SQL7 server where you don't pull system accounts, such as
'sa'. Then bcp to copy in at your target server? You'd have to turn on the
'update to system tables' for the bcp in to work. Then you execute
sp_change_users_login to map the logins to database.

just a thought.

"Brian McCulloch" <brian.d.mcculloch@citicorp.com> wrote in message
news:236a01c4700c$a22811f0$a301280a@phx.gbl...
> Greetings, All.
>
> I'm importing a database from SQL 7 to 2000. The import
> fails partway through because I don't have all the users
> set up on the 2000 server. I don't see a way to import the
> users from 7. I can export them to a file, however. Is
> there a way to use that file to get them into the 2000
> server? I'm sure I could import the data and write code to
> use existing stored procedures but I'm hoping to avoid re-
> inventing the wheel as I'm fairly confident I'm not the
> only one who's run into this problem.
>
> Thanks,
>
> Brian.



Relevant Pages

  • Re: Whats the bcp (SQL Server) substitute in Oracle??
    ... secured UNIX server using the bcp utility of SQL Server. ... But now this database will be migrated to Oracle 10g. ... Flat File and Out File. ...
    (comp.databases.oracle.misc)
  • Whats the bcp (SQL Server) substitute in Oracle??
    ... secured UNIX server using the bcp utility of SQL Server. ... Flat File and Out File. ...
    (comp.databases.oracle.misc)
  • Re: BCP error 22001 - String data, right truncation
    ... application developers strip those types of garbage characters out before ... > Once I switched to native mode the problem went away. ... >> First be sure the table schema on the target server matches the one on ... >>>I am using bcp to copy a table from one sql server to another. ...
    (microsoft.public.sqlserver.tools)
  • Re: BCP Utility
    ... Why do you need Linked server for BCP? ... I have to bcp a large tableto linked server, ... > 1) Is there the way to bcp an entire database instead of only a table? ...
    (microsoft.public.sqlserver.programming)
  • Re: Whats the bcp (SQL Server) substitute in Oracle??
    ... secured UNIX server using the bcp utility of SQL Server. ... But now this database will be migrated to Oracle 10g. ... Flat File and Out File. ...
    (comp.databases.oracle.misc)