Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. make a database in C#

make a database in C#

Scheduled Pinned Locked Moved C#
csharpdatabasevisual-studioquestion
8 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    messages
    wrote on last edited by
    #1

    Hi everyone
    We use of "Add New Data Source" (in the visual studio) and then select a dataset for connect a database in the C#, Is it possible to make a new database in the "Add Connection" window instead "Select or enter a database name"?
    Thanks

    P 1 Reply Last reply
    0
    • M messages

      Hi everyone
      We use of "Add New Data Source" (in the visual studio) and then select a dataset for connect a database in the C#, Is it possible to make a new database in the "Add Connection" window instead "Select or enter a database name"?
      Thanks

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      I'm pretty sure not.

      M 1 Reply Last reply
      0
      • P PIEBALDconsult

        I'm pretty sure not.

        M Offline
        M Offline
        messages
        wrote on last edited by
        #3

        I have searched on the internet and it looks like nobody tests it and its first time,could you test it ,please(it doesnt get many times)?I enter the new name in the "Select or enter a database name" field and it asks of me:"The database "mydatabse" does not exist or you do not have permission to see it.Would you like to attempt to create it? when you click ok it makes it!

        L P 2 Replies Last reply
        0
        • M messages

          I have searched on the internet and it looks like nobody tests it and its first time,could you test it ,please(it doesnt get many times)?I enter the new name in the "Select or enter a database name" field and it asks of me:"The database "mydatabse" does not exist or you do not have permission to see it.Would you like to attempt to create it? when you click ok it makes it!

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Congratulations! You tried it and found that you could. You answered your own question. What exactly does this have to do with C#?

          Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Please stand in front of my pistol, smile and wait for the flash - JSOP 2012

          M 1 Reply Last reply
          0
          • L Lost User

            Congratulations! You tried it and found that you could. You answered your own question. What exactly does this have to do with C#?

            Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Please stand in front of my pistol, smile and wait for the flash - JSOP 2012

            M Offline
            M Offline
            messages
            wrote on last edited by
            #5

            Because I'm going to do it on the C# and I want to know Im on the correct way or no,Wes Aday(are you Gondolf?:cool:)

            L P 2 Replies Last reply
            0
            • M messages

              Because I'm going to do it on the C# and I want to know Im on the correct way or no,Wes Aday(are you Gondolf?:cool:)

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              messages wrote:

              correct way or no

              No this is not the correct way. Your question has absolutely nothing to do with C#. And most likely you are not going to be creating databases in C#.

              Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Please stand in front of my pistol, smile and wait for the flash - JSOP 2012

              1 Reply Last reply
              0
              • M messages

                Because I'm going to do it on the C# and I want to know Im on the correct way or no,Wes Aday(are you Gondolf?:cool:)

                P Offline
                P Offline
                Paul Conrad
                wrote on last edited by
                #7

                messages wrote:

                the correct way or no

                No. The better way is to use a database creation script. If it is really needed to be done, then the C# application would run the database creation script and create the database for you through SQL Server. Most of the time, a database should already exist and have been created before you even write any application code.

                "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

                1 Reply Last reply
                0
                • M messages

                  I have searched on the internet and it looks like nobody tests it and its first time,could you test it ,please(it doesnt get many times)?I enter the new name in the "Select or enter a database name" field and it asks of me:"The database "mydatabse" does not exist or you do not have permission to see it.Would you like to attempt to create it? when you click ok it makes it!

                  P Offline
                  P Offline
                  PIEBALDconsult
                  wrote on last edited by
                  #8

                  Uh huh. It probably only supports SQL Server and I doubt it gives you any control of the settings. As such it's not a good way to do it.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups