Showing posts with label missing. Show all posts
Showing posts with label missing. Show all posts

Tuesday, March 27, 2012

Consistant dates for use in querys

I want to make some UDF()s to preset dates for a slew of reports that I need
to do.
In SQL Server I'm missing the mark in date math. I need to get a few basic
dates and I'll roll with the others
StartofLastMonth
EndofLastMonth
StartofLastW
EndofLastW
StartofCurrentMonth
EndofCurrentMonth
YesterdayWithWends
Is there any way to detect a holiday and know that business is closed? We
B2B with banks so we will be closed on Columbus Day! How can my
Yesterday... know that on Oct 11th it should really use Oct 7?
TIA
__StephenStephen,
Check out Aaron's page:
http://www.aspfaq.com/show.asp?id=2519
HTH
Jerry
"Stephen Russell" <srussell@.transactiongraphics.com> wrote in message
news:ufmEpv1yFHA.2516@.TK2MSFTNGP12.phx.gbl...
>I want to make some UDF()s to preset dates for a slew of reports that I
>need to do.
> In SQL Server I'm missing the mark in date math. I need to get a few
> basic dates and I'll roll with the others
> StartofLastMonth
> EndofLastMonth
> StartofLastW
> EndofLastW
> StartofCurrentMonth
> EndofCurrentMonth
> YesterdayWithWends
> Is there any way to detect a holiday and know that business is closed? We
> B2B with banks so we will be closed on Columbus Day! How can my
> Yesterday... know that on Oct 11th it should really use Oct 7?
> TIA
> __Stephen
>

Wednesday, March 7, 2012

Connection to Analysis Server 9.0 option missing

I'm trying to connect to an OLAP cube on our SQL Server 2005 machine which is running Analysis Services (9.0). When I am trying to use the Crystal Reports menu in Visual Studio and selecting 'Crystal Reports', 'Database Expert', 'Create New Connection', 'OLAP', 'Add', the only Analysis Services option I get is for Microsoft OLE DB Provider for OLAP Services 8.0 which is SQL Server 2000. I cannot get the 9.0 provider to show.

HOWEVER: If I am in Crystal Reports itself and try to connect to Analysis Services 9.0, the option is there and I can connect. Note that if I try and then run this report from inside Visual Studio via Crystal Report Viewer, the report fails probably because it does not know where the 9.0 provider is....?

Microsoft Visual Studio 2005 Professional
Version 8.0.50727.762 (SP.050727-7600)


Crystal Reports XI Release 2 Developer Edition is also installed.

I've also installed a Crystal Reports patch form Business Objects called

'Crystal Reports XI Release 2

Support for MS SQL Server

2005 Analysis Services'


Any help?

I had this same problem, install the OLEDB 9.0 driver for analysis services on the server where BO lives:

http://www.microsoft.com/downloads/details.aspx?familyid=df0ba5aa-b4bd-4705-aa0a-b477ba72a9cb&displaylang=en

That's only half the battle, you have to setup an spn for anaylsis services, trust things for delegation. You'll have to get a friendly domain admin to help. Here is a great white paper the BO support refered me to:

http://support.businessobjects.com/communityCS/TechnicalPapers/bo_voyager_xi_r2_configuring_msas_security.pdf

Connection to Analysis Server 9.0 option missing

I'm trying to connect to an OLAP cube on our SQL Server 2005 machine which is running Analysis Services (9.0). When I am trying to use the Crystal Reports menu in Visual Studio and selecting 'Crystal Reports', 'Database Expert', 'Create New Connection', 'OLAP', 'Add', the only Analysis Services option I get is for Microsoft OLE DB Provider for OLAP Services 8.0 which is SQL Server 2000. I cannot get the 9.0 provider to show.

HOWEVER: If I am in Crystal Reports itself and try to connect to Analysis Services 9.0, the option is there and I can connect. Note that if I try and then run this report from inside Visual Studio via Crystal Report Viewer, the report fails probably because it does not know where the 9.0 provider is....?

Microsoft Visual Studio 2005 Professional
Version 8.0.50727.762 (SP.050727-7600)


Crystal Reports XI Release 2 Developer Edition is also installed.

I've also installed a Crystal Reports patch form Business Objects called

'Crystal Reports XI Release 2

Support for MS SQL Server

2005 Analysis Services'


Any help?

I had this same problem, install the OLEDB 9.0 driver for analysis services on the server where BO lives:

http://www.microsoft.com/downloads/details.aspx?familyid=df0ba5aa-b4bd-4705-aa0a-b477ba72a9cb&displaylang=en

