If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Microsoft SQL Server > Error: Cannot connect sql server 2008 database with vb 2010

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-07-12, 13:16
balamithra balamithra is offline
Registered User
 
Join Date: Aug 2012
Posts: 2
Error: Cannot connect sql server 2008 database with vb 2010

Hi,
*I have installed sql server 2008 management studio with "use sql server authentication".
*I have created a database with
database name:stock
owner:<default>
*In Vb.net
created a windows application;clicked on Add datasource;changed d datasource to microsoft sql server database file(SqlClient);clicked on option button use sql server authentication n then provided d user name and password;
browsed d database and clecked on open;This is when i get a error.
This is the error:
"Select sql server database file
stock.
you dont have permission to access this file
contact file owner or the administrator"

Plz let me knw the cause of d error and how to solve it
Reply With Quote
  #2 (permalink)  
Old 08-07-12, 14:25
papadi papadi is offline
Registered User
 
Join Date: Oct 2009
Location: 221B Baker St.
Posts: 487
Quote:
you dont have permission to access this file
contact file owner or the administrator
Suggest you Work with your administrators to set the proper permissions.
Reply With Quote
  #3 (permalink)  
Old 08-08-12, 00:39
balamithra balamithra is offline
Registered User
 
Join Date: Aug 2012
Posts: 2
How to access the permissions.
What are the settings i need to do?
Reply With Quote
  #4 (permalink)  
Old 08-08-12, 14:43
papadi papadi is offline
Registered User
 
Join Date: Oct 2009
Location: 221B Baker St.
Posts: 487
If you are not the system administrator, you need to work with them.

What to do depends on how your system is set up. They will know.
Reply With Quote
  #5 (permalink)  
Old 08-08-12, 14:45
MCrowley MCrowley is offline
Wage drone 24601
 
Join Date: Jan 2003
Location: Massachusetts
Posts: 5,238
Is this trying to attach a SQL Server database to an instance of SQL on your desk(lap)top? If the SQL Server is remote (on a separate machine), you would certainly not get file permissions denied.
Reply With Quote
Reply

Tags
connection error

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On