 |
| 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
|
|
|
|

July 1st, 2004, 09:58 AM
|
|
Registered User
|
|
Join Date: Jul 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

July 1st, 2004, 10:04 AM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
|
|
Use SQL authentication not windows authentication. That's really the easiest solution.
|
|

July 3rd, 2004, 03:43 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
|
|
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.
|
|

July 5th, 2004, 01:46 AM
|
|
Registered User
|
|
Join Date: Jul 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

July 6th, 2004, 02:45 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
|
|
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.
|
|

July 6th, 2004, 04:03 AM
|
|
Registered User
|
|
Join Date: Jul 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

July 7th, 2004, 12:48 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
|
|
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.
|
|
 |