CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.

YesSoftware Forums -> CodeCharge Studio -> General/Other

 please help me i am getting error when i try to attach a file to database in sql server 2008

Print topic Send  topic

Author Message

Posts: 8
Posted: 12/22/2013, 2:43 AM

TITLE: Microsoft SQL Server Management Studio

Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc)

For help, click:


An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)


E:\he-ca-pr\he-ca-pr\Health Care Product\bin\Debug\Hospital.mdb is not a primary database file. (Microsoft SQL Server, Error: 5171)

For help, click:


View profile  Send private message

Posts: 513
Posted: 12/22/2013, 5:21 PM

Hi - are you trying to attach an Access file to the SQL Server?

I'm not up with the latest versions of SQL Server but in the past I have usually imported it into SQL Server not just attached it (but I could be wrong)

Also , this might not be the place for this specific question about a problem with SQL Server.

CCS 3/4/5 ASP Classic, VB.NET, PHP
Melbourne, Victoria, Australia
View profile  Send private message

Posts: 1
Posted: 04/15/2014, 12:17 AM

To prevent and avoid the attacks of SQL injection which generally involves running any entered data through a function that make sure that any harmful character are not entered to a SQL query in data.
You need to avoid connecting the database applying an account with privileges of admin-level if there is not some forceful reason.
Remove unwanted functionality of database that not required or unwanted because hackers can take advantage of these.
If such error occurs in your database then it is necessary for you to repair your SQL database as soon as possible with SQL MDF File Repair Tool .

For More Details:
View profile  Send private message

Posts: 1
Posted: 05/14/2014, 1:59 AM

You can resolve sql error 5171 & successfully attach SQL MDF file with the help of SQL recovery tool.
View profile  Send private message

Posts: 1
Posted: 07/08/2014, 12:12 PM

MS SQL is an application produced by Microsoft which is used broadly for efficient data management by many organizations around the world and has really become an indispensable need of users all over. SQL or the Structured Query Language helps the users to query the databases and also to easily retrieve information from databases that had been made already. In this MS SQL Server, the files are saved in .mdf file format.
For more information and free download
View profile  Send private message

Posts: 1
Posted: 01/02/2015, 10:14 PM

The solution was to remove the javascript links and put them in an include file.
CCS then stopped changing the HTML.
Who knows - like most problems with CCS you work out how to get around it and move on.
Support tends to do their own thing.....

Unlock the key of your success by [url=]a plus certification[/url] and [url=]security+ certification[/url] By using our latest [url=][/url] and [url=]ju[/url] study material, you can easily pass [url=][/url]

Unlock the key of your success by [url=]a plus certification[/url] and [url=]security+ certification[/url]
View profile  Send private message

Add new topic Subscribe to topic   

These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

Home   |    Search   |    Members   |    Register   |    Login

Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by  and YesSoftware, Inc.