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 1355292.jpg](https://www.computerhelp.forum/data/attachments/55/55553-88ad3bb64590e88b9c64aa06453fd616.jpg?hash=iK07tkWQ6I)
Everything oke , because i want to save an empty textbox when i want to .
This i how it looks in the database.
![1355289.jpg 1355289.jpg](https://www.computerhelp.forum/data/attachments/55/55554-b606bc39ad83935219689c117d10b961.jpg?hash=tga8Oa2Dk1)
But i want to put it in the database like this , empty or a space ?
![1355291.jpg 1355291.jpg](https://www.computerhelp.forum/data/attachments/55/55555-606aa67380288922f9d464297c8604cf.jpg?hash=YGqmc4AoiS)
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...
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 1355292.jpg](https://www.computerhelp.forum/data/attachments/55/55553-88ad3bb64590e88b9c64aa06453fd616.jpg?hash=iK07tkWQ6I)
Everything oke , because i want to save an empty textbox when i want to .
This i how it looks in the database.
![1355289.jpg 1355289.jpg](https://www.computerhelp.forum/data/attachments/55/55554-b606bc39ad83935219689c117d10b961.jpg?hash=tga8Oa2Dk1)
But i want to put it in the database like this , empty or a space ?
![1355291.jpg 1355291.jpg](https://www.computerhelp.forum/data/attachments/55/55555-606aa67380288922f9d464297c8604cf.jpg?hash=YGqmc4AoiS)
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...