AlanLinden
New member
- Joined
- Apr 30, 2008
- Messages
- 4
- Programming Experience
- Beginner
Ok, so I have been able to create a databse via code using the following:
And the textfile has the syntax "CREATE DATABASE Tester".
So, how would I use another textfile, or perhaps the same one with the DB create, to make tables and stored procedures? This is most likely a simple solution, but I haven't been able to get it. Any and all help appreciated.
VB.NET:
Try
Dim oFile As System.IO.File
Dim oRead As System.IO.StreamReader
Dim EntireFile As String
oRead = oFile.OpenText("C:\aTest.txt")
EntireFile = oRead.ReadToEnd()
Dim aNew As New cxDbAccess
aNew.dataAccessWithSP(EntireFile)
Catch ex As Exception
MsgBox(ex.ToString)
End Try
And the textfile has the syntax "CREATE DATABASE Tester".
So, how would I use another textfile, or perhaps the same one with the DB create, to make tables and stored procedures? This is most likely a simple solution, but I haven't been able to get it. Any and all help appreciated.