find out storage size in DB for growth string

  • Thread starter Thread starter Jonathan Woods
  • Start date Start date
J

Jonathan Woods

Hi there,

I would like to know how many storage size of nvarchar data type needs
to store in database for a growth string dynmically.

[For example] string sAccountName = "AAAAA"+"BBBBBB"+"CCCCCCCC"+......;


cmd.CommandText = "CREATE TABLE myDB.dbo.tblAccInfo(AccountName(????))

(????) mean I would like to know how many storage size exactly need to
fix in that field for sAccountName string.

How do i do for that? Any idea?

Thanks in advance.
 
Jonathan said:
Hi there,

I would like to know how many storage size of nvarchar data type needs
to store in database for a growth string dynmically.

[For example] string sAccountName = "AAAAA"+"BBBBBB"+"CCCCCCCC"+......;


cmd.CommandText = "CREATE TABLE myDB.dbo.tblAccInfo(AccountName(????))

(????) mean I would like to know how many storage size exactly need to
fix in that field for sAccountName string.

How do i do for that? Any idea?

Thanks in advance.

That is usually determined by you and your business rules when designing
the application. Some companies have standards and limit the lengths of
strings for various database fields.

Laimis
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top