create table from "server dialog"

Posted on 2006-06-08
Last Modified: 2010-04-16
Hi Experts,
                 I would like to create a table in SQL Server but instead of supplying the connection object and CREATE TABLE statement with Server, Database and table names in the code, take the first and second pieces of information from the browser like openfileDiaolog and assign the table name and fields info from say a textBox. Can it be done with the expertise available on this forum?

Question by:Autofreak
    1 Comment
    LVL 12

    Accepted Solution

    Here you have an example that retrieves a list of available SQL Servers, and databases, using SQLDMO

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Article by: Ivo
    Anonymous Types in C# by Ivo Stoykov Anonymous Types are useful when  we do not need to follow usual work-flow -- creating object of some type, assign some read-only values and then doing something with them. Instead we can encapsulate this read…
    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now