That's only half the battle, you have to setup an spn for anaylsis services, trust things for delegation. You'll have to get a friendly domain admin to help. Here is a great white paper the BO support refered me to:

http://support.businessobjects.com/communityCS/TechnicalPapers/bo_voyager_xi_r2_configuring_msas_security.pdf

Friday, February 24, 2012

Connection String Length error

Does anyone know if there is a limit to the length a connection string can
be? Or if there is a configuration setting that I am missing. We have a
XML doc which contains the connection strings for multiple database which we
pass to our custom data extension which then figures out which database to
connect to based on other parameters which are passed in. The error we are
getting is that the connection string cannot be > than 1024 characters. Any
help would be appreciated.
-JonDon't know but you could stuff a simple connection string with spaces to see
if it wokrs at 1023 and fails at 1025 for example...
Is such as length expected ? Heve you checked what the connection string
actually contains (especially white spaces ?) Looks really huge...
--
Patrice
<Jon Meyer> a écrit dans le message de news:
eqWjRnUwGHA.4700@.TK2MSFTNGP03.phx.gbl...
> Does anyone know if there is a limit to the length a connection string can
> be? Or if there is a configuration setting that I am missing. We have a
> XML doc which contains the connection strings for multiple database which
> we pass to our custom data extension which then figures out which database
> to connect to based on other parameters which are passed in. The error we
> are getting is that the connection string cannot be > than 1024
> characters. Any help would be appreciated.
> -Jon
>|||I have tried passing in a connection string which is less than 1024
characters and the problem is resolved. There is another thing I have
learned. We have an application which programatically adds a subscription
to the server. When a subscription is added in this manner the reports work
as expected. However, if I try to run the report from the report manager
via the intranet the report fails as described below. I not sure if this
information is of any help. As a further check I'll run some diff tools
against what I'm passing in. Maybe there is a difference I cannot see by
looking at the text.
-Jon
"Patrice" <scribe@.chez.com> wrote in message
news:eTIjY8UwGHA.4872@.TK2MSFTNGP02.phx.gbl...
> Don't know but you could stuff a simple connection string with spaces to
> see if it wokrs at 1023 and fails at 1025 for example...
> Is such as length expected ? Heve you checked what the connection string
> actually contains (especially white spaces ?) Looks really huge...
> --
> Patrice
> <Jon Meyer> a écrit dans le message de news:
> eqWjRnUwGHA.4700@.TK2MSFTNGP03.phx.gbl...
>> Does anyone know if there is a limit to the length a connection string
>> can be? Or if there is a configuration setting that I am missing. We
>> have a XML doc which contains the connection strings for multiple
>> database which we pass to our custom data extension which then figures
>> out which database to connect to based on other parameters which are
>> passed in. The error we are getting is that the connection string cannot
>> be > than 1024 characters. Any help would be appreciated.
>> -Jon
>|||Really strange. 1024 is more than 10 lines of 80 characters which look like
really huge for a connection string... My guess would be that you have
indenting or something similar in your XML file that causes white spaces to
be added...
--
Patrice
<Jon Meyer> a écrit dans le message de news:
e2sL%23sVwGHA.5044@.TK2MSFTNGP05.phx.gbl...
>I have tried passing in a connection string which is less than 1024
>characters and the problem is resolved. There is another thing I have
>learned. We have an application which programatically adds a subscription
>to the server. When a subscription is added in this manner the reports
>work as expected. However, if I try to run the report from the report
>manager via the intranet the report fails as described below. I not sure
>if this information is of any help. As a further check I'll run some diff
>tools against what I'm passing in. Maybe there is a difference I cannot
>see by looking at the text.
> -Jon
>
> "Patrice" <scribe@.chez.com> wrote in message
> news:eTIjY8UwGHA.4872@.TK2MSFTNGP02.phx.gbl...
>> Don't know but you could stuff a simple connection string with spaces to
>> see if it wokrs at 1023 and fails at 1025 for example...
>> Is such as length expected ? Heve you checked what the connection string
>> actually contains (especially white spaces ?) Looks really huge...
>> --
>> Patrice
>> <Jon Meyer> a écrit dans le message de news:
>> eqWjRnUwGHA.4700@.TK2MSFTNGP03.phx.gbl...
>> Does anyone know if there is a limit to the length a connection string
>> can be? Or if there is a configuration setting that I am missing. We
>> have a XML doc which contains the connection strings for multiple
>> database which we pass to our custom data extension which then figures
>> out which database to connect to based on other parameters which are
>> passed in. The error we are getting is that the connection string
>> cannot be > than 1024 characters. Any help would be appreciated.
>> -Jon
>>
>