E
EMW
How can I create a SQL server database in my VB.NET program?
I've MSSQLServer installed and running.
If a database is created, where is it stored?
I used the following code, didn't get any errors, but cannot find a new file:
Dim con As SqlConnection = New SqlConnection("server=(local);Integrated Security=SSPI;database=SiteList")
Dim cmdLijst As SqlDataAdapter = New SqlDataAdapter("CREATE DATABASE ", con)
'here some code to create the table?
'here some code to put the info from a dataset into the sql database?
con.close
Is with this code the database created?
thanks
Eric
I've MSSQLServer installed and running.
If a database is created, where is it stored?
I used the following code, didn't get any errors, but cannot find a new file:
Dim con As SqlConnection = New SqlConnection("server=(local);Integrated Security=SSPI;database=SiteList")
Dim cmdLijst As SqlDataAdapter = New SqlDataAdapter("CREATE DATABASE ", con)
'here some code to create the table?
'here some code to put the info from a dataset into the sql database?
con.close
Is with this code the database created?
thanks
Eric