| | |
Regarding the CrystalReport with asp.net
Please support our ASP.NET advertiser: Intel Parallel Studio Home
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: validation of textbox in gridview
- Next Thread: CMS
| Thread Tools | Search this Thread |
.net 2.0 3.5 ajax alltypeofvideos appliances asp asp.net beginner box browser businesslogiclayer button c# cac checkbox class commonfunctions compatible content contenttype control countryselector courier dataaccesslayer database datagrid datagridview datalist deployment development dgv dialog dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol fileuploader fill findcontrol flash flv gridview gudi iis javascript list listbox login menu microsoft mouse mssql nameisnotdeclared news novell numerical opera order panelmasterpagebuttoncontrols problem radio ratings redirect registration relationaldatabases reportemail schoolproject search security serializesmo.table sessionvariables silverlight smoobjects software sql sql-server sqlserver2005 ssl tracking treeview validatedate validation vb.net videos vista visual-studio visualstudio vs2008 web webapplications webarchitecture webdevelopment webprogramming webservice wizard xsl youareanotmemberofthedebuggerusers





