SQL Server Express Initial Login Permissions

Jul 2, 2007

After installing SQL Server Express I can now connect using my Windows authentication but am unable to create a database because all BUILTINUsers only have public permissions. I don't have the sa password and there are no other users or user groups set up which I could use to upgrade my permissions. So I can't do much of anything with SQL Server.



For background, I'm setting this up on a personal laptop running Windows Vista. I'm one of only two users on the machine and I have an Administrator user account.



Any help is appreciated.

View 11 Replies


ADVERTISEMENT

SQL Server 2005 And Express Permissions Nightmare/Cannot Open Database ASPNETDB.MDF Requested By The Login

Apr 12, 2007

I just spent the better par of 3 days creating a prototype in ASP.Net 2.0 and SQL Server Express only to discover that nobody from outside can see it...
ERROR with impersonation=true
User does not have permission to perform this action.
ERROR with impersonation=false
Unable to open the physical file "c:inetpubwwwroot------.mdf". Operating system error 5: "5(Access is denied.)".An attempt to attach an auto-named database for file c:inetpubwwwroot-----.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.  
What makes this so difficult?
What am I missing?
 

View 9 Replies View Related

Sql Server Express Slow Initial Connection

Apr 22, 2008

Hi,
I use a Remote Sql Server Express instance, and I have a strange behavior.. The first connection is really slow and I don't know how to fix that.I read some posts about this topic but I didn't find the right solution.Is there a way to "keep alive" the connection between my IIS server and the SQL one ?I check the auto-close property and it sets to false.
Any help ?
Stan

View 1 Replies View Related

Moved Aspnetdb To SQL Server - What Permissions Do I Need To Give The ASP IIS Service Account For That? (Getting: Cannot Open Database Aspnetdb Requested By The Login. The Login Failed.)

May 12, 2008

I am getting the error:
Cannot open database "aspnetdb" requested by the login. The login failed.
When I browse to my ASP.NET 3.5 LINQ web application on the IIS 6.0 server on Server 2003.
I imagine this is because while I granted SQL Server 2005 login and permissions to my database that the application stores its data in, I did NOT grant any rights to the service account the IIS Application Pool uses for its identity to the aspnetdb database on SQL Server which is where all my roles information is stored at.
My question is what are the MINIMUM permissions needed for this database so it can perform its roles related functions?
I'm using Windows Authentications with the SQL Role provider for authorization.
 
Thank you.
 
 
EDIT: I think I only need to open the aspnetdb database and add my login to the aspnet_Roles_FullAccess role.  Is that correct?

View 2 Replies View Related

SQL Server Login Permissions

Jun 5, 1999

Question for you. Due to some testing within our environment, I've restored a database a few times
today. Now, when I look at the databases that logins have access to, some have the correct
access to databases and others have no access anymore. This all has happened since I've
restored the database. What happened? It isn't even with the 1 database that I restored that
this is happening. When I look, most users don't have access to any database anymore... All the groups I have
set up and the permissions assigned within the database themselves are fine, just the
login doesn't have access to a database. Did I do something wrong? If so, please let me know
so I can correct it before another restore is necessary.

Thanks so much!
Toni Eibner

View 2 Replies View Related

Sql Server Login Permissions

May 14, 2008

I had created three users for my centeralized database server.
usernames are
1.sa
2.production
3.praveen

I had given the permissions as follows
for production i given the permissions for each database
dddatawriter,datareader, db_executor,public
for praveen i had given full permissions
for sa I want full permissions so i had given each and every thing

my aim is as follows. i want permissions according to this one.
for production he is not able to change the coloumn name,he is not able to backup database or restore database, and also he is not able to change password of any logins
For this one i got it correctly . but while coming to praveen login
He is able to do anything regarding database . but i don't want to give permissions to chnage passwords of his login and at the same time any login . can you give any idea regarding this permissions.

For sa i want to full permssions he is able to change passwords of any login .

please kindly help me in this

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

Access Permissions On Server Scoped Objects For Login

May 17, 2006

We are having problems with the response times from UPS WorldShip after switching from SQL Server 2000 to 2005.


I think that the problem can be fixed from the database end by setting the permissions correctly for the user/role/schema that is being used by WorldShip to connect to the server but, I'm not sure how to do it.

