Crystal Reports - Stored Procedure qu... Chalanachithram.com | Topics | Search
Hide Clipart | Log Out | Register | Edit Profile

Last 30 mins | 1 | 2 | 4 hours     Last 1 | 7 Days

Chalanachithram.com DB » Archives » Archive through June 30, 2010 » Crystal Reports - Stored Procedure question « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Gotcha
Side Hero
Username: Gotcha

Post Number: 6540
Registered: 02-2008
Posted From: 98.206.204.119

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, June 29, 2010 - 10:41 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

inko way write sql to execute sp directly like
exec spabc '123', 'abc'
This real estate is for sale.
Top of pagePrevious messageNext messageBottom of page Link to this message

Andhrawala
Side Hero
Username: Andhrawala

Post Number: 2715
Registered: 03-2008
Posted From: 192.58.204.226

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, June 29, 2010 - 10:29 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Gotcha:

whats the harm if view brings all the data. remember view does not store the data it just shows the data in the way u want. so table lo ela undo view lo kuda alage untundi. so table index batti view perfrmance kuda untundi kada.




Crystal is struggling to filter the data in the frontend

where as if we do the filteration etc at the database level report will be faster

The view query which takes few seconds is takinga rnd 6-10 minutes from the report
Top of pagePrevious messageNext messageBottom of page Link to this message

Gotcha
Side Hero
Username: Gotcha

Post Number: 6538
Registered: 02-2008
Posted From: 98.206.204.119

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, June 29, 2010 - 10:15 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

ok now i undertood what u mean.

whats the harm if view brings all the data. remember view does not store the data it just shows the data in the way u want. so table lo ela undo view lo kuda alage untundi. so table index batti view perfrmance kuda untundi kada.
This real estate is for sale.
Top of pagePrevious messageNext messageBottom of page Link to this message

Gotcha
Side Hero
Username: Gotcha

Post Number: 6537
Registered: 02-2008
Posted From: 98.206.204.119

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, June 29, 2010 - 10:08 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Andhrawala:

Can I do like this


create View Vname(s as integer) as
(
Select * from table where custid=s

) yes


Can I now query like this

Select * from Vname(10)



This real estate is for sale.
Top of pagePrevious messageNext messageBottom of page Link to this message

Andhrawala
Side Hero
Username: Andhrawala

Post Number: 2714
Registered: 03-2008
Posted From: 66.57.127.83

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, June 29, 2010 - 10:03 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Rekkadithe_gani_dokkadadhu:

try this way
select s.abc s.cde s.ghi FROM viewName s where s.ghi condition order by ...




Can I do like this


create View Vname(s as integer) as
(
Select * from table where custid=s

)


Can I now query like this

Select * from Vname(10)
Top of pagePrevious messageNext messageBottom of page Link to this message

Andhrawala
Side Hero
Username: Andhrawala

Post Number: 2713
Registered: 03-2008
Posted From: 66.57.127.83

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, June 29, 2010 - 10:00 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Gotcha:

view lo kuda where condition petachu kada like in SP.




u mean parameteric view??
Top of pagePrevious messageNext messageBottom of page Link to this message

Gotcha
Side Hero
Username: Gotcha

Post Number: 6536
Registered: 02-2008
Posted From: 98.206.204.119

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, June 29, 2010 - 09:03 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

bump to andhrawala.
did the view work?
This real estate is for sale.
Top of pagePrevious messageNext messageBottom of page Link to this message

Rekkadithe_gani_dokkadadhu
Side Hero
Username: Rekkadithe_gani_dokkadadhu

Post Number: 2012
Registered: 01-2010
Posted From: 165.95.12.85

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, June 29, 2010 - 01:13 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Andhrawala:

View returns the whole data and it has to be filtered in the Crystal Reports where as with SP data filtering is done on the server


try this way
select s.abc s.cde s.ghi FROM viewName s where s.ghi condition order by ...
పని లేని M పిల్లి తల గొరకడం= ట్విట్టరింగ్
Top of pagePrevious messageNext messageBottom of page Link to this message

Gotcha
Side Hero
Username: Gotcha

Post Number: 6528
Registered: 02-2008
Posted From: 98.206.204.119

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, June 28, 2010 - 11:15 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Andhrawala:


view lo kuda where condition petachu kada like in SP.
This real estate is for sale.
Top of pagePrevious messageNext messageBottom of page Link to this message

Andhrawala
Side Hero
Username: Andhrawala

Post Number: 2707
Registered: 03-2008
Posted From: 66.57.127.83

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, June 28, 2010 - 10:33 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Gotcha:

stored procedure work avakapote views try cheyavachu kada. views using udf can do anything sp can do kada




Correct me if I am wrong

View returns the whole data and it has to be filtered in the Crystal Reports where as with SP data filtering is done on the server
Top of pagePrevious messageNext messageBottom of page Link to this message

Gotcha
Side Hero
Username: Gotcha

Post Number: 6523
Registered: 02-2008
Posted From: 98.206.204.119

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, June 28, 2010 - 07:50 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Andhrawala:

Looks like the stored procedure is not comming in Tables collection.


stored procedure work avakapote views try cheyavachu kada. views using udf can do anything sp can do kada.
This real estate is for sale.
Top of pagePrevious messageNext messageBottom of page Link to this message

Spy_india
Side Hero
Username: Spy_india

Post Number: 3306
Registered: 02-2008
Posted From: 135.214.150.100

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, June 28, 2010 - 06:37 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)



eppudooo 6 ella kritam work chesaa clear gaa gurtu leduu ippudu

google maataki haarati ivvandi :-)
Top of pagePrevious messageNext messageBottom of page Link to this message

Andhrawala
Side Hero
Username: Andhrawala

Post Number: 2706
Registered: 03-2008
Posted From: 66.57.127.83

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, June 28, 2010 - 05:56 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Gotcha:

right click on report, select database
- database expert




nee yenks. I shall be able to change it using code in runtime.

for tables, we loop thro tables collection and set dbserver anme, user id and password.

Looks like the stored procedure is not comming in Tables collection.

andhuke adigindhii
Top of pagePrevious messageNext messageBottom of page Link to this message

Gotcha
Side Hero
Username: Gotcha

Post Number: 6517
Registered: 02-2008
Posted From: 8.19.193.14

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, June 28, 2010 - 03:11 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

right click on report, select database - database expert
This real estate is for sale.
Top of pagePrevious messageNext messageBottom of page Link to this message

Andhrawala
Side Hero
Username: Andhrawala

Post Number: 2705
Registered: 03-2008
Posted From: 192.58.204.226

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, June 28, 2010 - 02:37 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

How do we change the connection parameters of the stored prcoedure in a Crystal report from one server to another

Add Your Message Here
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image HASH(0x9caa214){Movie Clipart}
Show / hide regular icons selection options

Click on following links to open cliparts by Alphabetical Order

 A   B   C   D   E   F   G   H   I   J   K   L   M  

 N   O   P   Q   R   S   T   U   V   W   X   Y   Z  

Show / Hide Filmy icons selection options

Click on following links to open cliparts by Alphabetical Order

 A   B   C   D   E   F   G   H   I   J   K   L   M  

 N   O   P   Q   R   S   T   U   V   W   X   Y   Z  

Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: