如何解决如何使用VB.Net创建具有1024个以上的SQL Server表
我需要在运行时创建表以创建股票簿。列名是项目代码。初始表创建如下,
<div>
There are many variations of passages of Lorem Ipsum available,but the majority have suffered alteration in some form,by injected humour,or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum,you need to be sure there isn't anything embarrassing hidden in the middle of text
</div>
<div>Single line of text</div>
'Create the new table
strsql1 = "CREATE TABLE " & Trim(dbname) & ".dbo.TB_ST_BOOK (" &
"id int IDENTITY(1,1) PRIMARY KEY," &
"Entry VARCHAR(30)," &
"entry_date DATETIME," &
") "
obj.CommandText = strsql1
obj.ExecuteNonQuery()
我担心的是,如果列数超过1024个限制(当项目数不超过1024个时)会发生什么? 我读到创建一个宽表可以解决该问题。如果是这样,如何修改上面的代码以创建一个宽表? 将其更改为宽表后,是否需要更改插入,更新和删除代码?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。