473,396 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

SSRS error

i have a stored procedure with a cursor in it...and in the result set its going to produce two o/p tables


result:

col1 col2 col3 col4 col5
Edit false false 5555555555 NULL
New Record false NULL NULL NULL


column1 column2 column3 column4 column5
New Record 6B3 03 31 S01ECC60UNI
New Record 6B4 03 31 S01ECC60UNI
New Record 6B5 04 31 n S01ECC60UNI


when i used this Procedure in SSRS.............its producing an error like

Invalid length parameter passed to the SUBSTRING function.


but i was able to get result set in management studio with out errors................


n i used in my SP like


elect @WhereClause5 = @WhereClause5 + ' n.' +
(Reverse(substring(Reverse(Objectname), 0, charindex('.', Reverse(Objectname))) ) + ' , ') + ' b.' +
(Reverse(substring(Reverse(Objectname), 0, charindex('.', Reverse(Objectname))) )+ ' , ')
from dbo.basetable
where RuleID = @baseObject
Apr 16 '08 #1
3 1342
ck9663
2,878 Expert 2GB
I think it's because you're starting position on substring is zero.

-- CK
Apr 16 '08 #2
eveni tried from 1 i got same error
Apr 17 '08 #3
ck9663
2,878 Expert 2GB
Try putting your entire query in a string and display or output it in a text file. The objective is to get the actual query and run it.

-- CK
Apr 17 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Max2006 | last post by:
Hi, I am developing a web application on windows XP. A page within my application needs to access to SSRS running on the same machine. Once the web application tries to consume the SSRS web...
0
by: Wes Groleau | last post by:
Is there a reasonably simple way to dump an SSRS report into Excel format automatically at a scheduled time without using Report Manager/Report Server? Creating the report was easy, but we seem...
0
by: jobs | last post by:
Hi. I've got an asp.net website with ssrs reportviewer. The site works great. If I compile the site as follows: aspnet_compiler -f -u -v the reportviewer stops does not work and gives me...
0
by: jobs | last post by:
Re: SSRS report viewer Execution ' ' cannot be found (rsExecutionNotFound) Reserved.ReportViewerWebControl.axd Every now and then, my users get this error while in the Reportviewer. Usually,...
1
by: Jason1983 | last post by:
I have SSRS deployed on a machine. My problem is whenever I create a new SSRS report project in Visual Studio .NET, I have to change the "TargetServerURL" name in the project properties to reflect...
0
by: Aswanth | last post by:
I'm Working with Asp.Net with C#.. & I'm Generating Reports in SSRS-2005.. Till Now I'm Generating Reports in SSRS-2005 with Stored Procedure.. in Which I'm Generating Reports for One...
0
by: Aswanth | last post by:
I'm Using Asp.Net with C# & SSRS 2005 for Generating Reports.. I'm Having HUGE Data in Text Log File.. I want to Get this Data from this Log File & to Generate REPORTS in SSRS 2005.. Please...
0
by: abidthayyil | last post by:
Hello, I was working on SSRS 2005 as part of SQL Server 2005 Express Edition with Advanced Services Sp1. I successfully developed a custom reporting application. It was working fine. Then I...
0
by: mbewers1 | last post by:
Is there a way in which I can re-direct an unauthorised user who tries to view a report in SQL Server Reporting Services to show a custom error message rather than show the unfriendly SSRS error...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.