Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2005 > SQL Server 2005
|
SQL Server 2005 General discussion of SQL Server *2005* version only.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2005 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 February 20th, 2006, 02:13 AM
Registered User
 
Join Date: Feb 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with AGGREGATE FUNCTIONS in SQL SERVER 200


I created 3 AGGREGATE FUNCTIONS in SQL SERVER 2005. Also i used three of them in SPs. Except one, the other 2 throwing error like :

Msg 6522, Level 16, State 2, Procedure ADDPeerGroupLowerQuartileStatistics, Line 591
A .NET Framework error occurred during execution of user defined routine or aggregate
'LowerQuartile':
System.Data.SqlTypes.SqlTypeException: The buffer is insufficient. Read or write operation
failed.
System.Data.SqlTypes.SqlTypeException:
   at System.Data.SqlTypes.SqlBytes.Write(Int64 offset, Byte[] buffer, Int32 offsetInBuffer,
Int32 count)
   at System.Data.SqlTypes.StreamOnSqlBytes.Write(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.BinaryWriter.Write(String value)
   at LowerQuartiles.Write(BinaryWriter w)

There is no much difference in three of the functions. Though im getting the error like above.
Anyone pls help me in this.

Thanks in Advance,
VikiBoye

 
Old February 20th, 2006, 12:07 PM
Friend of Wrox
 
Join Date: Dec 2005
Posts: 146
Thanks: 0
Thanked 1 Time in 1 Post
Default

VikiBoye,

The group might be able to help better if you pasted your code. First the function that is not working and then one of the functions that is working. Use fc or some other tool to show the differences and then paste that result as well.

David Lundell
Principal Consultant and Trainer
www.mutuallybeneficial.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Connect Seagate Crystal Report with SQL Server 200 abypvarghese SQL Server 2005 6 June 23rd, 2006 03:10 AM
generate XML from SQL server 200 table sasidhar79 SQL Server DTS 0 August 2nd, 2005 04:47 PM
problem 2 connecting SQL Server 200 using ASP.NET nagen111 ADO.NET 5 February 16th, 2005 01:26 AM
sql server functions example mateenmohd Classic ASP Databases 3 June 12th, 2003 05:54 PM





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