Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SQL Server nvarchar(max) fields are truncated Expand / Collapse
Author
Message
Posted Wednesday, September 12, 2012 6:59 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Thursday, October 9, 2014 7:14 AM
Points: 148, Visits: 294
My Access 2003 (or 2007) has linked tables to SQL Server 2008 (I'm using SQL Native Client 10). Forms, reports and queries are, naturally, local. Problem: all data nvarchar(max) fields are truncated - in Access the record is chopped - ~ 255 from the end of the record. Can it be fixed? And if yes then HOW?
Post #1357952
Posted Wednesday, September 12, 2012 1:11 PM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Today @ 8:21 PM
Points: 1,395, Visits: 6,612
What type are the Access datafields? Memo?
Post #1358175
Posted Wednesday, September 12, 2012 2:18 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Thursday, October 9, 2014 7:14 AM
Points: 148, Visits: 294
Yes - memo
Post #1358205
Posted Thursday, September 13, 2012 3:23 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Today @ 8:21 PM
Points: 1,395, Visits: 6,612
I don't have the time to test it properly.
Same problem mentioned

Do you have the problem in a blank access 2010 database? As 2003/2007 is out of active support. Office life cycle
Post #1358423
Posted Thursday, September 13, 2012 7:56 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Thursday, October 9, 2014 7:14 AM
Points: 148, Visits: 294
No 2010. Why no active support for 2003-2007 (by Microsoft?)
Actually I found the solution - changed (n)varchar(max) to text, and this one Access handles as memo.
Thanks
Post #1358575
Posted Thursday, September 13, 2012 10:48 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 1:04 PM
Points: 13,086, Visits: 12,553
valeryk2000 (9/13/2012)
No 2010. Why no active support for 2003-2007 (by Microsoft?)
Actually I found the solution - changed (n)varchar(max) to text, and this one Access handles as memo.
Thanks


That may work short term but in the long run that is not going to survive. The text datatype has been deprecated and will be removed in the future.


_______________________________________________________________

Need help? Help us help you.

Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

Need to split a string? Try Jeff Moden's splitter.

Cross Tabs and Pivots, Part 1 – Converting Rows to Columns
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs
Understanding and Using APPLY (Part 1)
Understanding and Using APPLY (Part 2)
Post #1358716
Posted Thursday, September 13, 2012 1:51 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Thursday, October 9, 2014 7:14 AM
Points: 148, Visits: 294


That may work short term but in the long run that is not going to survive. The text datatype has been deprecated and will be removed in the future.

It will happen to versions later that 2008.
Post #1358846
Posted Thursday, September 13, 2012 2:02 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 1:04 PM
Points: 13,086, Visits: 12,553
valeryk2000 (9/13/2012)


That may work short term but in the long run that is not going to survive. The text datatype has been deprecated and will be removed in the future.

It will happen to versions later that 2008.


The text datatype is still available even in sql 2012 but it will go away at some point in the future.


_______________________________________________________________

Need help? Help us help you.

Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

Need to split a string? Try Jeff Moden's splitter.

Cross Tabs and Pivots, Part 1 – Converting Rows to Columns
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs
Understanding and Using APPLY (Part 1)
Understanding and Using APPLY (Part 2)
Post #1358854
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse