SQL Server Management Studio Express 2012 - Can't access documents folder - sql

I'm trying to use SQL Server Management Studio to access my Visual Studio database which is saved in my documents folder. When I paste my path into the Attach database dialog, I get this error:
TITLE: Locate Database Files - LAPTOP\SQLEXPRESS
------------------------------
C:\Users\Flaxbeard\Documents\Visual Studio 2012\Projects\Contacts\Contacts
Cannot access the specified path or file on the server. Verify that you have the necessary security privileges and that the path or file exists.
If you know that the service account can access a specific file, type in the full path for the file in the File Name control in the Locate dialog box.
And if I navigate manually to C:\Users\Flaxbeard, nothing shows up on the right. What is my issue?

Try putting the directory in quotation marks

Related

Unexpectedly deleted SQL File Stream Shared location

I unexpected delete SQL File Stream Shared location, is there a way to restore the Shared location. When i try to open SQL File table from SSMS Explore File Table Directory it works on Server, but it doesn't allow to open from client machine. I already enabled Remote Access for SQL File Shared. Is there a way to restore back.
Also can any one suggest me unable to open File Explorer from SSMS. it shows unauthrised access

Accurev plugin with visual studio 2012

Every time I log into the Accurev plugin in visual studio 2012 I have to re enter the server information. Has anyone else run into this issue?
What version of Windows are you running and what are the User Access Controls (UAC) settings for the system? Higher UAC settings will block writing to files located within the "Program Files (x86)" directory, which is where AccuRev is installed and maintains the "acclient.cnf" file. This is the file that lists which servers are available for you to login. Open this file with a text editor, add the server you login to by adding a line like the following:
SERVERS = myserver:5050
Please notice the spaces before and after the equals sign is intentional and needed. Your server name can use either the short name of the fully qualified domain name. The number after the colon is port number that AccuRev uses for establishing connections.
This file is located in the "AccuRev\bin" directory.

Protecting information after installer VB 2012

When in make Installer on my project in Visual Basic 2012. I'm using InstallShield - and filed that i need to create the program are only "Debug or Realese" Folder. But there are files "program.exe.config" files. Everyone can open it if he has VB or program that can open VB 2012 files. In those files there is an information about connection to server that program makes. So they have my server name and mine user/password that gives access to mine sql server. Can i make the line with server information crypted and it still workes to avoid - changing server/logging into my server.
Or how can i block the files while i'm making the installer. - So they could not open them.
Store encrypted password and username in config file. And decrypt them inside code right before connection. This should make the trick.
Make the same with server name if you'd like to.

Error opening .mdf file through SQL Server Management Studio Express

I am doing a project of a web enabled database. I have created the database file in my PC.
Now when I just want to open .mdf i.e. of the database I created, I cannot open it in other PC. I even had copied the .ldf file i.e the log file to that PC.
Since I need to transfer the database to the Server later, I don't know how I will dump the database in that server from my PC so that the company can use it.
The basics of using mdf file is like this:
Create a new database using SQL Server (set the path for the file as you wish)
If you wish to move the file elsewhere,
detach the database from your server
copy/move the file to wherever you wish
attach the file as database in SQL server
You are not supposed to open the file by double-clicking as mime setting or attachment of extensions migh not be there in the target machine.
Why don't you use the decent method to copy/move database?

SQL Server - Error when trying to reference a .mdf file

For a NUnit test I need to reference a .mdf file from a .config file. Unfortunately, I get the following error message:
The FOR ATTACH option requires that at least the primary file be specified.
An attempt to attach an auto-named database for file
C:\....\*.mdf
A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
I looked for this error on google but didn't find anything that helped me solve my problem.
Any idea?
Thank you
Edit
Apparently the .log file is missing.
Yeah, as snippy as it sounds:
A database with the same name may already exist (database name possibly != file name).
The specified file may not be something SQL Server has access to
Is the file unique and not bound to the server at the same time (like from another unit test)? Does the SQL Server service account have access to the file?