SQL Express At Home - Can't Create Login

Sep 16, 2006

Short version - how can I create a server login for a remotely connected machine on a simple 2 computer XP home network connected via router?

Long version - I'm doing an Access-SQL Migration. I used the migration assistant (which creates DSN-less linked tables) to convert the data to SQL Server, and now I'm at the point of making all of the modifications to my Access front end so that the two play nice.

I have SQL Express running on my laptop. I would like to do the Access work on my desktop because a) I can work faster with the fullsize keyboard and b) the install at my client's location will include users hitting the database over their network and I'd like to simulate that while I'm making the modifications.

My Access front-end works 100% fine on my laptop. The Access front end will NOT connect when I run it on my desktop.

My guess is that this is due to not having a server login or DB user associated with the account on my desktop machine. In view of that, I'm trying to create those items on my server.

So, I open SSMS on the laptop and try to create a Server login. Under "Login Name:" I enter "DesktopAccountName" and it fails saying "Windows NT user or group 'DesktopAccountName' not found. Check the name again."

If I click the "Search" button next to "Login Name:" The only "Location" that I'm given is "LAPTOP" and that's greyed out preventing me from changing it.

Both machines are running XP home. My network is simply called "Home" if that means anything.

View 5 Replies


ADVERTISEMENT

Not Able To Create NEW LOGIN In SQL Server 2005 Express Edition

Nov 8, 2006

I have installed on my PC Visual Basic 2005 Express Edition which installed SQL Server 2005 Express Edition. In addition I downloaded and installed SQL Server Management Studio Express(SSME).

Now using SSME I can connect into SQL server express with the default login that was created by the installation. I want to create a new login:

Right click on Security > New > Login

I filled in all the details. However, when I click OK I get the following error:

Create failed for Login 'Mauriceewlogin'. Windows NT user or group 'Mauriceewlogin' not found. Check the name again.



Please, help. I am getting fraustrated with this error.

Thanks.

- Terhemba

View 1 Replies View Related

How To Create A Login Userid And Password For Ms SQL Server 2005 Express?

Oct 30, 2007

