表可以具有的最大列数 [英] Maximum no of columns that a table can have

查看:89
本文介绍了表可以具有的最大列数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hii good mrg to all,iam在sql server 2008上工作了两个月,我想知道有多少列,即最大限制,一个表可以在sqlserver中拥有。我也请求你们所有,请告诉我是他们的任何原因没有.....提前感谢



问候

D Ramu

解决方案

表中最大限度的列? [ ^ ]


< br $> b $ b

http://msdn.microsoft.com /en-us/library/ms143432.aspx [ ^ ]


嗨Ramu,



我相信它的l由记忆(RAM)模仿。



你可以尝试这个小程序。



 DataTable dt =  new  DataTable(); 
尝试
{
for int i = 0 ; i< 1000000000000; i ++)
dt.Columns.Add(i.ToString)
}
catch (例外情况)
{
// 一些限制例外!
}





谢谢


Hii good mrg to all, iam working on sql server 2008 for the last two months,i want to know how many columns i.e max limit, that a table can have in sqlserver.I also request u all,please tell me is their any reason for that no.....thanks in advance

with regards
D Ramu

解决方案

MAX LIMIT OF COLUMNS IN TABLE?[^]


Hi,

http://msdn.microsoft.com/en-us/library/ms143432.aspx[^]


Hi Ramu,

I believe its limited by memory(RAM).

You can try this small program.

DataTable dt = new DataTable();
try
{
    for(int i = 0;i<1000000000000;i++)
        dt.Columns.Add(i.ToString)
}
catch(Exception ex)
{
    //Some limit exception!
}



Thanks


这篇关于表可以具有的最大列数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