Showing posts with label answers. Show all posts
Showing posts with label answers. Show all posts

Sunday, March 25, 2012

Calling SQL function in C#

Hello,

I am trying to call a SQL Function in C#, as I want to get the value binded back to the column in a datagrid.

Any answers will be appreciated ............Urgent.

:)

coinsdrop, dont know of a way using ado.net to call functions. but as a work around, you could create a stored procedure and select avariable which is set to the value of the function. then youcould use a Sql Command object and call the stored procedureprogrammatically. hope this is helpful. -- jp|||

Hi coinsdrop,

This depends on what kind of result you're retrieving.

If you're getting a record collection as result set, you can create a SqlDataAddapter, fill the result of a SELECT statement to a DataSet.

If you're trying to return some single value, you can use output parameters or return value.

I suggest you take a look at the ADO.NET tutorial. It covers all these technologies.

http://msdn2.microsoft.com/en-us/data/aa937699.aspx

HTH. If this does not answer you question, please feel free to mark it as Not Answered and post your reply. Thanks!

Sunday, March 11, 2012

Calling a SSIS package via SQL ServerAgent

Hi,

I was looking at a previos thread in this very queston and the answers given to it, I tried a SSIS package that works fine on its own but on creating a new job and invoke it, the JOB fails ,it says its not able to locate the file specified,

I tried copying the package to the server machine wher am creating the job,but again the same error; and when i try to alter the protection level of the SSIS package to Server Storage its throwing an error like '' This protection level cant be applied to this destination,The system can't verify that the destination supports storage capacity. this error occurs when saving to XML."

I am using OLE DB Destination in the dataflow task of the SSIS package I ve created. Please guide whr am going wrong. Some detailed steps which has some screenshots depicting step by step procedure of creating a JOB that calls a SSIS package will be highly helpful

Thanks in Advance,

Take a look at http://support.microsoft.com/kb/918760, it explains the various protection levels and how to troubleshoot package execution under Agent.|||

thanks for the link...

but the link does not say anything on how to put the SSIS package on the server where we are creating the job. I did it manually and when I look for the package in the SQL Server agent window (in the package combo) I am not able to locate the package.

When do we any export / import of data through the wizard, we have an option of saving the same as SSIS package right? Those are the packages that get listed :(

Can someone say which is the path I need to put my SSIS package so that it can be picked, I think once its done there shouldn be any issue in executing the same

thanks in advance

|||

The SSIS package should be saved under SSIS Packages\Servername (your SSIS server name).

then in SSMS connect to Integration Services Server and look under StoredPackages\MSDB. The saved package will be there.

Hope this helps

Calling a SSIS package via SQL ServerAgent

Hi,

I was looking at a previos thread in this very queston and the answers given to it, I tried a SSIS package that works fine on its own but on creating a new job and invoke it, the JOB fails ,it says its not able to locate the file specified,

I tried copying the package to the server machine wher am creating the job,but again the same error; and when i try to alter the protection level of the SSIS package to Server Storage its throwing an error like '' This protection level cant be applied to this destination,The system can't verify that the destination supports storage capacity. this error occurs when saving to XML."

I am using OLE DB Destination in the dataflow task of the SSIS package I ve created. Please guide whr am going wrong. Some detailed steps which has some screenshots depicting step by step procedure of creating a JOB that calls a SSIS package will be highly helpful

Thanks in Advance,

Take a look at http://support.microsoft.com/kb/918760, it explains the various protection levels and how to troubleshoot package execution under Agent.|||

thanks for the link...

but the link does not say anything on how to put the SSIS package on the server where we are creating the job. I did it manually and when I look for the package in the SQL Server agent window (in the package combo) I am not able to locate the package.

When do we any export / import of data through the wizard, we have an option of saving the same as SSIS package right? Those are the packages that get listed :(

Can someone say which is the path I need to put my SSIS package so that it can be picked, I think once its done there shouldn be any issue in executing the same

thanks in advance

|||

The SSIS package should be saved under SSIS Packages\Servername (your SSIS server name).

then in SSMS connect to Integration Services Server and look under StoredPackages\MSDB. The saved package will be there.

Hope this helps

Friday, February 24, 2012

Calendar object for parameters

Hi,
I've some searching around this group but haven't found any good
answers on my question. There isn't an out of the box way of
attaching a calendar object to let's say a startdate parameter on a
report. I was reading you could accomplish this through the use of an
active x object. Has anyone attempted this? If not does anyone have
any idea of how it would be accomplished?You'd have to write a custom ASP.NET app with the calendar control and the
report in it, and pass the dates as parameters to the report.
--
Ravi Mumulla (Microsoft)
SQL Server Reporting Services
This posting is provided "AS IS" with no warranties, and confers no rights.
"cordata5" <cordata5@.yahoo.com> wrote in message
news:b4f86058.0409301358.12c0ce47@.posting.google.com...
> Hi,
> I've some searching around this group but haven't found any good
> answers on my question. There isn't an out of the box way of
> attaching a calendar object to let's say a startdate parameter on a
> report. I was reading you could accomplish this through the use of an
> active x object. Has anyone attempted this? If not does anyone have
> any idea of how it would be accomplished?|||I can't seem to get this to work.
In Report Manager I go to the folder I want and upload my aspx parameter
page with the calendars on it. The calendars do not show. Is the bin folder
needed? Where would I put it?
"Ravi Mumulla (Microsoft)" wrote:
> You'd have to write a custom ASP.NET app with the calendar control and the
> report in it, and pass the dates as parameters to the report.
> --
> Ravi Mumulla (Microsoft)
> SQL Server Reporting Services
> This posting is provided "AS IS" with no warranties, and confers no rights.
> "cordata5" <cordata5@.yahoo.com> wrote in message
> news:b4f86058.0409301358.12c0ce47@.posting.google.com...
> > Hi,
> > I've some searching around this group but haven't found any good
> > answers on my question. There isn't an out of the box way of
> > attaching a calendar object to let's say a startdate parameter on a
> > report. I was reading you could accomplish this through the use of an
> > active x object. Has anyone attempted this? If not does anyone have
> > any idea of how it would be accomplished?
>
>|||You should create your own web site. Do not mix your in with Reporting
Services, that is asking for trouble. Note that you also then need to
integrate with RS using either URL integration or webservices.
--
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"BrianW" <BrianW@.discussions.microsoft.com> wrote in message
news:D4AA33F6-E6CB-4806-8286-DD2C876B4F31@.microsoft.com...
> I can't seem to get this to work.
> In Report Manager I go to the folder I want and upload my aspx parameter
> page with the calendars on it. The calendars do not show. Is the bin
folder
> needed? Where would I put it?
> "Ravi Mumulla (Microsoft)" wrote:
> > You'd have to write a custom ASP.NET app with the calendar control and
the
> > report in it, and pass the dates as parameters to the report.
> >
> > --
> > Ravi Mumulla (Microsoft)
> > SQL Server Reporting Services
> >
> > This posting is provided "AS IS" with no warranties, and confers no
rights.
> > "cordata5" <cordata5@.yahoo.com> wrote in message
> > news:b4f86058.0409301358.12c0ce47@.posting.google.com...
> > > Hi,
> > > I've some searching around this group but haven't found any good
> > > answers on my question. There isn't an out of the box way of
> > > attaching a calendar object to let's say a startdate parameter on a
> > > report. I was reading you could accomplish this through the use of an
> > > active x object. Has anyone attempted this? If not does anyone have
> > > any idea of how it would be accomplished?
> >
> >
> >