My PC is Window XP Pro and I'm using Microsoft SQL Server 2005 Express and Microsoft SQL Server Management Studio Express.
My question is how to create a login userid and password under "SQL Server Authentication"? (as shown in http://www.findingsteve.net/print_screen.jpg)
Any tutorial about this I can read?

View 6 Replies View Related

Installing SQL Express - XP Home

Sep 20, 2007



Hi,

We're creating an installer package for SQL Express 2005 and I'm using the built-in setup project in VS 2005 to create my MSI.

Everything appears to be working well, excpet that on Windows XP Home the SQL Express package is exiting with an error code 70002. I've googled for several days now and simply can't find any help on the 70002 exit code. Can anyone help ?

The command line arguments (I've split them onto seperate lines for clarity) we're passing to "sqlexpr32.exe" are : -

/qn
INSTANCENAME=OurInstance
SAPWD="OurPassword"
ADDLOCAL=SQL_Engine,SQL_Data_Files,Client_Components,Connectivity
SQLBROWSERAUTOSTART=1
SQLACCOUNT="NT AUTHORITYSYSTEM"
SQLBROWSERACCOUNT="NT AUTHORITYSYSTEM"
AGTACCOUNT="NT AUTHORITYSYSTEM"
ASACCOUNT="NT AUTHORITYSYSTEM"
RSACCOUNT="NT AUTHORITYSYSTEM"
SECURITYMODE=SQL
DISABLENETWORKPROTOCOLS=0
SQLAUTOSTART=1

View 3 Replies View Related

Problem With SQL Express In XP Home

Dec 1, 2007

I have installed SQL Express with the following command line parameter--

"SECURITYMODE=SQL DISABLENETWORKPROTOCOLS=0 SAPWD="$DB_PWD$" INSTANCENAME="$INSTANCE_NAME$" ADDLOCAL=SQL_Engine,SQL_Data_Files,SQL_Replication SQLACCOUNT="NT AUTHORITY" SQLBROWSERACCOUNT="NT AUTHORITY" SQLBROWSERAUTOSTART=1"

The operating system is XP Home..

Now the problem is when I open up Management studio from another m/c I can't find the Instance installed in the XP Home MC. I deally in the management studio should displays the instances like this...

[Mechine Name][Instance name]

but in this case it is showing only

[Mechine Name] in the Management studio's brows server list in a different MC.

So I am not being able to connect to that MC. I have checked that the remote connection is checked on with Surface area config. manager.

Same command line is working for Windows 2000. Any help please......

View 5 Replies View Related

Error Installing SQL Express 2005 SP1 On XP Home/SP2

Nov 3, 2006

As the subject says, I am getting an error installing SQL Express 2005 SP1 on XP Home/SP2. I have never had a previous version of SQL server installed. I have never had Visual Studio installed. I have tried extracting the setup files and running from a different directory. I have tried installing the advanced package as well with the same results.

When I run the setup, the Client and support files are successfully installed. It then goes on to the system analysis, where I get one warning about my hardware but I have checked the help file and my system appears to meet the system requirements. After I click Next from this window is where I get the error,
"Error writing to file: Access is denied.
. Verify that you have access to that directory."

After looking into the log files I see this,

Error Code: 0x80070005 (5) Windows Error Text: Access is denied. Source File Name: t:yukonsqlsetupdarwinsqlcastubstreamca.cpp Compiler Timestamp: Wed Dec 21 16:49:23 2005 Function Name: streamBinaryToDisk Source Line Number: 238 Error 1304. Error writing to file: Access is denied. . Verify that you have access to that directory.


Does anyone know what is wrong? I have installed this on many W2K machines at work as well as installed the full version of SQL Server 2005. I have never seen these errors on any of those machines. This is the first XP machine I have ever tried to install on so I am not sure if this is an OS problem or not.

Thanks in advance.

View 14 Replies View Related

SQL 2005 Express On Vista Home Premium?!?!?!

Oct 5, 2007



I've tried everything that I can find on this forum and elsewhere. I CAN'T INSTALL MS SQL 2005 Express on Vista Home Premium 32bit!!!!!! Please! Can someone help??

The error I receive is as follows:

The SQL Server System Configuration Checker cannot be executed due to WMI configuration on the machine NOTPIT-PC Error:2147749907 (0x80041013).




I'm dying here, my productivity is shot... I'm thining about cleaning out my system and going back to XP Pro...

View 11 Replies View Related

Installing SQL Server Express && Remote Connections On XP Home

Jul 6, 2006

My target market includes Micro-SMEs (i.e. 1 to 2 person business). This users often have multiple computers, but tend to run XP Home edition. Hence I need to set up a SQL Server Express on one of the machines and allow the other machines to access it.

So far I realise:

XP machines must be SP2ed (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=379560&SiteID=1)
XP Home machines need to be in the same work group (am I right?)
I have to Open up the MS Firewall on each of the machines for TCP ports 1433 and 1434 (see http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=511441&SiteID=1)
On the machine hosting the SQL Server Express instance, start the "Browser" Service (again http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=511441&SiteID=1)

I have several questions surrounding this.....

If I package SQL Express with my application is there away I can get the Browser to be started automatically? Do I need to write some custom code using the Microsoft.SqlServer.Management namespace?
My understanding of the SQL Server security model is that ideally I should ideally use Windows Authenticated users connections - how do I set up the remote XP Home user on the XP Home machine which is hosting the SQL Server Instance? I'm thing I may have to used Mixed Mode and pass the SQL Server username and password in the connection string. Am I right or can I use Windows Authenticated?
Are there any more resources other than http://msdn.microsoft.com/sql/express/default.aspx?pull=/library/en-us/dnsse/html/emsqlexcustapp.asp which I should look at for help on installing an app bound to SQL Server Express?

Thanks in advance

Ben

View 4 Replies View Related

Sql Server Express Edition Installation (OS Windows Home XP)

Mar 8, 2006

Hi,

I am trying to install SQL Express on Window Home XP and SCC is returning the following error:

The SQL Server Configuration Checker cannot b execute due to WMI configuration on the machine ..... Error 2147942405 (0X80070005).

I tried running the following batch file which I believe resolved the same issue that someone else raised earlier (though I am not sure whether the OS was Home XP)

Will upgrading from XP Home to XP Professional (academic version) help me install SQL express successfully>

The Batch file I ran looks like this:

FIXWMI.CMD
------------------------

@echo on
cd /d c: emp
if not exist %windir%system32wbem goto TryInstall
cd /d %windir%system32wbem
net stop winmgmt
winmgmt /kill
if exist Rep_bak rd Rep_bak /s /q
rename Repository Rep_bak
for %%i in (*.dll) do RegSvr32 -s %%i
for %%i in (*.exe) do call :FixSrv %%i
for %%i in (*.mof,*.mfl) do Mofcomp %%i
net start winmgmt
goto End

:FixSrv
if /I (%1) == (wbemcntl.exe) goto SkipSrv
if /I (%1) == (wbemtest.exe) goto SkipSrv
if /I (%1) == (mofcomp.exe) goto SkipSrv
%1 /RegServer

:SkipSrv
goto End

:TryInstall
if not exist wmicore.exe goto End
wmicore /s
net start winmgmt
:End

Any suggesstions will be geatly appreciated.



View 4 Replies View Related

Failure To Install SQL Express SP2 On Vista Home Premium

Mar 14, 2007

Hi,

I have been trying to install SQL Express SP2 (SQLEXPR32.exe) on a Window Vista Home Premium for past 2 days . After failing I tried installing SQLEXPR_ADV. (Maybe I have a corrupted download, desperate enough to try anything.). However it keeps showing the following error:

SQL Server Setup Failed to compile the Managed Object Format (MOF) file C:Program FilesMicrosoft SQL Server90Sharedsqlmgmproviderxpsp2up.mof. To proceed, see "Troubleshooting an Installation of SQL Server 2005" or "How to: View SQL Server 2005 Setup Log Files" in SQL Server 2005 Setup Help documentation.

I have search through the forums. One of the possibilities is due to a WMI repository corruption. Tried fixing it, but the problem still persists. (Maybe I am doing it the wrong way , I have downloaded the WMIDiag scripts, not too sure if i ran it correctly).

Below is the installation summary:


Microsoft SQL Server 2005 9.00.3042.00
==============================
OS Version      : Home Edition  (Build 6000)
Time            : Thu Mar 15 02:13:51 2007
 
ATLANTIS : Microsoft Internet Information Services (IIS) is either not installed or is disabled. IIS is required by some SQL Server features.  Without IIS, some SQL Server features will not be available for installation. To install all SQL Server features, install IIS from Add or Remove Programs in Control Panel or enable the IIS service through the Control Panel if it is already installed, and then run SQL Server Setup again. For a list of features that depend on IIS, see Features Supported by Editions of SQL Server in Books Online.
Machine         : ATLANTIS
Product         : Microsoft SQL Server Setup Support Files (English)
Product Version : 9.00.3042.00
Install         : Successful
Log File        : C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0013_ATLANTIS_SQLSupport_1.log
--------------------------------------------------------------------------------
Machine         : ATLANTIS
Product         : Microsoft SQL Server Native Client
Product Version : 9.00.3042.00
Install         : Successful
Log File        : C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0013_ATLANTIS_SQLNCLI_1.log
--------------------------------------------------------------------------------
Machine         : ATLANTIS
Product         : Microsoft SQL Server VSS Writer
Product Version : 9.00.3042.00
Install         : Successful
Log File        : C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0013_ATLANTIS_SqlWriter_1.log
--------------------------------------------------------------------------------
Machine         : ATLANTIS
Product         : SQL Server Database Services
Error           : SQL Server Setup Failed to compile the Managed Object Format (MOF) file C:Program FilesMicrosoft SQL Server90Sharedsqlmgmproviderxpsp2up.mof. To proceed, see "Troubleshooting an Installation of SQL Server 2005" or "How to: View SQL Server 2005 Setup Log Files" in SQL Server 2005 Setup Help documentation.
--------------------------------------------------------------------------------
Machine         : ATLANTIS
Product         : Microsoft SQL Server 2005
Product Version : 9.2.3042.00
Install         : Failed
Log File        : C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0013_ATLANTIS_SQL.log
Last Action     : InstallFinalize
Error String    : SQL Server Setup Failed to compile the Managed Object Format (MOF) file C:Program FilesMicrosoft SQL Server90Sharedsqlmgmproviderxpsp2up.mof. To proceed, see "Troubleshooting an Installation of SQL Server 2005" or "How to: View SQL Server 2005 Setup Log Files" in SQL Server 2005 Setup Help documentation.
Error Number    : 29513
--------------------------------------------------------------------------------


What are the other possibilities and fixes? Please help.

Thanks a million.

View 5 Replies View Related

Sql Express Error 18452 : Windows XP HOME Problem

Nov 19, 2007



Hi Experts,
Can anyone help me to identify the problem? The situation of my problem is : My company network in clients side is running either Window XP Pro or Window Xp Home.The problem occur when i access from Window XP Home to Server (Window Server 2003) an error pop up Sql Express Error 18452. It is worked fine in WIndow XP Pro version.
Thanks for anyone provide me a solution.

View 15 Replies View Related

SQL Express && Vista Home Premium Connection Issue

Nov 29, 2007

Hi,


We have an application using SQL Express as the back end.
One of our clients has two machines both running Vista Home Premium
One of the Home Premium machines has SQL Express installed on it as well as our application - it is acting as a server.

The other machine is networked to it. The application will run but cannot establish a connection to SQL server.

I have done the following:

Set remote access on
Enabled named pipes and TCP/IP
Enabled SQL Browser
Set VIA on
Restarted SQL and rebooted the Machine.

Disabled the firewall on the host and workstation

Is there anything I'm missing here? I was able to get the installation running on a Vista Business machine to Vista Ultimate machine with no issues.

Thanks

Sam

View 3 Replies View Related

Using Local Variable To Pass Login Name To CREATE LOGIN Script

Mar 19, 2008

Dear all;

I'm trying to use a local variable @NEW_LOGIN_CODE to pass LOGIN NAME to CREATE LOGIN script as follows:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
declare

@NEW_LOGIN_CODE varchar(255),
@NEW_LOGIN_PASSWORD varchar(255);
begin

SET @NEW_LOGIN_CODE = 'any_login';
SET @NEW_LOGIN_PASSWORD = 'AnyPassword';

CREATE LOGIN @NEW_LOGIN_CODE WITH PASSWORD @NEW_LOGIN_PASSWORD;
end
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

the script will not work unliss I provided a hard coded login code and password as follows:

CREATE LOGIN ANY_LOGIN WITH PASSWORD 'AnyPassword'

what should I do to make the CREATE LOGIN script accept local variables as parameters?

Thanks


View 3 Replies View Related

SQL Server Express Installation Fails On Vista Home Premium

May 8, 2007

I have recently updated from XP to Vista Home Premium. Now when I try to install SQL Serve Express SP2 I get :



"setup has detected problem with .net framework installation
and cannot proceed. Microsoft .net framework 2.0 is either not installed or
is corrupt."



I have tried to run sfc /scannow to make sure my .NET 2.0 was not corrupted and also was running as an administrator but could not get it installed. Anyone has any ideas?

View 1 Replies View Related

Error - Sql Server Express SP2 Spanish In Vista Home Basic

Nov 15, 2007

dear friends, I installed Sql ServerExpres SP2 spanish vertion in Vista home basic, I Cant Attach a data base, it reports me the error cant access to Model data base, error 916, and when I try to Create a new data Base it Reports me, Permition denied to create a data base in master, error 262

I am trying to download English Vertion, but When I download it olways try to download me the sqlexpres32_ESN.EXE which have these problems.


if any can help me,

Regards in advance Santiago

View 1 Replies View Related

Unable To Install SQL Server 2005 Express On A Vista Home Premium O/S

Mar 9, 2008



I have tried to install SQL Server 2005 Express several times with no success. I have followed the instructions to remove all SQL files on the Programs menu.
Then, when I attempt to install it again, it only goes as far as the database where it stops and gives the error message:
SQL Server cannot write system databases to C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLData because it contains files from a previous installation. To continue, move the databases from the specified folder, or specify a different installation folder. Then run SQL Server Setup again.

It doesn't give options and I can only abort the installation.

Does anyone have a remedy for a technologically challenged person?

Thank you.

George

View 1 Replies View Related

Unable To Install SQL Server 2005 Express Advanced SP2 On Vista Home Premium

May 4, 2007

I have Vista Home premium installed on my system. I installed SQL server 2005 express SP2. When I am trying to attach Advetureworks database by using following script, i get the following error.I am logged in as administrator.What kind of permission i have to set so that i can install the database.Any help will be appreciated.Script is :

EXEC sp_attach_db @dbname = N'AdventureWorks',

@filename1 = N'C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLDataAdventureWorksDW_Data.mdf',

@filename2 = N'c:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLDataAdventureWorksDW_log.ldf' ;

Error is :

Msg 5120, Level 16, State 101, Line 1

Unable to open the physical file "C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLDataAdventureWorksDW_Data.mdf". Operating system error 5: "5(Access is denied.)".



Regards



View 1 Replies View Related

VS 2008 Express, New Install: Cannot Open Database Aspnetdb Requested By The Login. The Login Failed.

May 9, 2008

Hi,
I just installed Visual web developper 2008 express with all options including SQL srvr express 2005!

This is from default iso image on the official website.

I create my first project and when I want to do ASP.NET configuration from web site menu, i got this error:

"Cannot open database "aspnetdb" requested by the login. The login failed."

I am just trying to learn here so i even did not create any dB or something, it is 1st time I run configuration to add security roles and users for testing!

I also un-installed all and re-installed, still the same...

pleas help and give me details as i am new.

kind regards,Golgot

View 12 Replies View Related

Create Variable To Store Fetched Name To Use Within BEGIN / END Statements To Create A Login

Mar 3, 2014

I created a cursor that moves through a table to retrieve a user's name.When I open this cursor, I create a variable to store the fetched name to use within the BEGIN/END statements to create a login, user, and role.

I'm getting an 'incorrect syntax' error at the variable. For example ..

CREATE LOGIN @NAME WITH PASSWORD 'password'

I've done a bit of research online and found that you cannot use variables to create logins and the like. One person suggested a stored procedure or dynamic SQL, whereas another pointed out that you shouldn't use a stored procedure and dynamic SQL is best.

View 3 Replies View Related

Install SQL Server 2005 Express Edition - Advanced Services, XP Home SP2 Error 29521.

Mar 7, 2008

I am installing SQL Server 2005 Express Edition with Advanced Services on Windows XP Home Edition SP2 and received error 29521. I am installing with an account that has administrator rights.
The summary.txt file contains:
Error String : SQL Server Setup failed to execute a command for server configuration. The error was {Microsoft}{SQL Native Client}{SQL Server}CREATE DATABASE failed. Some file names listed could not be created. Check related errors.. Refer to the server error logs and Setup logs for detailed error information.
Error Number : 29521

Does anyone have suggestions as to the problem?

View 1 Replies View Related

SQL Server Management Studio Express On Vista Home Premium (Error On Attaching And Detaching .mdf)

Sep 5, 2007



I have SQL Express 2005 SP2 installed in my Vista Home Premium. I am using SQL Server Management Studio Express to manage .mdf.

When I click "Add..." to attach .mdf database, I have this prompt error message :

The server principal "My-PCMyName" is not able to access the database "model" under the current security context. (Microsoft SQL Server, Error: 916)


I have elevated the rights, "Run as administrator", of my SQL Server Management Studio Express, but still having problem.

I also encounter security error when detaching the existing .mdf :
The EXECUTE permission was denied on the object 'sp_detach_db', database 'mssqlsystemresource', schema 'sys'. (Microsoft SQL Server, Error: 229)


Please advice. Thanks.

View 8 Replies View Related

I Created A Login In SQL SERVER 2005 EXPRESS, But Cant Login...

Nov 24, 2005

create login dave with password='abc', default_database=tempdb

View 6 Replies View Related

Can't Login To SQL 2005 Express Edition Through Mangerment Studio Express

Apr 29, 2007

Hi, all

I installed SQL 2005 express edition in my pc (Pro XP), then I can login from SQL 2005 Managerment Studio Express. After a few days later, I can't do it and an error message as belows:


An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)
It seems that the default setting does not allow remote connections, however, I connected it before and havn't change any setting. I try to reinstall the studio express but still not working.

Any idea / solution will be welcome.

Kevin Cheang

View 3 Replies View Related

Accessing Sql Express Peer To Peer On Xp Home

Dec 15, 2005

HI

2 pc's networked on XP home - SQL Express installed on one (on both actually, but that's probably superfluous info)

