Topics | Search Log Out | Register | Edit Profile
Hide Clipart | Banned/Unbanned User Log | Moderator Login History | Thread Delete/Move Log | Last 30 mins | 1 | 2
Crystal Reports - Stored Procedure qu...

Chalanachithram.com DB » Archives » Archive through June 30, 2010 » Crystal Reports - Stored Procedure question « Previous Next »
Author 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:       

inko way write sql to execute sp directly like
exec spabc '123', 'abc'
This real estate is for sale.
 

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:       


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
 

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:       

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.
 

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:       


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.
 

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:       


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)
 

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:       


Gotcha:

view lo kuda where condition petachu kada like in SP.




u mean parameteric view??
 

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:       

bump to andhrawala.
did the view work?
This real estate is for sale.
 

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:       


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 పిల్లి తల గొరకడం= ట్విట్టరింగ్
 

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:       


Andhrawala:


view lo kuda where condition petachu kada like in SP.
This real estate is for sale.
 

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:       


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
 

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:       


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.
 

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:       



eppudooo 6 ella kritam work chesaa clear gaa gurtu leduu ippudu

google maataki haarati ivvandi :-)
 

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:       


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
 

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:       

right click on report, select database - database expert
This real estate is for sale.
 

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:       

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(0x1913ef8){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: