Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

We have one connection string to our SQL Server 2000:

 

"Data Source=WORKAPP;Initial Catalog=Parts_Data;Integrated Security=SSPI;User ID=public;Password=public";

 

Everyone can connect to the database in our plant except for the Restricted Users.

 

Why can't the Restricted Users access this? How can we get around it?

 

I can access the data, but I am set up as an Administrator.

 

Our managers can access the data, but they are set up as Power Users.

 

Most machines are Windows XP, but some use Citrix Servers and a few are running Windows Vista. The OS does not seem to make any difference.

 

We do not want to grand Power User status to everyone, and we should not need to with the correct connection string.

Posted

The connection string looks like it should be OK to me, it's got a uid/pwd hard coded into the string, so all users should be using the same level of access.

 

Are the users with restricted access able to display data, but not update/edit? or do they have no access at all?

~Nate�

___________________________________________

Please use the [vb]/[cs] tags on posted code.

Please post solutions you find somewhere else.

Follow me on Twitter here.

Posted

Hi Nate,

 

Turned out that the Integrated Security overrides the User ID/Password settings if it is enabled. (If it is False, then User ID/Password are used).

 

So, I got this fixed, and now our restricted users have access to the data. The only problem is that our regular (power) uses no longer have access.

 

The message I get whenever I attempt to run from my machine is:

 

"EXECUTE permission denied on object 'sp_sdidebug', database 'master', owner 'dbo'."

 

The first line of the StackTrace says:

 

" at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)"

The restricted users do not see this. Any ideas?

Posted

Oh man - I just found it!

 

In the project properties, I had enabled SQL Server debugging, but the global User ID/Password did not have authorization to do this!

 

Solution: Uncheck "Enable SQL Server debugging" or set Integrated Security to SSPI (True).

 

I wanted to post the results. I hope someone that needs help is able to pull this post one day.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...