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 6553575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:35:54+00:00 2026-05-25T12:35:54+00:00

I want to create a program, that will use SQL Server 2008 database. During

  • 0

I want to create a program, that will use SQL Server 2008 database. During the first start, I would like to open a window, which let the user create a database. It will be simply, textboxes with name and ip of the database computer to set and button “Go”.

Program will be in WPF .NET4. And database will be in local network.

Could you suggest me a good solution? Is it a good programming practice, to do that? Or maybe I should just attached a sql script?

I do some research, I found that article: http://www.codeproject.com/KB/tips/CreateSQLDV.aspx

But, first issue, in SQL Server 2008, there is no Microsoft.SqlServer.SmoEnum.dll. So, when I do similar “data create” window, but for SQL Server 2008 (using maybe different dlls) – It will not work for SQL Server 2005. And maybe will not work with other versions of SQL Server 2008 to? I don’t know.. Example from codeproject looks good, but I’m not sure.

I would like to do a flexible program.

  • 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-25T12:35:55+00:00Added an answer on May 25, 2026 at 12:35 pm

    I would avoid SMO.

    It depends a LOT on your audience and the control you have over the expected environment, but attaching pre-made databases, while a convenient option, can sometimes have issues – to start with it’s a binary under source control, so you don’t get diffs for free in your source control system. In addition, you’re attaching a database with certain options and things which might not be appropriate for the specific target environment – SQL Server 2005, SQL Server 2008, SQL Server 2008 R2? Other than all that, it’s a valid approach similar to the way one might deploy Access applications in the past.

    In a less controlled environment, I would go with either generating a SQL script containing all the DDL (and DML for lookup tables) or providing a script, offering to run it automatically and also giving them the option of running it themselves with their own tools (if they have a DBA).

    Now your script (or at least the template for the script or the code that generates the script) is under source control and can satisfy a DBA who wants to inspect it.

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

Sidebar

Related Questions

I want to create an extremely simple iPhone program that will open a telnet
I want to create a MSWindows Python program that would launch a new Firefox
I want to create a simple program that will convert a pdf to a
I want to create a program that requests from the user 10 grades and
I created one GWT webapplication project.Inthat i want to create servlet program,but in that
<flavor> I want to create a spelling test program for my grade schoolers that
My GUI desktop-based WPF 4.0 (C# .Net 4.0) program works with SQL Server database.
I really like the new SQL Server Database projects in Visual Studio 2010. I
I have a Sql Server that uses Windows Authentication. I want to connect to
I want to create one insert function in php, which I will use to

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.