Solved

Connecting to SQL Server database in Codecharge studio

Posted on 2013-12-05
4
934 Views
Last Modified: 2013-12-12
Hi,

I'm trying to connect to a database in Microsoft SQl server 2012 in Windows_NT mode.

The database name is "Checkweigher" and is setup in mixed mode.

I''ve setup the Codecharge studio connection.

Database: SQL Server
Server Name: ***\MES
Selected use Windows NT Integrated security
And selected the database.

I tested the connection and it says that the connection was successful

 But when I click on the "Live Page: tab, I get the following error:

Unable to establish connection to database.
Error information:
Microsoft OLE DB Provider for SQL Server (0x80004005)
Cannot open database "CheckWeighers" requested by the login. The login failed.
Other possible cause of this problem:
The database cannot be opened, most likely due to incorrect connection settings or insufficient security set on your database folder or file.
For more details please refer to http://support.microsoft.com/default.aspx?scid=kb;en-us;Q306518

I just can't seem to find a solution. Please help.

Thanks.
0
Comment
Question by:Buddhi_imatrix
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 33

Expert Comment

by:Big Monty
ID: 39703619
usually when you get this message, it's due to the connecting user not having enough rights to the database. Are you sure you're using the same user as when you initially tested the connection?

it may also be trying to connect via your IIS user (I've run into setups like these), try giving your IIS user full rights (just as a test) and see if that helps.
0
 
LVL 28

Accepted Solution

by:
sammySeltzer earned 500 total points
ID: 39713125
Yes, The_Big_Daddy is correct.

Open SQL Server Management Studio (SSMS),
Right-click on the database in question
Click on Properties
Click on Permissions
Then if you don't see the user there, click Add
Click Browse
Look for the login name you created
Finally, check Execute.

If the login isn't already created, then create it first.
0
 

Author Comment

by:Buddhi_imatrix
ID: 39715541
Thanks guys!!... i tried to pin point the problem so i deleted all the permission I had given it but it still works. Seems a bit weird.
0
 
LVL 33

Expert Comment

by:Big Monty
ID: 39715562
No split in the points? I provided the overall theory in the answer and SS provided the fix. Not sure how you came about your awarding of points on this one....
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
key press alert 2 42
Filktering Alphabetically 8 43
Time comparison asp 1 22
XML and version of MS XML Dom Document versions 5 34
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question