Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 SQL configuration not acception login IDs

Author  Topic 

Cheshire
Starting Member

12 Posts

Posted - 2009-01-06 : 18:57:41
Hello,

I've been given a rather dirty job of cleaning up an interns old PC.

Part of the process is I have to configure SQL to accept user login ID from our network inventory program (Altiris).

Pertinent to the SQL issues (as I understand them) are the following excerpts from the error logs:

-----------------------------------
SQL Server Logs are all empty.

SQL activity monitor has multiple entries with DOMAIN1/USER1 associated with the eXpress database & sleeping.

Altiris Data Manager;
-eXpressDatabase; Error 11: General network error. Check your network documentation.
-eXpressDatabase; Error 4060: Cannot open database "eXpress" requested by the login. The login failed. Login failed for user 'DOMAIN1\USER1'.

Application Log;
-Altiris Deployment Server; Service cannot be started. The service process could not connect to the service controller.
-Altiris Deployment Server; Event ID 3; Incorrect syntax near the keyword 'and'. Statement(s) could not be prepared.
-MSSQLSERVER; Event ID 17187; SQL Server is not ready to accept new client connections;
-Altiris Deployment Server; Event ID 3;SQL Server does not exist or access denied. ConnectionOpen (Connect()).
-mm; Event ID 3; SQL Server does not exist or access denied. ConnectionOpen (Connect()).
-----------------------------------

Any help, suggestions, or telling me what data / logs I should have enabled and what I should be looking for would be most appreciated.

Again my thanks,

-Aaron

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-06 : 19:00:21
According to the first error, DOMAIN1\USER1 does not have access to the eXpress database. Grant it access to the database and any permissions it'll need.

In reference to the "access denied", please see this from my blog: http://weblogs.sqlteam.com/tarad/archive/2008/05/23/60609.aspx

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Cheshire
Starting Member

12 Posts

Posted - 2009-01-06 : 19:16:52
Hello tkizer,

Under Microsoft SQL Server Management Studio Express;
>NEWSQLSERVER (SQL Server 9.0.2047 - DOMAIN1\MYUSER)
>>Security
>>>Logins
>>>>DOMAIN1\USER1
>>>>>Properties

Under 'General' the user is set with a login name of 'DOMAIN1\USER1', 'Windows Authentication', default database 'master', default language 'british english'.
Under 'Server roles' the user is set with 'public' and 'sysadmin'
Under 'User Mapping' the user is set to 'eXpress', 'Insight_v50_0_223514856', 'VirtualManagerDB', and 'vmm_db_v2_1'. The first two have 'db_owner' checked, and all of them are checked as 'public'.
There is nothing listed under 'securables'
Under 'status' the user is set with 'permission to connect to database engine' Grant, 'Login' Enabled.

Is there anything else I should have set to ensure this user can access the eXpress database?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-06 : 19:20:41
Is eXpress database accessible by any other users? It sounds like it may be corrupt or unavailable.

By the way, the user is sysadmin which means it is god on the database server. It doesn't need any other permissions as it gets everything through sysadmin. This is risky though. Only DBAs should have sysadmin. All other accounts should have only what is needed. But I digress...

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Cheshire
Starting Member

12 Posts

Posted - 2009-01-07 : 11:35:58
That I know of, no other user accounts can access the eXpress database.

If I go through Start>Administrative Tools>Data Sources (ODBC)>System DSN>Altiris eXpress database>Configure>Finish>Test Data Sources

It replies with 'Tested Successfully'.

Which makes me think that puts network issues out of the way concerning any network problems?

And setting user to SA is just so that I know it has as much permissions as possible until I get the system working, then I'll step it down to something reasonable and hope it doesn't break anything.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-07 : 12:16:37
Can you login with the sa account and see if you can run queries on that database?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Cheshire
Starting Member

12 Posts

Posted - 2009-01-07 : 12:39:18
Sorry, I have no idea how I would run a query on the database.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-07 : 12:43:19
Do you have Management Studio installed? It's a SQL client tool that allows you to do pretty much everything in SQL Server. If you don't have it installed, I'd suggest getting it installed or we're going to have to do this from the command line which isn't easy.

Here's an example from the command line:

sqlcmd -Sserver1\instance1 -E
> use eXpress
> go
> select * from sysobjects
> go

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Cheshire
Starting Member

12 Posts

Posted - 2009-01-07 : 13:02:53
I do have SQL Server Management Studio Express.
How would I specifically test the query using just the SA account?
( or whichever account I set up with the equivalent permissions)
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-07 : 13:40:20
I'd first login to Management Studio Express with the sa account, not the account that is getting the error. Verify that you can view data in the eXpress database. If that works out okay, then try with the account that is getting the error.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Cheshire
Starting Member

12 Posts

Posted - 2009-01-07 : 14:11:35
As SA
>NEWSQLSERVER (SQL Server 9.0.2047 - sa)
>>Databases
>>>Tables
>>>>dbo.bw_drive
>>>>>Columns
>>>>>>bw_prop_ID
Then I can right click, 'modify' and see the data / settings in the file. I prsume that's what we're testing?

I can then log in with the other configured local account as well.
Go to Top of Page

Cheshire
Starting Member

12 Posts

Posted - 2009-01-07 : 14:12:02
quote:
Originally posted by Cheshire

As SA
>NEWSQLSERVER (SQL Server 9.0.2047 - sa)
>>Databases
>>>Tables
>>>>dbo.bw_drive
>>>>>Columns
>>>>>>bw_prop_ID
Then I can right click, 'modify' and see the data / settings in the file. I prsume that's what we're testing?

I can then log in (and edit)with the other configured local account as well.

Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-07 : 14:31:55
While logged in with the user that is getting the error, click the new query button and type this into a window:

USE eXpress
GO

SELECT * FROM sysobjects
GO

Does it return data or get an error?

If you don't get an error, then the issue is on the client side in the config.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Cheshire
Starting Member

12 Posts

Posted - 2009-01-07 : 17:41:35
Quite interesting,
All intended accounts, whether SQL or Windows Authenticated can access and edit the database directly.

During install it requests:
"The following Administrator account must exist on the Depoloyment Share and the Deployment Server. If using Active Directory, enter 'domain\user name'.
So if I enter DOMAIN1\USER1 and the account password, it (should?) work?

Because I've already verified the connection to the sql server using the ODBC, this issue is then strickly a matter of the installation program & how it tries to interact with the SQL server, or it's an issue with how we have active directory configured?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-07 : 17:43:08
It doesn't sound like a SQL Server issue. I have no idea about active directory.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Cheshire
Starting Member

12 Posts

Posted - 2009-01-07 : 18:02:26
Alright thank you regardless,

I know a little bit more about SQL now,
And I'm comfortable saying that SQL is not the issue,
So I can redivert my attention elsewhere in resolving this.

-Aaron
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-07 : 18:05:21
Sorry we couldn't resolve the issue. Hopefully you'll get it straightened out soon.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -