| |

VerySource

 Forgot password?
 Register
Search
View: 857|Reply: 8

How do I get this attribute of a table? ?

[Copy link]

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-2-9 14:00:02
| Show all posts |Read mode
sql server, table table_A, has an nvarchar (max) field,

How do I know if the 'large value types out of row' of this table is now "on" or "off"? ?
Reply

Use magic Report

0

Threads

126

Posts

73.00

Credits

Newbie

Rank: 1

Credits
73.00

 China

Post time: 2020-4-2 19:30:01
| Show all posts
When the 'large value types out of row' option of the sp_tableoption stored procedure is set to OFF, in-row storage for large value types is limited to 8000 bytes. When this option is set to ON, only the 16-byte root is stored in-line. For more information, see sp_tableoption (Transact-SQL).

See the help of sp_tableoption ~
Reply

Use magic Report

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-4-3 13:15:01
| Show all posts
I want to know the current value of 'large value types out of row'. Not change.
Reply

Use magic Report

0

Threads

126

Posts

73.00

Credits

Newbie

Rank: 1

Credits
73.00

 China

Post time: 2020-4-11 10:30:02
| Show all posts
Use OBJECTPROPERTY (id, TableTextInRowLimit)
Reply

Use magic Report

0

Threads

126

Posts

73.00

Credits

Newbie

Rank: 1

Credits
73.00

 China

Post time: 2020-4-11 14:45:01
| Show all posts
select OBJECTPROPERTY (OBJECT_ID (N'TABLENAME '),' TableTextInRowLimit ')
Reply

Use magic Report

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-4-27 01:45:01
| Show all posts
No use, 'TableTextInRowLimit' is not 'large value types out of row'

exec sp_tableoption 'table_A', 'large value types out of row', 0;
exec sp_tableoption 'table_A', 'large value types out of row', 1;

all the same.
Reply

Use magic Report

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-7-30 09:45:01
| Show all posts
up.

How can I know whether the'large value types out of row' of this table is now "on" or "off"? ?
Reply

Use magic Report

1

Threads

11

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-8-3 18:00:01
| Show all posts
OBJECTPROPERTY
Reply

Use magic Report

1

Threads

11

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-8-3 18:30:01
| Show all posts
select OBJECTPROPERTY(object_id('sysobjects'),'TableTextInRowLimit')
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list