SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 SSMS issue
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sqlps
Starting Member

India
8 Posts

Posted - 10/26/2013 :  22:35:56  Show Profile  Reply with Quote
I have table with a column having nvarchar(max) type.data
stored in that column having more than 1.5 lakh character width.
But while i select this column using simple select query it could not
show the string stored in that column . only shows string with width lesser than actual. but i checked the length of the data stored in the
column ,it shows correct length. please help me if there any method to
select entire string

James K
Flowing Fount of Yak Knowledge

3559 Posts

Posted - 10/27/2013 :  00:11:23  Show Profile  Reply with Quote
This is a limitation of SSMS. You can change how many characters are displayed by Query -> Query Options and then Grid tab or Text tab as the case may be and setting the max number of characters to be displayed. But there is a max limit to what you can set it to. 65535 for grid and a lower number of text.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52309 Posts

Posted - 10/27/2013 :  02:28:05  Show Profile  Reply with Quote
i usually dump contents onto a file and then check value inside it.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

sqlps
Starting Member

India
8 Posts

Posted - 10/27/2013 :  13:10:21  Show Profile  Reply with Quote
Thank you, James ,Vishakh.
cpuld you please explain how to dump the result into file

Edited by - sqlps on 10/27/2013 13:19:58
Go to Top of Page

James K
Flowing Fount of Yak Knowledge

3559 Posts

Posted - 10/27/2013 :  13:22:49  Show Profile  Reply with Quote
quote:
Originally posted by sqlps

Thank you, James ,Vishakh.
cpuld you please explain how to dump the result into file

In SSMS select Query -> Results To -> Results To File and then run the query.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52309 Posts

Posted - 10/27/2013 :  14:32:33  Show Profile  Reply with Quote
quote:
Originally posted by sqlps

Thank you, James ,Vishakh.
cpuld you please explain how to dump the result into file


simply select results to file option
or alternatively use Export Import wizard

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000