Showing posts with label directly. Show all posts
Showing posts with label directly. Show all posts

Monday, March 19, 2012

Calling a UDF from ADO

Can you call a User-defined Function directly from ADO or ADO.NET or do you
have to wrap it in a stored procedure. I would test this but can't right now
- sorry.
thanksselect dbo.MyFunction('blah') as hello
Call like any other sql query in ADO.
Robbe Morris - 2004/2005 Microsoft MVP C#
http://www.masterado.net
"brian" <brian@.discussions.microsoft.com> wrote in message
news:70389B03-B9D1-43E5-96EA-219BF0C53632@.microsoft.com...
> Can you call a User-defined Function directly from ADO or ADO.NET or do
> you
> have to wrap it in a stored procedure. I would test this but can't right
> now
> - sorry.
> thanks|||"brian" wrote:

> Can you call a User-defined Function directly from ADO or ADO.NET or do
> you
> have to wrap it in a stored procedure. I would test this but can't right
> now
> - sorry.
> thanks
You can execute a UDF and get the results back with any library that can
execute a texual command: for example, given these two functions...
create function scalar_func() returns int as begin
return 5
end
go
create function tab_func() returns table as
return (
select * from some_madeup_table
)
go
...You can (using ADO with VB 6)...
Set SomeRS = SomeConn.Execute("select dbo.scalar_func() as 'some_col'")
Set SomeRS = SomeConn.Execute("select * from dbo.tab_func()")
Craig

Wednesday, March 7, 2012

call report directly in pdf

hi there,

i want to call a report directly in pdf not in rdl.

anyone knows this?

What do you mean 'call it'? Do you mean you want the report to display in PDF by default?
I think this is just a matter of calling it with the right paramters. Ibelieve if you look at the reporting services books online there issomething about passing what format the report is displayed in when itis called.
I am assuming you will have a link from someplace (application, email, etc) to this report?
|||

I just sent out an email concerning this - i hope this helps u out...

This is just an FYI for the Microsoft Reports:

We can suppress the parameters and exporting functionality of Microsoft reports via the command line.

We can hide parameters by appending &rc:Parameters=false to the url as shown below

/ReportServer?/samplereports/abc&rs:Command=Render&rs:Format=HTML4.0&rc:Parameters=false

And we can change the format by appending a format line as shown below:

We can change the format to PDF,Excel or any of the other supported file types.

/ReportServer?/samplereports/abc&rs:Command=Render&rs:Format=HTML4.0&rc:Parameters=false

Saturday, February 25, 2012

call a sap remote-function-module from t-sql Stored-Proedure

Hello,

is it possible to call an sap remote-function-module directly from a stored-procedure in SQL-Server-2005?

If yes, where can I find an example?

Thanks

Gerd

Hi,

Never touched SAP, but can you run the remote function module from a DOS prompt? if so, could you use xp_cmdshell from the extended stored procedures?

Just an idea :)

Cheers,
Menthos