15,900,378 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by iCanDivideByZero (Top 29 by date)
iCanDivideByZero
21-Aug-13 12:54pm
View
Really? So you think you its a lost cause or are you being facetious?
iCanDivideByZero
21-Aug-13 11:19am
View
Im not following how these examples are relevant. I need a way to take the xml output generated by the SP and put it in a table.
iCanDivideByZero
21-Aug-13 11:18am
View
By the way, INSERT @TempTable EXECUTE dbo.sp_MySP @SomeParam
causes the following message to appear:
"Column name or number of supplied values does not match table definition"
iCanDivideByZero
21-Aug-13 11:03am
View
The procedure returns a integer, which is not relevant to the XML output that I am trying to retrieve...I know that the procedure returns xml output, as I can see it when it when it runs in sql management studio. I just want to be able to take that output and insert it into a temp table.
iCanDivideByZero
21-Aug-13 10:07am
View
Deleted
sorry for some reason it will not take the example I am trying to show you
iCanDivideByZero
21-Aug-13 10:06am
View
Output parameter...it yields a single xml value e.g. "<row ....="</xml>" col2="" col1="">
Also the "ROW" has three fields, that is why I put three in the table.
iCanDivideByZero
21-Aug-13 7:58am
View
Quick question. Can you declare the @cache TABLE without specifying the id or the colums for the table?
iCanDivideByZero
20-Aug-13 10:36am
View
Dude! That is exactly what I am looking for, Thanks! The output from this very closely matches the SQLXML output I have to match up to.
iCanDivideByZero
20-Aug-13 8:21am
View
Could you please elaborate on this technique, I'm a bit of a noob
iCanDivideByZero
19-Aug-13 15:42pm
View
hmmmm...i tried your idea and received the following error.
Column name or number of supplied values does not match table definition. Could not find stored procedure 'CountCol'
Any clue to what is causing this?
iCanDivideByZero
19-Aug-13 13:46pm
View
You know since I do not have write access I doubt that will work lol
What about creating another SP and that calls the old one and wraps the ouput; not the return value, using FOR XML AUTO???
iCanDivideByZero
19-Aug-13 13:35pm
View
tried that already, and I believe the FOR XML AUTO must do some formatting that the method you mentioned does as, booleans come back as "true" and/or "false", rather "0" or "1" like when you have the clause in place. That is just one of the difference I've seen; which is major enough.
iCanDivideByZero
19-Aug-13 13:33pm
View
Given my circumstances do you think it is feasiable for me to be able to alter the sp then? Can you point me to some examples, so that maybe I can attempt that before having to return to him and try desparately to convince him it cannot be done in the manner he assigned it to me.
iCanDivideByZero
19-Aug-13 13:16pm
View
I have read access to the database, table, views, and stored procedures...however, I cannot modify them it appears. I was given an account with limited access, I am assuming that is all my lead said I required when I was setup.
iCanDivideByZero
19-Aug-13 13:11pm
View
sorry if it is coming across like that, but I AM NOT TRYING TO HACK ANYTHING! This task was given to by my lead and says its possible to get it done...but according to the comments I am getting it sounds like it is not.
iCanDivideByZero
19-Aug-13 13:04pm
View
Unfortunately, since I don't have "modify" access I cannot see what the stored procedure is actually doing to duplicate its functionality.
iCanDivideByZero
19-Aug-13 13:01pm
View
Are there no other options available then?
iCanDivideByZero
19-Aug-13 13:01pm
View
AUTO
iCanDivideByZero
16-Aug-13 16:52pm
View
Oh so your saying create another SP that simply does the same function, but at the necessary code to it. That would work, BUT I am not even able to see the code in the SP I am working with. That level of access was not granted. I feel like i am being screwed here lol
iCanDivideByZero
16-Aug-13 16:45pm
View
It does, but can you elaborate with some psuedo code please.
iCanDivideByZero
27-Jun-13 7:30am
View
I actually ended implementing it they way you mentioned, as I was not having much luck otherwise.
iCanDivideByZero
18-Jun-13 10:00am
View
Hello,
Sorry for the late response. But I was asked not to spend anymore time on this, so I decided to write a round about solution. I basically have a textbox where a date is entered, and once the user presses filter I essentially rebind the reportviewer based on the parameter. This essentially works, even when going through the pages.
I wish I had more time to come to a more eloquent solution, but unfortunately time was not on my side. Thanks for all your help!
iCanDivideByZero
13-Jun-13 12:29pm
View
I tried writing another expression as another avenue, but the results were the same:
CDate(IIF(IsDate(Parameters!DateFilterParam.Value), Parameters!DateFilterParam.Value, Fields!BillDate.Value))
iCanDivideByZero
13-Jun-13 10:52am
View
I did the following: string dateStr = "01/01/0001";//new DateTime().ToShortDateString(); param[0] = new ReportParameter("DateFilterParam", dateStr); I received the same result an error was displayed. So I went ahead and changed my filter to just "=Parameters!DateFilterParam.Value", and the report simply came back empty; no error. Perhaps I am not doing something incorrectly with the setup of the filter maybe?
iCanDivideByZero
13-Jun-13 7:33am
View
Hello,
Sorry for this late response. I tried doing what you mentioned and came up with the same result. Below is the method, perhaps that will shed more light on the situation.
private void BindData()
{
// Bind the report viewer control.
string queryStr = @"SELECT * FROM Invoice_Table";
SqlQueryParameter queryParams = new SqlQueryParameter();
DataSet ds = SqlDataAccessUtility.SQLSelect("tblBilling", queryStr, queryParams,
CommandType.Text);
ReportParameter[] param = new ReportParameter[1];
if (!string.IsNullOrEmpty(DateTextBox.Text))
{
param[0] = new ReportParameter("DateFilterParam", DateTextBox.Text);
}
else
{
param[0] = new ReportParameter("DateFilterParam",
new DateTime().ToShortDateString());
}
rvInvoices.LocalReport.SetParameters(param);
ReportDataSource rds = new ReportDataSource("InvoiceDataSet", ds.Tables[0]);
rvInvoices.LocalReport.DataSources.Clear();
rvInvoices.LocalReport.DataSources.Add(rds);
rvInvoices.LocalReport.Refresh();
rvInvoices.Visible = true;
}
iCanDivideByZero
12-Jun-13 7:52am
View
I tried your solution, but I received the following error on the page at runtime:
"An error has occurred during report processing.
Failed to evaluate the FilterValue of the Tablix ‘Tablix1’."
Here is the filter I used. Perhaps you can see something, that I am not.
"=Parameters!DateFilterParam.Value Or Fields!BillDate.Value"
Please let me know what you and thanks for any help you can give.
iCanDivideByZero
18-Jan-13 17:24pm
View
Sounds good! Now I got some reading to do lol. I will have to process this first before I can say I'll be able to make use of it. But at least I know for sure it's plausible now. Thanks!
iCanDivideByZero
18-Jan-13 16:45pm
View
Yes the links will be good enough, thanks. My apologies turning this into more than a quick Q&A session :)
iCanDivideByZero
18-Jan-13 16:06pm
View
What information could I provide to help. I mean, it sounds you are confirming what I heard. So by implementing a plugin architecture the behavior of the service can be changed/added on to then? That would be great!
Show More