Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 1st, 2004, 09:58 AM
Registered User
 
Join Date: Jul 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Transferring Users in sqlserver

Hi,
 i am working on asp.net. i am using sql server 2000 as backend. in sqlserver i created a user 'all' for the windows user 'operator'. my machine name is 'samar' so the user name in sql server, for login name 'all', appears as 'samar\operator'. now the problem is that if i transfer my database to a different system (with different machine name, say 'comp'). the username does not appear as 'comp\operator'. even if i have a windows user 'operator' in 'comp' i could not find a way to create user with same user-name and login-name for sql server. can anyone help?

:samar
 
Old July 1st, 2004, 10:04 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Use SQL authentication not windows authentication. That's really the easiest solution.
 
Old July 3rd, 2004, 03:43 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

u can set ur Server name as . inseat of server name if u always use it in ur Local Server. I mean if its always ur local Server.
HTH.

Always:),
Hovik Melkomian.
 
Old July 5th, 2004, 01:46 AM
Registered User
 
Join Date: Jul 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
Thanks for ur attention to the message, but in my case it is not the local server only. I've to upload a website database of which need to be uploaded on webserver. For all other objects, e.g. database, tables, etc., I've generated sql script, but for winodws authenticated, sql server users, I can't generate an sql script untill I know the machine name of the server. The main point is that it is necessary to user windows authentication due to NTFS permissions facility for files.
  Can u please help me in this case. Is there any way, in sql server 2000 or asp.net, to find out the machine name of server?
Thanks,
Samar

:samar
 
Old July 6th, 2004, 02:45 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

if ur problem is just server name, save ur server names u use somewhere & use it whenever u want & need! u can also use it as a Dynamic Property.
planoie told the last & the best way indeed. why do u wanna use servers in diffrent instalation, I wonder why do u use diffrent instalation?!

Always:),
Hovik Melkomian.
 
Old July 6th, 2004, 04:03 AM
Registered User
 
Join Date: Jul 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

  I am developing a website on a system in my office. windows authentication is necessary bcoz i m using 'impersonation' in asp.net and i want a particular windows user to get the database permissions automatically, as soon as it logs in.
  one of the windows user is dbo. since i created users in my system manually, it caused no problems. but when this website will be uploaded on webserver, the database needs 'windows authenticated users' so that to match the settings on my system. this website is on its final stage and it'll be very difficult to use sql authentication and rewrite the bulk of the code.
  u adviced that i should save my server name, but that is the question: how would i know the name of webserver (through programming tools).

:samar
 
Old July 7th, 2004, 12:48 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

Sorry I have no idea! but its question for me that, why u should use diffrent instalation for ur SERVERS?!

Bye the way, I dont know any way to get Server names but since there are not many at most 5 or 10 u can set them manually urself.

Always:),
Hovik Melkomian.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Transferring files sachtaridis Visual C++ 0 November 22nd, 2007 07:31 AM
SQLserver 2000 vs SQLserver 2005 Express cJeffreywang BOOK: Beginning ASP.NET 2.0 and Databases 0 April 22nd, 2007 09:52 AM
How can I allow remote users to access sqlserver. gowthamsen SQL Server 2000 1 February 18th, 2006 06:10 PM
Transferring a variable value losmon HTML Code Clinic 4 July 19th, 2005 04:03 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.