I've got the CTP studio express installed on both, but can't connect to the instance on the other machine - I've enabled TCPIP and named pipes, restarted the services, the XP filewall is disabled and still no luck - I've got mixed mode authentication...

What else can I try - how do I fix ?

 

THanks

Bruce

 

 

View 4 Replies View Related

How To Enable CLR Integration In SQL Server Express And Create SQLCLR Project In VB 2005 Express?

Aug 31, 2007

Hi all,

In my SQL Server Express (that is installed in my Windows XP Pro PC), SQL Server 2005 Network Configuration has Protocols for SQLEXPRESS. I tried to do "Enabling CLR Integration" in my SQL Server Express: (1) If I clicked on "Surface Area Configuration for Services and Connections", I got an error "An exception occurred in SMO while trying to manage a service, (Microsoft.SqlServer.Smo) Additional information: Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum) The operation could not be completed. (WinMgmt). (2) If I clicked on "Surface Area Configuration for Features, I got a different error "Computer localhost does not exist on the network, or the computer cannot be configured remotely. Verify that the remote computer has the required computer has the required Windows Management Instrumentation components and then try again. (SQLSAC) Additional Information: An exception occurred in SMO while trying to manage a service. (Microsoft.SqlServer.Smo). Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum) The operation could not be completed. (WinMgmt). Please help and tell me how I should do to get "Enabling CLR Integration" in my SQL Server Express done and how I can create SQLCLR Project in VB 2005 Express.

Thanks in advance,
Scott Chang

View 6 Replies View Related

How To Create A Login

May 20, 2008

hi,
i tried to create a sql authenticated login by right click security,new login and follow the steps needed but once i finish creating, i could not login using the account. Why is it so? Can help me? Let my user name = " pe " and my password= " 123456 ". Help me. Thanks

View 7 Replies View Related

Create Login

Jun 2, 2008

HI Gurus,


When ia m trying to create
CREATE LOGIN [ADVWORKSfogisu] FROM WINDOWS;

thrus error as
Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near 'LOGIN'.

can some one pls help me in this..

Thanks,
ServerTeam

View 7 Replies View Related

Cannot Create Login

Apr 27, 2007

This error message :
Cannot find the certificate 'AccountingCorp', because it does not exist or you do not have permission.
This Code
USE master
CREATE LOGIN Dave
FROM certificate AccountingCorp;
GO
******************
AccountingCorp was created wiht this code:
USE Frontier_equipment;
CREATE CERTIFICATE AccountingCorp
WITH SUBJECT = 'Frontier Accounting Records',
EXPIRY_DATE = '10/31/2009';
GO

rkj

View 4 Replies View Related

Create Login...

Jan 21, 2008

Hi all
As you know in [Enterprise Manager] , in the left pane and in SecurityLogin section we can create Logings for users by just
Right click in the Right pane and select [New Login...]
But i couldn't understand one thing !!! when i create a new login with specifying ONLY:
1) Login Name
2) Sql Server Authentication Mode
and without specifying Server Roles and Database Access, the created Login has Default Access to System Databases such as
Master,MSDB and TempDB databases !!! is there an way to revoke this Access permission from Created Login? if so how?

