Alter Table with no data

  • Thread starter Thread starter KeesBlunder
  • Start date Start date
K

KeesBlunder

Guest
With this i put a new table in a SQLCE database .

That works .

cmd = New SqlCeCommand("ALTER TABLE Datum ADD Specs NVARCHAR(50)", con)

If con.State = ConnectionState.Closed Then con.Open()
myDA = New SqlCeDataAdapter(cmd)
myDataSet = New DataSet()
myDA.Fill(myDataSet, "MyTable")
MsgBox("Oke")
If con.State = ConnectionState.Open Then con.Close()

1355292.jpg

Everything oke , because i want to save an empty textbox when i want to .

This i how it looks in the database.

1355289.jpg

But i want to put it in the database like this , empty or a space ?

1355291.jpg

Is this possible , and so what do i at to this statement.

cmd = New SqlCeCommand("ALTER TABLE Datum ADD Specs NVARCHAR(50)", con)

Continue reading...
 
Back
Top