Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 12th, 2007, 11:50 PM
Registered User
 
Join Date: Oct 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Data not fitting into field

I have a field called NewProductLink that I am inserting a long hyperlink into. It is of data type varchar and I have set the length to 500. It seems no matter the length I set the field to it cuts off the data of that column at 255 characters as far as I can tell. Is this a limitation of sql server 2000 or am I doing something wrong? Please advise.
 
Old October 13th, 2007, 03:02 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Usually when these kind of things happen, it's the code or stored procedure that cuts of the text.

Are you using a stored procedure? Did you define the parameter for the URL as a varchar(255)

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
 
Old October 13th, 2007, 05:55 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 839
Thanks: 0
Thanked 1 Time in 1 Post
Default

How do you know the data has been "cut off"? Are you using Query Analyzer to view it? If so, QA has a configurable option which limits the number of characters per column displayed (Tools->Options->Results). Try a different setting...

Jeff Mason
[email protected]





Similar Threads
Thread Thread Starter Forum Replies Last Post
Stripping Data from a Field jjc9809 Access VBA 1 July 12th, 2008 08:16 PM
Merging Data in a Field MichelleArmstrong Access 2 November 21st, 2007 07:48 AM
windows not fitting anukagni Access 4 August 7th, 2006 02:07 AM
Fitting a Motherboard to a casing crmpicco HTML Code Clinic 2 October 17th, 2005 05:47 AM
Data field limits rayncarnation Access 1 October 15th, 2005 02:27 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.