The Setup

Client
UPS WorldShip 8.0 running on XP Pro SP2
Connecting via Sql Native Client via SQL Server Login
Connection is over a T1 via VPN

Server -
SQL Server Standard Edition on Windows Server 2003
2x3ghz Xeon processors w/ 4gb ram

The user that is being used to connect runs under it's own schema and role and only needs access to two tables in a specific database on the server.

What UPS WorldShip seems to be doing is on a continual basis retrieving information about the layout of the database via calls such as the following

exec [sys].sp_tables NULL,NULL,NULL,N'''VIEW''',@fUsePattern=1

exec [webservices].[sys].sp_columns_90 N'CHECK_CONSTRAINTS',N'INFORMATION_SCHEMA',N'webservices',NULL,@fUsePattern=1

exec [webservices].[sys].sp_columns_90 N'COLUMN_DOMAIN_USAGE',N'INFORMATION_SCHEMA',N'webservices',NULL,@fUsePattern=1

This seems to happen whenever WorldShip contacts the database to find out information in order to be able to create a mapping to the database as well as exporting information to it. Because of the VPN connection these calls take anywhere from 20 seconds to 3 minutes.

I am fairly confident that the problem lies with these calls to the database which I was able to capture using the SQL Server Profiler. We have experimented with the following setups.

1. Connecting to SQL 2000 over VPN with SQL Native Client - No noticeable lag
2. Connecting to SQL 2000 over VPN with SQL Server 2000 driver - No Noticable lag
3. Connecting to SQL 2005 locally with SQL Native Client - No Noticable lag
4. Connectiong to SQL 2005 over VPN with SQL Native Client - Lots of lag

Our network admin has been testing the network connections over the VPN and it is very responsive with none of the long wait times found when using UPS WorldShip.


Now for a possible solution other than getting UPS to fix their software. I think that by limiting the tables and views that the login is able to see will cut down significantly on the lag times that are being experienced. The problem is that there were 264 items that were being returned by sp_tables. I was able to cut that down to 154. I am unable to disable access to any of the rest of the items because they are server scoped.

Take for example the INFORMATION_SCHEMA.CHECK_CONSTRAINTS view. When I try to deny access to it in any way I get the following error:

Permissions on server scoped catalog views or system stored procedures or extended stored procedures can be granted only when the current database is master (Microsoft SQL Server, Error: 4629)


Am I able to deny access to these types of object and if so how? Also, what objects should be accessable such as sys.database_mirroring, sys.database_recovery_status, etc?

View 18 Replies View Related

Why Does Windows Login Have Full Permissions On Local Installation Of SQL Server 2005?

Jun 22, 2007

Hi,

I recently installed an evaluation copy of SQL Server 2005 Enterprise Edition on my local machine and during the installation I used Local System system account for the SQL Server service and set the server to use Mixed Mode authentication.

I am able to connect to this local server Database Engine with my Windows login through SQL Server Management Studio and am able to perform sysadmin tasks. My question is why?

My thinking was that even though my Windows login would provide me a connection to the server, I would still have to manually add this login to the sysadmin server roles but after checking the sysadmin role, my Windows login isn't in there. The Windows login is not found under Security - Logins in SSMS either.

Can someone tell me should details for the login be visible on the server and why it seems to have sysadmin permissions ?

Thanks

View 1 Replies View Related

SQL Server Express DB Write Permissions

Nov 23, 2006

Hi all Im currently going through a ASP.NET book but i just cant get to use the SQL server express databases that come with the code examples in the book. All i can do is read the data but thats about it. I keep on getting the error below whenever i try to alter the data in the databases. I have tried enabling write permissions for the NETWORK SERVICE account for the App_Data folder but i still get the same issue. Im running the web apps with these databases in IIS v5.1 and using Visual web developer express. Im still an ASP.NET novice so please keep the solution to my problem as simple as humanly possible.Thanks in advance all.
Matt
Server Error in '/Chapter06' Application.--------------------------------------------------------------------------------Failed to update database "C:INETPUBWWWROOTCHAPTER06APP_DATAWROXUNITED.MDF" because the database is read-only. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Failed to update database "C:INETPUBWWWROOTCHAPTER06APP_DATAWROXUNITED.MDF" because the database is read-only.Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  Stack Trace: [SqlException (0x80131904): Failed to update database "C:INETPUBWWWROOTCHAPTER06APP_DATAWROXUNITED.MDF" because the database is read-only.]   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +857338   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +734950   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1838   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +149   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +886   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +132   System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +415   System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +135   System.Web.UI.WebControls.SqlDataSourceView.ExecuteDbCommand(DbCommand command, DataSourceOperation operation) +401   System.Web.UI.WebControls.SqlDataSourceView.ExecuteUpdate(IDictionary keys, IDictionary values, IDictionary oldValues) +721   System.Web.UI.DataSourceView.Update(IDictionary keys, IDictionary values, IDictionary oldValues, DataSourceViewOperationCallback callback) +78   System.Web.UI.WebControls.DetailsView.HandleUpdate(String commandArg, Boolean causesValidation) +1152   System.Web.UI.WebControls.DetailsView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +461   System.Web.UI.WebControls.DetailsView.OnBubbleEvent(Object source, EventArgs e) +95   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35   System.Web.UI.WebControls.DetailsViewRow.OnBubbleEvent(Object source, EventArgs e) +109   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35   System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +115   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +163   System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +174   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102 --------------------------------------------------------------------------------Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

View 2 Replies View Related

I Can Not Login Sql Server Express :((

Mar 23, 2008

This is my connection string : <add connectionString="Data Source=.SQLEXPRESS;User id=sa;password=*******;AttachDbFilename=|DataDirectory|serdarmuh.mdf;Initial Catalog=serdarmuh;" name="connString"/>  but it says :Login failed for user 'sa'.I adjust the password for "sa" during the setup and set the authentication moded to "Sql Server and Windows Authentication Mode". But it does not work.... If I tried "Integrated Security = True", then it says :Login failed for user 'Administrator' what should I do? Is it better to re-install sql server?  

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

Login's Permissions For Non-sa RESTORE?

May 17, 2004

I hope this is a nice fat ball that someone can knock out of the park...

We've recently started to upgrade our development servers from Win2k to Windows Server 2003. Naturally, the SQL Server boxes receive MS SQL Server 2000 SP3a. Our database users now cannot restore to their own databases.

We usually grant each login the 'dbcreator' server role (and hope the developers are too busy to realize everything else it allows). Each user's login is dbo in his/her database. Typically one developer will produce a reference dump file, and all the other developers load it as they need it.

If a user executes a restore, it trundles along happily until almost the end, spitting out an error. Here's a sample:

100 percent restored.
Processed 376 pages for database 'bobdb', file 'Data' on file 1.
Server: Msg 916, Level 14, State 1, Line 68
Server user 'bob' is not a valid user in database 'bobdb'.
Server: Msg 3013, Level 16, State 1, Line 68
RESTORE DATABASE is terminating abnormally.

Oh, and this worked with SQL Server 2000 (any patch) on Windows 2000 Server.

Developers reload their databases so often (and DBA resources are so spare) that routing all restores through a DBA will bring development to its knees. So, each developer must be able to restore dumps to their own database.

Help? Which server roles/permissions/GRANTs do we need to provide our developers with the power they need? (and not the powers they don't need!)

View 11 Replies View Related

Changing Login Permissions

Oct 3, 2005

I am trying to set up a secure system and would like some advice on how to do it as it is a bit tricky.

View 14 Replies View Related

New Login Permissions - Too Broad

Sep 26, 2007

Hi,

I created a new sql server login, but didn't assign it any permissions in any databases.

When I login with this new login, it logs into the master database, and is able to select tables from the system databases, such as master, msdb.

This seems very wrong to me. How can I turn these default permissions off for new logins? I thought it might have something to do with the guest account, but not sure how to best handle this.

Thanks

View 3 Replies View Related

SQL Server Express For Login Control

Aug 11, 2006

I have built a page with the login control using the default sql server express database that is integrated into the application. I have got it working on my development machine and want to post it on the web with a web hosting company. I did not know if they had to have sql server express installed on that machine for my database to work properly or will it work with sql server 2005 installed. Most web hosting companies that I have called say they only support sql server 2005 and not sql server express. I was unsure if the login would work or not. Please help with this issue. I am new at ASP.net and really enjoy it. However, I want to ensure that my site will work on the web as it does on my machine.

View 4 Replies View Related

Login Failed To SQL Server Express

Oct 10, 2007

For the life of me I've had nothing but trouble using SQL Server Express.  My latest problem sprung up out of nowhere, I all of a sudden begin getting the following error, when I know my app was working last time I ran it: "Cannot open user default database. Login failed.Login failed for user 'PINCHCPUBrad'."I get this error in an auto-generated file App_Code.1voqxxpd.18.cs.  What kills me is, I can connect to the database through Server Explorer and SQL Management Studio, but for some reason my application cannot.  I really don't understand how logging-in works with SQL Server Express as I've never even set up a login.  When I look at my database properties in Server Explorer is shows Owner as the exact entity my application says it can't find: 'PINCHCPUBrad'. The database I'm trying to connect is in my App/Data folder and my Connection String says: "LocalSqlServer" connectionString="Data Source=.SQLExpress;Integrated Security=True;User Instance=False;AttachDBFilename=|DataDirectory|aspnetdb.mdf" providerName="System.Data.SqlClient"/>    I honestly don't get why attaching to and maintaining a simple database is unbelievable difficult and unpredictable, but I constantly get screwey errors like this that pop up out of nowhere. 

View 2 Replies View Related

ASP.net SQL Server Express Login Question

Aug 27, 2007

I'm attempting to connect to a SQL server database from the code behind in an ASP.net 2005 page. I am receiving the error:

"Cannot open database "Fastaff" requested by the login. The login failed. Login failed for user 'DEBASER1\Carlo'."

4060

My web.config connection string is:

<add name="FastaffConnectionString2" connectionString="Data Source=.SQLEXPRESS;Initial Catalog=Fastaff;Integrated Security=True" providerName="System.Data.SqlClient"/>

The odd thing is when I login to the the same database from the management console using windows authentication I am able to login and the connection info shows:

DEBASER1SQLEXPRESS (SQL Server 9.0.3042 - DEBASER1Carlo)

DEBASER1Carlo is the admin on the machine.

Any ideas?

View 3 Replies View Related

Cannot Login To SQL Server Express 2005

Apr 28, 2008



After a successful install, when I try to Login I get:

Cannot connect or EDHANSEN-PCSQL EXPRESS

"The initializer for 'System.Data.SQLClient.SQLConnection' Three an exception . (System Data)

'The type initializer for System.Data.SqlClient.SqlConnectionfactory' threw an exception.

'Unrecoginzed configuration section system.serviceModel.
(C/WindowsMicrosoft.NetFrameworkv.2.0.50727Configmachine.config line 136) (System.Configuration)

I've tried uninstalling and re-installing. What do you think this is telling me?

Thanks,

Ed Hansen



View 2 Replies View Related

Best Approach To Login To SQL Server Express?

Mar 28, 2007

I borrowed some code from a colleague to login into SQL Server:

public static SqlConnection GetConnection()
{
string dbNameSvr = ConfigurationSettings.AppSettings.Get("DataBaseServer");
string db = ConfigurationSettings.AppSettings.Get("DataBase");
string userId = ConfigurationSettings.AppSettings.Get("UserId");
string password = ConfigurationSettings.AppSettings.Get("Password");

string connStr = "Data Source=" + dbNameSvr + ";" +
"Database=" + db + ";" +
"User Id=" + userId +";" +
"Password=" + password + ";";

SqlConnection aConn = new SqlConnection(connStr);

return aConn;
}



It works but someone has commented that it is very insecure. I don't really understand why but I'll take his word for it. So I'm wondering what approach most people use to have a web app login to their database?

Robert W.

View 6 Replies View Related

SQL Server Express Login Failure

Nov 21, 2007

I am using and learning Visual Basic 2005 Express edtion
I have created a project and wriiten/adapted code, as below, to connect to sql server 2005 express edition, that works well.

=============================================================

Dim ConnectionString As String = "Integrated Security=SSPI;" + "Initial Catalog=JIMDbase2;" + "Data Source=.SQLEXPRESS;"

conn = New SqlConnection(ConnectionString)

' Open the connection
If conn.State <> ConnectionState.Open Then
Try
conn.Open()
Catch ae As SqlException
MsgBox(ae.Message.ToString())
End Try

End If
=============================================================

Later and in the same Project, via Database explorer I 'Add connection' to the same sql database to review tables etc.
After this when I run the same code, as above, I get an error that the database is in use

If I then 'Close Connection' or even Delete the connection via Database explorer I receive the error


"Cannot open Database, "JimDbase2" requested by the login. The login failed.
Login failed for User "..".

Can anyone help on this matter?

Thanks and regards,

Jim

View 7 Replies View Related

User/Login Permissions Problem

Mar 28, 2005

I use 1&1 to host my site, with SQL Server.
I've used their db management tool to create stored procs and tables.
I backed up the db stored at 1&1 and restored it on my home machine.
On my home machine, I can't access most of the db objects in the restored db via ASP.net, even if I login as sa. I get messages such as "Could not find stored procedure 'proc_name'".
1&1 provided me with a username and password to login into their SQL Server database, and all my objects now have that username as the owner.
The only way I can get the stored procs or tables to work is to prefix them all with the username from 1&1, e.g.:

exec <1&1username>.<proc_name>
Any advice would be most welcome.
Thanks,
B

View 2 Replies View Related

Windows Authentication Login Permissions

Feb 18, 2002

Hi,

I have created a Windows user login and have granted it the appropriate roles (including a revoke).
As a test I also created a standard user and gave it the same roles as above.
When I run a query against the revoked table, the results are unexpected.
The Windows user can run the query, and the standard user gets a permissions error (which is what i expect).

Does anyone have any ideas as to what is happening here? I am still confused.... Does it have anything to do with the public permission that much be granted?

Thanks

View 1 Replies View Related

Minium Permissions Necessary To Create A Login?

Mar 15, 2006

What are the minimum permissions necessary to use CREATE LOGIN?

I'm using db_accessAdmin and db_securityAdmin and db_owner. The user as access to the database.

It still says I can't create the login. What am I missing?

View 1 Replies View Related

SQL SERVER 2005 Express Login Problems

May 5, 2006

I have two applications added to a single solution. A Web application and a ClassLibrary which contains the Unit Tests. From the ClassLibrary I am trying to open the SQL SERVER 2005 Express Database. The database is in the App_Code directory of the Web Application folder. I have added the App.config file in my class library which has the following credentials. <connectionStrings>    <add name="ConnectionString" connectionString="Data Source=MYSERVER;Initial Catalog=MyDatabase;User Id=AZAMSHARP;Password=mypassword;"/>  </connectionStrings>Now, when I run the test:   [Test]        public void CanOpenDatabaseConnection()        {            string connectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;            SqlConnection myConnection = new SqlConnection(connectionString);            myConnection.Open();            Assert.AreEqual(myConnection.State, ConnectionState.Open);            myConnection.Close();                 }It throws the Exception: ThingsTODOTestApps.SqlConnectionFixture.CanOpenDatabaseConnection : System.Data.SqlClient.SqlException : Login failed for user 'AZAMSHARP'. Reason: Not associated with a trusted SQL Server connection.I tried the same connectionString with the WebApps and it worked fine and displayed the results. Any ideas! PS: AZAMSHARP is my windows authentication account.

View 2 Replies View Related

Login Problems After Publishing (sql Express Server)

May 31, 2006

Thanks for taking your time to read this.(sorry if someone posted this earlier but no solutions helped)
 
After i published my website, i am unable to login anymore. It has this error of  "Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed."
Note ** im using vb
 

View 1 Replies View Related

SQL Server 2005 Express Login Problem

Nov 13, 2007

I installed express on my desktop and created a database - everything works fine. I did a backup of the database and restored it to my laptop and now when I try to connect with an application I am writing I get an error that the connection fails because the connection is not associated with a trusted connection, error code is 18454. Anyone have any ideas what I need to do?

View 1 Replies View Related

Sql Server Express Connection String And Login

Mar 12, 2007

Hi there

I'm trying to connect to sqlserver express using dreamweaver mx. TYhey are both installed on the same machine (win 2000 server),

What I am confused about is the user and password, I have installed the example Northwind database and attempting to connect to it.

In dreamweaver I add a connection (SQL Server connection) , a template shows and I add the data:

Persist Security = false;
Data Source =mycomputersqlexpress;
Initial Catalog = Northwind;
User ID = ?
Password = ?

What do I put in the User ID, Password and how do I configure sqlserver (I'm using Server Management Studio).. As I said I already have Northwind under the database section? but don't know how to set permissions.. Thanks

View 2 Replies View Related

Sql Server Express Database Login Problem

Jun 1, 2006



Hi! I'm using Sql server 2005 Express, and now i have a login problem. I want to create a user for my database in Sql Server Authentication mode, that when others that they don't know sa password and login in windows authentication mode can't see or can't access my database. I did these steps :

1. I loged in to sql server in 'sql server authentication' mode and with strong sa password

2. I went Security Logins and created new login with password

3. I went to my database security users and created new user and for login name i choosed previous login i created in step 2

4. Then i closed sql server and when i restarted it and loged in to sql server in 'Windows Authentication' mode i could see and open database.

Problem : in step 4 i wanted that i couldn't open my database.

Please help what should i did that i forgot to do ?!!

View 6 Replies View Related

SQL Server Express Client App Login / Password

Dec 18, 2006

Help!!

I used to have an Access database which had tables for users, roles, actions etc.

This was used by a C++ client app (using ADO) which logged in, got the user ID and password (by raising a login dialog ) and then checked these against a user table and then assigned the roles and possible actions.

Now we have SWL Server Express 2005 - NT Authorisation - how do I get/pass the user ID to the C++ Application so it can get the associated roles? Seems silly to have 2 logins.

Better still can I do away with the App's User table or make its password column invisible to all users bar Admin and the C++ App?

View 1 Replies View Related

How To Login To Sql Server Express By Creating You Own Account ?

Nov 21, 2007

Dear All,
I currently installed visual studio 2005. So together it als install sql server express. So then I install the sql server management studio express too. So the problem now I want to do is run asp.net pages. I want to know how to create a local account with my own password. Because now I can only login using default windows authentication so how can I create an account with for sql server authentication ? Another question is that for the server address in my asp.net page what must I write localhost or the name shown in the server name text box while logging in. Thanks.

View 4 Replies View Related

Login To SQL Server Express Using Command Prompt

Jun 30, 2006

How can I login to SQL Server Express instance(localhostSqlExpress) using command prompt so that I can query database. Is there any alternative GUI tool for SQL Server Express Manager? (I think Microsoft has discontinued SQL Server Express Manager). I prefer using Command Prompt. I am using WindowsXP Professional.

View 8 Replies View Related

Permissions Not Effective For Windows Authentication Login

Jul 7, 2007

Hello All,



I'm hoping someone can help me with this puzzle.



Most logins I've created have been SQL Server authenticated. I assign the login newEmployee to a role existingRole, and ensure the role has the required permissions. This didn't seem to be rocket science....



My company has been provided with an application with a SQL Server back-end. My instructions were to create a Windows authenticated login and give it full access to the database. I followed the above principles, but running the application, the user got the error -



SELECT permission denied on object 'sysobjects', database 'databasename', owner 'dbo'.



So I decided to try the simplest possible scenario to make it work:



I've created a login DOMAINewEmployee with Windows authentication.

DOMAINewEmployee has been granted access to databasename.

By default, DOMAINewEmployee is a member of Public.

Public has been granted all available permissions on all objects.



ie... grant all on userTables to public

........grant all on sysobjects to public

........grant all on otherSystemTables to public

etc.





Running the application, the user still gets the above error. I'd send the problem back to the vendor, except if I've logged onto the PC as DOMAINewEmployee, querying -



select * from dbo.sysobjects



via Query Analyser produces the same error message. (An equivalent error message is produced when querying a user-created table).





To compare, I then created a login newEmployee2 with SQL Server authentication.

newEmployee2 has been granted access to databasename.



select * from dbo.sysobjects



runs successfully from Query Analyser (as to any queries on user-created tables).





What else is required to grant access to tables from a Windows authenticated login?







( What really scares me, is that the application will run if I make the Windows authenticated login a member of server roles System Administrator and Database Creators, then the application will run - but I don't want this to be the permanent solution. Even after doing this, the above query still fails in Query Analyser for that login, suggesting that there is something wrong with how I configured the permissions. )





Any help would be appreciated.





Thanks.



Kim.

View 4 Replies View Related







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