By the way i have anotehr Question. when you are assigning Database Role to a login there are some Fixed Database Roles such as db_owner
but we have also db_DataReader and db_DenyDataReader i want to know
why do we have both db_DataReader and db_DenyDataReader roles at the same time ??? nothing only curious !!!

Thanks in advance.
Kind Regards.

View 2 Replies View Related

How To Create A New Login?

Jan 31, 2008

I need to add a user to the server. I have heard that there is a wizard. But I can't find how tolaunch it. How do I add/remove users?

View 5 Replies View Related

Create New Login

Jan 15, 2008

Hi there!

I'm trying to create an account like this
CREATE LOGIN name WITH PASSWORD = 'password';

so, here is what i'm trying to do. I want to give it the server role of 'sysadmin'
and user mapping of some databases.

Can someone help me out on this one?!?

Thank you!! it is very much appreciated!

View 7 Replies View Related

Create READ ONLY Login Sql 6.5

Jun 8, 2000

I use Sql 6.5 and I want to create a login for a user with
READ ONLY privileges on the tables in the databases. How do I do this?
Thanks in advance.

View 3 Replies View Related

Create Login From Master

Jan 25, 2008

Is there any way I can create a login for a database while the database context is master or not the particular database.
I am trying to do something like this.......
USE [master]
GO

