make a database in C#
-
-
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"?
ThanksI'm pretty sure not.
-
I'm pretty sure not.
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!
-
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!
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
-
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
-
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:)
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
-
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:)
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
-
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!
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.