Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42326

Create Table

$
0
0
Hi

I am creating table through coding , i want active field should have default value = "Y"

sql = " CREATE TABLE Test" & "" _
& " (tcode nvarchar(10) NOT NULL Primary Key, " _
& " tname nvarchar(100) NULL," _
& " active nvarchar(1) NULL," _
& ")"
cnn.Execute (sql)

Thanks

Viewing all articles
Browse latest Browse all 42326

Trending Articles