DECLARE @STRSQL VARCHAR(2000),
@DATABASE_NAME VARCHAR(50),
@DB_PATH VARCHAR(200),
@DB_USER VARCHAR(25)
SET @DATABASE_NAME='TDB4x'
SET @DB_PATH='D:Database'
SET @DB_USER='TDB4Test'

DECLARE @SQL_DB varchar(20),
@STRSQL1 varchar(500),
@STRSQL2 varchar(500),
@STRSQL3 varchar(500),
@STRSQL4 varchar(500)

SET @SQL_DB='USE '+@DATABASE_NAME
SET @STRSQL1=(' IF NOT EXISTS (SELECT *
FROM sys.server_principals
WHERE name='''+@DB_USER+''')')
SET @STRSQL2=(' BEGIN
CREATE LOGIN '+@DB_USER+'
WITH PASSWORD=N'''+@DB_USER+''',
DEFAULT_DATABASE=['+@DATABASE_NAME+'],
DEFAULT_LANGUAGE=[us_english],
CHECK_EXPIRATION=OFF,
CHECK_POLICY=OFF
END')
SET @STRSQL3=(' EXEC sys.sp_addsrvrolemember @loginame = N'''+@DB_USER+''', @rolename = N''sysadmin''')
SET @STRSQL4=(' ALTER LOGIN ['+@DB_USER+'] DISABLE')
EXEC (@SQL_DB+@STRSQL1+@STRSQL2+@STRSQL3+@STRSQL4)

The login is successfully created, but I cannot find the user in the specific database. Is there any other way this can be accomplished?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved