| | |
Regarding the CrystalReport with asp.net
Thread Solved |
•
•
Join Date: Sep 2007
Posts: 10
Reputation:
Solved Threads: 1
Hi all,
i want to create one crystalreport from following storeprocedure
This is not the actual code but its a demo of original, i'm using this type of code because i want to join two or more databases with supplied database name like
@dbName+"Connection"
where @dbName is the supplied argument
the problem is when i choose this procedure as the database field for the crystal report the select fields (table columns of the query ) are not displaying
i also tried
still it is not working
i dnt want to create a separate dataset or i dnt want to change the logic of the entire.. !!!
any other suggestions are always welcome
Thanks
i want to create one crystalreport from following storeprocedure
SQL Syntax (Toggle Plain Text)
CREATE PROCEDURE dbo.usp_proc1 ( @ID as INT ) as DECLARE @Var1 as VARCHAR(1000); SET @Var1 = ' select ID,Name,Email from Demo where ID='+Convert(VARCHAR,@ID) print @Var1; exec(@Var1);
This is not the actual code but its a demo of original, i'm using this type of code because i want to join two or more databases with supplied database name like
@dbName+"Connection"
where @dbName is the supplied argument
the problem is when i choose this procedure as the database field for the crystal report the select fields (table columns of the query ) are not displaying
i also tried
SQL Syntax (Toggle Plain Text)
CREATE PROCEDURE dbo.usp_proc1 ( @ID as INT ) as DECLARE @Var1 as VARCHAR(1000); SET @Var1 = ' select ID,Name,Email from Demo where ID='+Convert(VARCHAR,@ID) print @Var1; exec(@Var1); /* select '' as ID,'' as Name,'' as Email */
still it is not working
i dnt want to create a separate dataset or i dnt want to change the logic of the entire.. !!!
any other suggestions are always welcome
Thanks
![]() |
Similar Threads
- Printing problem with crystalreportviewer (ASP.NET)
- how to insert textbox and dropdownlist in crystalreport in asp.net2005 with c# (ASP.NET)
- crystalreport in asp.net 2005 with c# (ASP.NET)
- crystal reports runtime design issue (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: BeginnerQuestions to create WebSite
- Next Thread: CMS
Views: 740 | Replies: 0
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net .net-security-trust 2.0 3.5 2005 ajax ajax-doc application asp asp.net asp.net-mvc asp.net_hw_sw authentication authorization beginner bottomasp.net browser button c# captcha chat checkbox click compatible connectionstring control crystalreport dataaccesslayer database datagridview datalist deployment development dgv dropdown dynamically edit editor email encryption feedback fill flash folder form forms gridview homeedition identity iframe iis impersonation javascript jquery list localhost login maps membership mysql object order panelmasterpagebuttoncontrols parent pdf problem profile purchase question ratings read redirect refer relationaldatabases request.form search security server session sessionvariables sharepoint silverlight sql sql-server sqlexpress-attach theft tracking update user validation vb.net vista visualstudio web webcam webdevelopemnt webservice website windows-auth xml





