Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Script windows user from different domain as SQL user?

Status
Not open for further replies.

steph2004

Programmer
Apr 1, 2004
7
CA
Hi,

I want to make an installation script which is scripting the windows ASPNET built-in user to access the database created in the script.

The problem is that if I create the script with my SQL Server, the user will be scripted as MYDOMAIN\ASPNET. How can I script it without being assigned to any domain? I mean, I don't know what are my clients Windows Domains so how can I script it in a generic form?

Is there something like @@CURRENTDOMAIN\ASPNET??

Thanks,

Stephane
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top