Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7163371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:53:31+00:00 2026-05-28T13:53:31+00:00

My question is if user needs to attach the databases to the instance of

  • 0

My question is if user needs to attach the databases to the instance of server manually before being able to use the application?
I have added the mdf file to my Setup project. It installs and copies the file to application folder. I donot know if the file needs to be attached or there is a way that application could do it automatically (attach to MyComputer\SQLExpress)

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T13:53:32+00:00Added an answer on May 28, 2026 at 1:53 pm

    Since your script already copies the files to the destination folder, you can use the sp_attach_db procedure (http://msdn.microsoft.com/en-us/library/ms179877(v=sql.100).aspx) or even the CREATE DATABASE command with FOR ATTACH informing the file names.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A question to maybe some who have worked extensively with WinUSB APIs or user
Here's my problem: I have an application which uses sql server express 2005, and
We have a need for an application that runs on an end user's machine
I'm building an application that checks when a user needs to change the oil
I am having an ASP.net Membership I need to verify the User Question and
This came up when answering another user's question (TheSoftwareJedi)... Given the following table: ROW_PRIORITY
Question 1 - I'm wanting to give the user the ability to reset their
Question Rewritten: HOMEDIR=ftpuser REMOTEIP=1.1.1.1 MYSQLPASS=password Q1=DROP USER $HOMEDIR_shop; Q2=DROP DATABASE $HOMEDIR_shop; Q3=CREATE DATABASE IF
User kokos answered the wonderful Hidden Features of C# question by mentioning the using
My question is about passing data from kernel to a user space program. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.