Showing posts with label project. Show all posts
Showing posts with label project. Show all posts

Thursday, March 29, 2012

Ad-hoc reporting memory consumption

Hi to all, on our project we are facing this problem: our users using report builder are making reports containing several Mb of data (sometimes also 1Gb!). Now it happens that when 3-4 users do a report like that on the server the process w3wp.exe reaches also 10 Gb of memory allocated and then the whole reporting services istance stops working. We want to limit the number of rows that can be extracted from the sql server db using report builder. In the report model reference seems that there is not this kind of option (something like "max rowcount"). Is it possible to set this limit to the user that connects to sql server (something like: whatever is the query this user does, set @.@.rowcount to 10000)? Thanks. Alberto.

Hi Alberto,

We are currently facing your same issue. Did you get some solution to limit the rowcount on reportbuilder models? Thanks in advance for any ideas.

|||

Hi Cato, unluckly it seems that there isn't a good solution. Keep an eye on security filters on report models,this is the only thing that seems to "filter" data.

HTH.

Alberto

Ad-hoc reporting memory consumption

Hi to all, on our project we are facing this problem: our users using report builder are making reports containing several Mb of data (sometimes also 1Gb!). Now it happens that when 3-4 users do a report like that on the server the process w3wp.exe reaches also 10 Gb of memory allocated and then the whole reporting services istance stops working.

We want to limit the number of rows that can be extracted from the sql server db using report builder. In the report model reference seems that there is not this kind of option (something like "max rowcount"). Is it possible to set this limit to the user that connects to sql server (something like: whatever is the query this user does, set @.@.rowcount to 10000)?

Thanks.

Alberto.

Hi Alberto,

We are currently facing your same issue. Did you get some solution to limit the rowcount on reportbuilder models? Thanks in advance for any ideas.

|||

Hi Cato, unluckly it seems that there isn't a good solution. Keep an eye on security filters on report models,this is the only thing that seems to "filter" data.

HTH.

Alberto

Sunday, March 25, 2012

Adding Viewer Controls to WinForms or Web project

With the release of the feature pack for SQL 2005 and the included Datamining Viewer Controls I was wondering three things. 1) How do you add these controls to your toolbox and 2) Are these controls installed with VS 2005 or SQL 2005 and these are just the redistributable versions for systems where VS 2005 and SQL 2005 are not installed? 3) Is there a description of the controls and what each one does?1) How do you add these controls to your toolbox

In the Winform designer, right click on the Toolbox and select 'Choose Items...' menu item. Hit the Brows button and select file 'Microsoft.AnalysisServices.Viewers.dll'. Hit the OK button to add all the viewer controls to your toolbox.

2) Are these controls installed with VS 2005 or SQL 2005 and these are just the redistributable versions for systems where VS 2005 and SQL 2005 are not installed?

The view controls are shipped with SQL 2005 as well as in its separate redistributable available for download.

3) Is there a description of the controls and what each one does?
You can find description of each individual viewer control in SQL Books online.

adding vb and visual C# to Visual Studio 2005 in reporting service

Hi,
Presently visual studio 2005 in SQL server 2005 reporting services has
business intelligence project templates.
I would like to know as to how to add Visual basic and Visual C# project
templates to Visual Studio 2005.
I am new to SQL Server 2005 reporting services.
I would highly appreciate this information.
Thanks for your help.
--
SamKYou have to install those projects. However, after doing this you might have
to re-install report designer. The reason is that SQL Server 2005 comes with
a version of visual studio that it installs if no VS is present. If VS is
present it integrates with it. I have found that if you install VS (for
instance installing VB.Net which installs a full version of Visual Studio)
that you need to re-install the report designer so it integrates with it.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"SamK" <SamK@.discussions.microsoft.com> wrote in message
news:07A0FD1E-9C4A-4FCD-BF5E-65CF12A62AE6@.microsoft.com...
> Hi,
> Presently visual studio 2005 in SQL server 2005 reporting services has
> business intelligence project templates.
> I would like to know as to how to add Visual basic and Visual C# project
> templates to Visual Studio 2005.
> I am new to SQL Server 2005 reporting services.
> I would highly appreciate this information.
> Thanks for your help.
> --
> SamK|||Bruce,
Thanks for your helpful suggestion. This is what I will do.
1) uninstall the Visual Studio 2005 that got installed along with SQL server
2005 reporting services
2) install the full version of Visual Studio 2005.
3) Reinstall the reporting services.
Is this correct?
Best Regards,
SamK
"Bruce L-C [MVP]" wrote:
> You have to install those projects. However, after doing this you might have
> to re-install report designer. The reason is that SQL Server 2005 comes with
> a version of visual studio that it installs if no VS is present. If VS is
> present it integrates with it. I have found that if you install VS (for
> instance installing VB.Net which installs a full version of Visual Studio)
> that you need to re-install the report designer so it integrates with it.
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "SamK" <SamK@.discussions.microsoft.com> wrote in message
> news:07A0FD1E-9C4A-4FCD-BF5E-65CF12A62AE6@.microsoft.com...
> > Hi,
> >
> > Presently visual studio 2005 in SQL server 2005 reporting services has
> > business intelligence project templates.
> > I would like to know as to how to add Visual basic and Visual C# project
> > templates to Visual Studio 2005.
> >
> > I am new to SQL Server 2005 reporting services.
> >
> > I would highly appreciate this information.
> > Thanks for your help.
> > --
> > SamK
>
>|||Yes. That will do what you want.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"SamK" <SamK@.discussions.microsoft.com> wrote in message
news:9BEB930B-CE75-4281-9C0B-A171CCD4D035@.microsoft.com...
> Bruce,
> Thanks for your helpful suggestion. This is what I will do.
> 1) uninstall the Visual Studio 2005 that got installed along with SQL
> server
> 2005 reporting services
> 2) install the full version of Visual Studio 2005.
> 3) Reinstall the reporting services.
> Is this correct?
> Best Regards,
> SamK
>
> "Bruce L-C [MVP]" wrote:
>> You have to install those projects. However, after doing this you might
>> have
>> to re-install report designer. The reason is that SQL Server 2005 comes
>> with
>> a version of visual studio that it installs if no VS is present. If VS is
>> present it integrates with it. I have found that if you install VS (for
>> instance installing VB.Net which installs a full version of Visual
>> Studio)
>> that you need to re-install the report designer so it integrates with it.
>>
>> --
>> Bruce Loehle-Conger
>> MVP SQL Server Reporting Services
>> "SamK" <SamK@.discussions.microsoft.com> wrote in message
>> news:07A0FD1E-9C4A-4FCD-BF5E-65CF12A62AE6@.microsoft.com...
>> > Hi,
>> >
>> > Presently visual studio 2005 in SQL server 2005 reporting services has
>> > business intelligence project templates.
>> > I would like to know as to how to add Visual basic and Visual C#
>> > project
>> > templates to Visual Studio 2005.
>> >
>> > I am new to SQL Server 2005 reporting services.
>> >
>> > I would highly appreciate this information.
>> > Thanks for your help.
>> > --
>> > SamK
>>|||Bruce,
After doing all this two more problems have come up.
1) For web service identity ASPNET is not assigned. the text box is
disabled and it is blank.
2) when I try to open the report manager (http://computername/reports the
application errors out with this message. I would request your help.
Server Error in '/Reports' Application.
----
Could not load file or assembly 'CppCodeProvider, Version=8.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
The module was expected to contain an assembly manifest.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
Exception Details: System.BadImageFormatException: Could not load file or
assembly 'CppCodeProvider, Version=8.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The module was
expected to contain an assembly manifest.
Source Error:
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.
Assembly Load Trace: The following information can be helpful to determine
why the assembly 'CppCodeProvider, Version=8.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value
[HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind
failure logging.
To turn this feature off, remove the registry value
[HKLM\Software\Microsoft\Fusion!EnableLog].
Stack Trace:
[BadImageFormatException: Could not load file or assembly 'CppCodeProvider,
Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of
its dependencies. The module was expected to contain an assembly manifest.]
System.RuntimeTypeHandle._GetTypeByName(String name, Boolean
throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark&
stackMark, Boolean loadTypeFromPartialName) +0
System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError,
Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +72
System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError,
Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +58
System.Type.GetType(String typeName) +48
System.CodeDom.Compiler.CompilerInfo.get_IsCodeDomProviderTypeValid() +9
System.Web.Compilation.CompilationUtil.GetRecompilationHash(CompilationSection ps) +1800
System.Web.Configuration.CompilationSection.get_RecompilationHash() +68
System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDate2(StandardDiskBuildResultCache diskCache) +741
System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDate(StandardDiskBuildResultCache diskCache) +46
System.Web.Compilation.BuildManager.RegularAppRuntimeModeInitialize() +419
System.Web.Compilation.BuildManager.Initialize() +235
System.Web.Compilation.BuildManager.InitializeBuildManager() +228
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags)
+310
[HttpException (0x80004005): Could not load file or assembly
'CppCodeProvider, Version=8.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The module was
expected to contain an assembly manifest.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3435007
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +252
----
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.210
--
SamK
"Bruce L-C [MVP]" wrote:
> Yes. That will do what you want.
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "SamK" <SamK@.discussions.microsoft.com> wrote in message
> news:9BEB930B-CE75-4281-9C0B-A171CCD4D035@.microsoft.com...
> > Bruce,
> >
> > Thanks for your helpful suggestion. This is what I will do.
> > 1) uninstall the Visual Studio 2005 that got installed along with SQL
> > server
> > 2005 reporting services
> > 2) install the full version of Visual Studio 2005.
> > 3) Reinstall the reporting services.
> >
> > Is this correct?
> >
> > Best Regards,
> > SamK
> >
> >
> > "Bruce L-C [MVP]" wrote:
> >
> >> You have to install those projects. However, after doing this you might
> >> have
> >> to re-install report designer. The reason is that SQL Server 2005 comes
> >> with
> >> a version of visual studio that it installs if no VS is present. If VS is
> >> present it integrates with it. I have found that if you install VS (for
> >> instance installing VB.Net which installs a full version of Visual
> >> Studio)
> >> that you need to re-install the report designer so it integrates with it.
> >>
> >>
> >> --
> >> Bruce Loehle-Conger
> >> MVP SQL Server Reporting Services
> >>
> >> "SamK" <SamK@.discussions.microsoft.com> wrote in message
> >> news:07A0FD1E-9C4A-4FCD-BF5E-65CF12A62AE6@.microsoft.com...
> >> > Hi,
> >> >
> >> > Presently visual studio 2005 in SQL server 2005 reporting services has
> >> > business intelligence project templates.
> >> > I would like to know as to how to add Visual basic and Visual C#
> >> > project
> >> > templates to Visual Studio 2005.
> >> >
> >> > I am new to SQL Server 2005 reporting services.
> >> >
> >> > I would highly appreciate this information.
> >> > Thanks for your help.
> >> > --
> >> > SamK
> >>
> >>
> >>
>
>

Tuesday, March 20, 2012

Adding subfolders to to a project

Can subfolders be added to a project?
i want a few folder like : dashboards, full reports , management
reports etc.
in each folder i would like to store only the relevanr .rdl files and
images used in the reports.
but i dont see an option to add a folder when i right click on the
project name.
the only options i get when right clicking is new report or new
dataset.
i know folders can be added on the report server itself using the
manager but then i have to manually move all the files i wish to use in
the report and the report itself, and the next time i deploy the
reports, the updated files wont automaticaly be put in the folders.
any ideas?
thanks,
Gal.In your report solution, you can have several projects.
In Visual Studio (2005), click on your Solution. CLick on File -> Add -> New
project
Choose Reporting Services project
Give your project a name, and make sure the location of it is in the same
folder as the solution. (You'll get a new folder in the solution folder for
your new project)
Click OK, and you now have a sub-project in your solution.
Save your solution to not loose the connections to the new project. (Click
on the Save All, not just Save)
You now have to create all the data sources in your new project. But they
are easy to copy, just copy from your main solution, and paste to the new
project. You have to paste to the project, not in the data sources folder,
as VS gets confused by this... You might have to check the credentials in
your data sources too, sometimes mine are blanked out when I do this.
Kaisa M. Lindahl Lervik
"Galg" <gal.granov@.gmail.com> wrote in message
news:1151411108.304933.276730@.y41g2000cwy.googlegroups.com...
> Can subfolders be added to a project?
> i want a few folder like : dashboards, full reports , management
> reports etc.
> in each folder i would like to store only the relevanr .rdl files and
> images used in the reports.
> but i dont see an option to add a folder when i right click on the
> project name.
> the only options i get when right clicking is new report or new
> dataset.
> i know folders can be added on the report server itself using the
> manager but then i have to manually move all the files i wish to use in
> the report and the report itself, and the next time i deploy the
> reports, the updated files wont automaticaly be put in the folders.
> any ideas?
> thanks,
> Gal.
>|||thanks,
but cant i use the same data source for all?
i want to make a logical sepration of types of reports... no need to created
the same data source a few times.
"Kaisa M. Lindahl Lervik" wrote:
> In your report solution, you can have several projects.
> In Visual Studio (2005), click on your Solution. CLick on File -> Add -> New
> project
> Choose Reporting Services project
> Give your project a name, and make sure the location of it is in the same
> folder as the solution. (You'll get a new folder in the solution folder for
> your new project)
> Click OK, and you now have a sub-project in your solution.
> Save your solution to not loose the connections to the new project. (Click
> on the Save All, not just Save)
> You now have to create all the data sources in your new project. But they
> are easy to copy, just copy from your main solution, and paste to the new
> project. You have to paste to the project, not in the data sources folder,
> as VS gets confused by this... You might have to check the credentials in
> your data sources too, sometimes mine are blanked out when I do this.
> Kaisa M. Lindahl Lervik
>
> "Galg" <gal.granov@.gmail.com> wrote in message
> news:1151411108.304933.276730@.y41g2000cwy.googlegroups.com...
> > Can subfolders be added to a project?
> > i want a few folder like : dashboards, full reports , management
> > reports etc.
> > in each folder i would like to store only the relevanr .rdl files and
> > images used in the reports.
> > but i dont see an option to add a folder when i right click on the
> > project name.
> > the only options i get when right clicking is new report or new
> > dataset.
> >
> > i know folders can be added on the report server itself using the
> > manager but then i have to manually move all the files i wish to use in
> > the report and the report itself, and the next time i deploy the
> > reports, the updated files wont automaticaly be put in the folders.
> >
> > any ideas?
> >
> > thanks,
> >
> > Gal.
> >
>
>

Monday, March 19, 2012

Adding SSMSE 2005 as a Prerequisite to a Visual Studio Setup Project

Hi,

I'm am deploying an application that uses SQL Express and wish to also deploy SSMSE along with it.

I have the .msi but I don't know how to get the setup project to deploy this as it does SQLExpress and .Net Framework 2.0. (and I am using VS 2005 SE)

There is an MS article on creating "Custom Prerequisites" (http://msdn2.microsoft.com/en-us/library/ms165429(VS.80).aspx) which speaks to creating product and project manifests.

Has anyone does this for SSMSE? Or am I going about this in the wrong way?

Thanks in advance,

Keith

Hi Keith,

You're going about this the right way, if you want to use SSMSE as a pre-requisite you'll need to create a custom pre-requisite for this following the instructions on MSDN. (Microsoft has not created this package.) If you have questions about creating your own prerequisites for VS, I would suggest posting those questions to the ClickOnce forum at http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=6&SiteID=1.

One thing to consider is that the licensing of SSMSE is such that it can only be deployed if you are also deploying SQL Express, independent deployment is not part of the license.

Mike

|||

Thanks Mike! I am deploying it with SQL Express as well.

Take care,

Keith

Adding SSMSE 2005 as a Prerequisite to a Visual Studio Setup Project

Hi,

I'm am deploying an application that uses SQL Express and wish to also deploy SSMSE along with it.

I have the .msi but I don't know how to get the setup project to deploy this as it does SQLExpress and .Net Framework 2.0. (and I am using VS 2005 SE)

There is an MS article on creating "Custom Prerequisites" (http://msdn2.microsoft.com/en-us/library/ms165429(VS.80).aspx) which speaks to creating product and project manifests.

Has anyone does this for SSMSE? Or am I going about this in the wrong way?

Thanks in advance,

Keith

Hi Keith,

You're going about this the right way, if you want to use SSMSE as a pre-requisite you'll need to create a custom pre-requisite for this following the instructions on MSDN. (Microsoft has not created this package.) If you have questions about creating your own prerequisites for VS, I would suggest posting those questions to the ClickOnce forum at http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=6&SiteID=1.

One thing to consider is that the licensing of SSMSE is such that it can only be deployed if you are also deploying SQL Express, independent deployment is not part of the license.

Mike

|||

Thanks Mike! I am deploying it with SQL Express as well.

Take care,

Keith

Adding SSMSE 2005 as a Prerequisite to a Visual Studio Setup Project

Hi,

I'm am deploying an application that uses SQL Express and wish to also deploy SSMSE along with it.

I have the .msi but I don't know how to get the setup project to deploy this as it does SQLExpress and .Net Framework 2.0. (and I am using VS 2005 SE)

There is an MS article on creating "Custom Prerequisites" (http://msdn2.microsoft.com/en-us/library/ms165429(VS.80).aspx) which speaks to creating product and project manifests.

Has anyone does this for SSMSE? Or am I going about this in the wrong way?

Thanks in advance,

Keith

Hi Keith,

You're going about this the right way, if you want to use SSMSE as a pre-requisite you'll need to create a custom pre-requisite for this following the instructions on MSDN. (Microsoft has not created this package.) If you have questions about creating your own prerequisites for VS, I would suggest posting those questions to the ClickOnce forum at http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=6&SiteID=1.

One thing to consider is that the licensing of SSMSE is such that it can only be deployed if you are also deploying SQL Express, independent deployment is not part of the license.

Mike

|||

Thanks Mike! I am deploying it with SQL Express as well.

Take care,

Keith

adding sqlexpress sp1/2 into setup project

Hi All,

How can I add sql server express sp1 or sp2 into a setup project I created for an application. Normally sqlserver express is a prerequisite for my app and in deployment vs only adds sqlexpress not the sqlexpress with sp1 or sp2. I know that I need those to make my application run on vista. Any suggestion?

Thanks

The prerequisites in VS are driven by a set of manifests installed with VS that only target SQL Express RTM. Microsoft has not released updates to these prerequisites, but you can build your own prerequisite for SQL Express SP2 by following the directions in the SQL Express blog. Check out the instructions here.

Mike

|||After a long wait I knew that you will reply. I haven't tried your instructions yet but I am sure this is the answer. Thanks for the reply.

adding sqlexpress sp1/2 into setup project

Hi All,

How can I add sql server express sp1 or sp2 into a setup project I created for an application. Normally sqlserver express is a prerequisite for my app and in deployment vs only adds sqlexpress not the sqlexpress with sp1 or sp2. I know that I need those to make my application run on vista. Any suggestion?

Thanks

The prerequisites in VS are driven by a set of manifests installed with VS that only target SQL Express RTM. Microsoft has not released updates to these prerequisites, but you can build your own prerequisite for SQL Express SP2 by following the directions in the SQL Express blog. Check out the instructions here.

Mike

|||After a long wait I knew that you will reply. I haven't tried your instructions yet but I am sure this is the answer. Thanks for the reply.

Thursday, March 8, 2012

Adding page numbers by using the template "Report Model Project"

Hi,
I'm trying - without results - to introduce pagenumbers in my reports
which are made by using the template "Report Model Project" of Visual
Studio 2005. I'm using SQL Server 2005 Reporting Services. Does anybody
know if this is possible en if so how to do it?
Ren=E9René,
You'll need to add a text box to the page footer then set the Expression of
the textbox to
=Globals!PageNumber
or this type of thing is more friendly:
="Page " + cstr(Globals!PageNumber) + " of " + cstr(Globals!TotalPages)
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com|||Hello Paul,
Thanks for your solution, but I can not use it. Your solution is OK
when using the template "Report Server Project" and not for the
template "Report Model Project" of Visual Studio 2005 as I'm using. It
looks that for the "Report Model Project" it is impossible to add a
textbox, a header and/or a footer. I think it is impossible to add a
page number. I hope I'm wrong about this.
Ren=E9|||Hi René,
I must be missing something here. The report model projects I've created are
essentially data universes, and contain no reports. However, reports can
subsequently be created which relate to these reports using the Report
Builder - presumably you are referring to these reports? If this is the
case, you can edit the rdl for these reports. It's not nice, but you could
add a pageFooter element at the bottom (before the </Report> element). For a
simple page number it would look something like that below. I'll find out
for you if there is a way this can be done using the BIDS GUI.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
<PageFooter>
<ReportItems>
<Textbox Name="textbox6">
<Left>2.5cm</Left>
<Top>0.25cm</Top>
<rd:DefaultName>textbox6</rd:DefaultName>
<Width>2.53968cm</Width>
<Style>
<PaddingLeft>2pt</PaddingLeft>
<PaddingBottom>2pt</PaddingBottom>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
</Style>
<CanGrow>true</CanGrow>
<Value>=Globals!PageNumber</Value>
</Textbox>
</ReportItems>
<Height>0.88492cm</Height>
<PrintOnLastPage>true</PrintOnLastPage>
<PrintOnFirstPage>true</PrintOnFirstPage>
</PageFooter>|||Hello Paul,
It works! Thanks.
After using Report Builder I've opened a XML editor and I've added and
adjusted your code.
Ren=E9|||Good news. Keep an eye on this thread though because I'll update it when I
find out definitively if there is an easier way to achieve this through the
BIDS GUI.
Regards,
Paul Ibison

Adding page numbers by using the template "Report Model Project"

Hi,
I'm trying - without results - to introduce pagenumbers in my reports
which are made by using the template "Report Model Project" of Visual
Studio 2005. I'm using SQL Server 2005 Reporting Services. Does anybody
know if this is possible en if so how to do it?=20
Ren=E9Ren,
You'll need to add a text box to the page footer then set the Expression of
the textbox to
=Globals!PageNumber
or this type of thing is more friendly:
="Page " + cstr(Globals!PageNumber) + " of " + cstr(Globals!TotalPages)
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com|||Hello Paul,
Thanks for your solution, but I can not use it. Your solution is OK
when using the template "Report Server Project" and not for the
template "Report Model Project" of Visual Studio 2005 as I'm using. It
looks that for the "Report Model Project" it is impossible to add a
textbox, a header and/or a footer. I think it is impossible to add a
page number. I hope I'm wrong about this. =20
Ren=E9|||Hi Ren,
I must be missing something here. The report model projects I've created are
essentially data universes, and contain no reports. However, reports can
subsequently be created which relate to these reports using the Report
Builder - presumably you are referring to these reports? If this is the
case, you can edit the rdl for these reports. It's not nice, but you could
add a pageFooter element at the bottom (before the </Report> element). For a
simple page number it would look something like that below. I'll find out
for you if there is a way this can be done using the BIDS GUI.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
<PageFooter>
<ReportItems>
<Textbox Name="textbox6">
<Left>2.5cm</Left>
<Top>0.25cm</Top>
<rd:DefaultName>textbox6</rd:DefaultName>
<Width>2.53968cm</Width>
<Style>
<PaddingLeft>2pt</PaddingLeft>
<PaddingBottom>2pt</PaddingBottom>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
</Style>
<CanGrow>true</CanGrow>
<Value>=Globals!PageNumber</Value>
</Textbox>
</ReportItems>
<Height>0.88492cm</Height>
<PrintOnLastPage>true</PrintOnLastPage>
<PrintOnFirstPage>true</PrintOnFirstPage>
</PageFooter>|||Hello Paul,
It works! Thanks.
After using Report Builder I've opened a XML editor and I've added and
adjusted your code. =20
Ren=E9|||Good news. Keep an eye on this thread though because I'll update it when I
find out definitively if there is an easier way to achieve this through the
BIDS GUI.
Regards,
Paul Ibison

adding new queries to Server Management Studio

When ever I hit the CTRL+N to add a new query and then save it, why doesn't it get added to the current project I'm working on? Since it's not added, I have to open Windows Explorer, navigate to the right folder, then drag'n'drop it into the right project in my solution. A lot of work for something it should be doing by default.

What am I missing? Thanks.

This does not appear possible with SQL Server 2005 SP2. Could you file this on Microsoft Connect? http://connect.microsoft.com/SQLServer/Feedback/

Paul A. Mestemaker II

Program Manager

Microsoft SQL Server Manageability

http://blogs.msdn.com/sqlrem/

|||Done, id 275345.

adding new queries to Server Management Studio

When ever I hit the CTRL+N to add a new query and then save it, why doesn't it get added to the current project I'm working on? Since it's not added, I have to open Windows Explorer, navigate to the right folder, then drag'n'drop it into the right project in my solution. A lot of work for something it should be doing by default.

What am I missing? Thanks.

This does not appear possible with SQL Server 2005 SP2. Could you file this on Microsoft Connect? http://connect.microsoft.com/SQLServer/Feedback/

Paul A. Mestemaker II

Program Manager

Microsoft SQL Server Manageability

http://blogs.msdn.com/sqlrem/

|||Done, id 275345.

Adding New Folders to Report Server Project

I am building a reporting services project, that will eventually contain 100+
reports.
I would like to add subfolders to my Report Server project, to help with
organising them (Finance,Warehouse etc).
I frequently perform this task in standard VS projects (class libraries
etc), but I can't find an option to do this here.
Is this possible?You should be able to add new projects to your main solution, which will
create a new folder for each project.
Open your solution.
Right click on the Solution name in your Solution Explorer. Click on Add ->
New Project
Type a name and choose the location. It could be as a subfolder of your
solution, or as a new folder somewhere else.
I haven't figured out how to use Shared Data Sources from different sub
projects, but you can copy existing datasources failry easily between the
different projects, so that's not too much of a problem. And by doing it
like this, you can have datasources connecting to the same database with
different credentials in the same project structure, which is nice.
Kaisa M. Lindahl Lervik
"programmer_mike" <programmermike@.discussions.microsoft.com> wrote in
message news:E0499886-58C5-4F62-AE60-44A025FD2EDF@.microsoft.com...
>I am building a reporting services project, that will eventually contain
>100+
> reports.
> I would like to add subfolders to my Report Server project, to help with
> organising them (Finance,Warehouse etc).
> I frequently perform this task in standard VS projects (class libraries
> etc), but I can't find an option to do this here.
> Is this possible?|||I had considered this option, but I would prefer to add multiple folder to
just one project.
If I reference a second report server project, will I be able to pick up
referenced reports in the Navigation -> Jump to report option. (Similar to
the way in which you can search for referenced datasets in standard projects)
I am planning on having a lot of links between reports in my project, and
this is one of the reason why I wanted to avoid multiple projects.
Thank yo for your comments
"Kaisa M. Lindahl Lervik" wrote:
> You should be able to add new projects to your main solution, which will
> create a new folder for each project.
> Open your solution.
> Right click on the Solution name in your Solution Explorer. Click on Add ->
> New Project
> Type a name and choose the location. It could be as a subfolder of your
> solution, or as a new folder somewhere else.
> I haven't figured out how to use Shared Data Sources from different sub
> projects, but you can copy existing datasources failry easily between the
> different projects, so that's not too much of a problem. And by doing it
> like this, you can have datasources connecting to the same database with
> different credentials in the same project structure, which is nice.
> Kaisa M. Lindahl Lervik
>
> "programmer_mike" <programmermike@.discussions.microsoft.com> wrote in
> message news:E0499886-58C5-4F62-AE60-44A025FD2EDF@.microsoft.com...
> >I am building a reporting services project, that will eventually contain
> >100+
> > reports.
> > I would like to add subfolders to my Report Server project, to help with
> > organising them (Finance,Warehouse etc).
> > I frequently perform this task in standard VS projects (class libraries
> > etc), but I can't find an option to do this here.
> > Is this possible?
>
>|||You can use either jump to URL or with the jump to report you specify the
folder as well as the report name. However, you can only test the report
when deployed.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"programmer_mike" <programmermike@.discussions.microsoft.com> wrote in
message news:EFB1314B-6747-4A16-9A74-280662C68EC9@.microsoft.com...
>I had considered this option, but I would prefer to add multiple folder to
> just one project.
> If I reference a second report server project, will I be able to pick up
> referenced reports in the Navigation -> Jump to report option. (Similar to
> the way in which you can search for referenced datasets in standard
> projects)
> I am planning on having a lot of links between reports in my project, and
> this is one of the reason why I wanted to avoid multiple projects.
> Thank yo for your comments
> "Kaisa M. Lindahl Lervik" wrote:
>> You should be able to add new projects to your main solution, which will
>> create a new folder for each project.
>> Open your solution.
>> Right click on the Solution name in your Solution Explorer. Click on
>> Add ->
>> New Project
>> Type a name and choose the location. It could be as a subfolder of your
>> solution, or as a new folder somewhere else.
>> I haven't figured out how to use Shared Data Sources from different sub
>> projects, but you can copy existing datasources failry easily between the
>> different projects, so that's not too much of a problem. And by doing it
>> like this, you can have datasources connecting to the same database with
>> different credentials in the same project structure, which is nice.
>> Kaisa M. Lindahl Lervik
>>
>> "programmer_mike" <programmermike@.discussions.microsoft.com> wrote in
>> message news:E0499886-58C5-4F62-AE60-44A025FD2EDF@.microsoft.com...
>> >I am building a reporting services project, that will eventually contain
>> >100+
>> > reports.
>> > I would like to add subfolders to my Report Server project, to help
>> > with
>> > organising them (Finance,Warehouse etc).
>> > I frequently perform this task in standard VS projects (class libraries
>> > etc), but I can't find an option to do this here.
>> > Is this possible?
>>|||By test the report I meant test the link.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"programmer_mike" <programmermike@.discussions.microsoft.com> wrote in
message news:EFB1314B-6747-4A16-9A74-280662C68EC9@.microsoft.com...
>I had considered this option, but I would prefer to add multiple folder to
> just one project.
> If I reference a second report server project, will I be able to pick up
> referenced reports in the Navigation -> Jump to report option. (Similar to
> the way in which you can search for referenced datasets in standard
> projects)
> I am planning on having a lot of links between reports in my project, and
> this is one of the reason why I wanted to avoid multiple projects.
> Thank yo for your comments
> "Kaisa M. Lindahl Lervik" wrote:
>> You should be able to add new projects to your main solution, which will
>> create a new folder for each project.
>> Open your solution.
>> Right click on the Solution name in your Solution Explorer. Click on
>> Add ->
>> New Project
>> Type a name and choose the location. It could be as a subfolder of your
>> solution, or as a new folder somewhere else.
>> I haven't figured out how to use Shared Data Sources from different sub
>> projects, but you can copy existing datasources failry easily between the
>> different projects, so that's not too much of a problem. And by doing it
>> like this, you can have datasources connecting to the same database with
>> different credentials in the same project structure, which is nice.
>> Kaisa M. Lindahl Lervik
>>
>> "programmer_mike" <programmermike@.discussions.microsoft.com> wrote in
>> message news:E0499886-58C5-4F62-AE60-44A025FD2EDF@.microsoft.com...
>> >I am building a reporting services project, that will eventually contain
>> >100+
>> > reports.
>> > I would like to add subfolders to my Report Server project, to help
>> > with
>> > organising them (Finance,Warehouse etc).
>> > I frequently perform this task in standard VS projects (class libraries
>> > etc), but I can't find an option to do this here.
>> > Is this possible?
>>

Tuesday, March 6, 2012

Adding MS Access Project

I am VERY NEW to this.
I'm installed the MSDE and it's running on my desktop.
I'm trying to make a new Ms Access Project.
It asks for a user name and password and I supply sa as the user and leave
the password blank.
I get an error back saying that:
Connection Failed
SQLState: '01000'
SQL Server Error: 10054
and more...is that enough of the error for you to know what I'm doing
wrong?
Thanks.
Also, I'm familiar with MS Access frontend/backend setup. When I get it
working, does the project work as the frontend and the SQL database the
backend?
Is there a link to intro info on all of this?
Thanks.
Sorry for the double post. Didn't mean to.
I found that Norton Personal Firewall is blocking this from running. Which
program do I need to allow access. MS Access has access.
Thanks.
"SAC" <someone@.microsoft.com> wrote in message
news:OY3Xbjr8EHA.2900@.TK2MSFTNGP09.phx.gbl...
> I am VERY NEW to this.
> I'm installed the MSDE and it's running on my desktop.
> I'm trying to make a new Ms Access Project.
> It asks for a user name and password and I supply sa as the user and leave
> the password blank.
> I get an error back saying that:
> Connection Failed
> SQLState: '01000'
> SQL Server Error: 10054
> and more...is that enough of the error for you to know what I'm doing
> wrong?
> Thanks.
> Also, I'm familiar with MS Access frontend/backend setup. When I get it
> working, does the project work as the frontend and the SQL database the
> backend?
> Is there a link to intro info on all of this?
> Thanks.
>
>
|||hi,
"SAC" <someone@.microsoft.com> ha scritto nel messaggio
news:OY3Xbjr8EHA.2900@.TK2MSFTNGP09.phx.gbl
> I am VERY NEW to this.
> I'm installed the MSDE and it's running on my desktop.
> I'm trying to make a new Ms Access Project.
> It asks for a user name and password and I supply sa as the user and
> leave the password blank.
> I get an error back saying that:
> Connection Failed
> SQLState: '01000'
> SQL Server Error: 10054
> and more...is that enough of the error for you to know what I'm doing
> wrong?
> Thanks.
> Also, I'm familiar with MS Access frontend/backend setup. When I get
> it working, does the project work as the frontend and the SQL
> database the backend?
> Is there a link to intro info on all of this?
> Thanks.
please have a look at http://tinyurl.com/4vho5
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz/DbaMgr.shtmhttp://italy.mvps.org
DbaMgr2k ver 0.9.1 - DbaMgr ver 0.55.1
(my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
interface)
-- remove DMO to reply

Friday, February 24, 2012

Adding file information to SQL database on file upload

Hi there :)

I'm in the final stage of my asp.net project and one of the last things I need to do is add the following file information to my SQL server 2000 database when a file is uploaded:

First of all I have a resource table to which I need to add:
- filename
- file_path
- file_size
(the resource_id has a auto increment value)

so that should hopefully be straight forward when the file is uploaded. The next step is to reference the new resource_id in my module_resource table. My module resource table consists of:
- resource_id (foreign key)
- module_id (foreign key)

So, adding the module_id is easy enough as I can just get the value using Request.QueryString["module_id"]. The bit that I am unsure about is how to insert the new resource_id from the resource table into the module_resource table on file upload. How is this done? Using one table would solve the issue but I want one resource to be available to all modules - many to many relationship.

Any ideas?

Many thanks :)Since Resource_ID is an Identity column, you should be able to perform a SCOPE_IDENTITY() after the INSERT into the Resource table to pick up the value.

For example:


DECLARE @.resourceID bigint

INSERT INTO
Resource
(
filename,
file_path,
file_size
)
VALUES
(
@.filename,
@.file_path,
@.file_size
)
SELECT @.resource_ID = SCOPE_IDENTITY()

INSERT INTO
Module_Resource
(
module_ID,
resource_ID
)
VALUES
(
@.module_ID,
@.resource_ID
)

Terri

Sunday, February 12, 2012

Adding BI Templates to Visual Studio 2005 - 2008

After installing SQL Server (both 2005 and 2008) sometimes the BI Templates are missing from the new project dialog. Is there a way to find those templates and add them after a SQL Server install? I have searched the web and Microsoft MSDN, but found no information. Thank you if you can help me.

Hi,

From your description, do you mean the Business Intelligence project template disappear in the create project dialogue?

Based on my understanding, you can try to open "SQL Server Business Intelligence Development Studio" from SQLServer 2005 menu group instead of starting Visual Studio designer. If you still can't find the business intelligence project template. Please make sure that if you have choose the "SQLServer Reporting Service" to be installed while you installing the SQLServer2005.

Thanks.

|||

No, the problem is that they do not appear in VS/BIDS even if SSRS is installed. The templates must be available on the web somewhere and the correct folder location and configuration to add them to the VS/BIDS interface must exist somewhere.

Thursday, February 9, 2012

Adding a web reference to a Report Server project

Hi there,

My company has a centralised user profile repository that all new applications worldwide use for authorization and user details; we access it from the various apps via a web service.

What I'd like to do in a report is to pass a user's ID to the web service and return their name and contact details to display in the header. I imagine I'd need to do this in a custom function and I can see where I can add a reference to use in this function but not where to add a web reference. Is this possible?

Regards,

Uzum4k1i.

One possible solution to the issue is to add custom code to the report: custom code (e.g., a C# library project in which a web reference could be added) calls the web service and exposes the web service call result for the report to reference. the assembly containing custom code needs to be deployed on the report server. More details are available here:

http://msdn2.microsoft.com/en-us/library/ms252130.aspx

Another possible option is to configure the web service as an XML data source in which the web service URL is the connection string. Details here:

http://msdn2.microsoft.com/en-us/library/ms159741.aspx

http://msdn2.microsoft.com/en-us/library/ms345338.aspx

|||Cheers Tau Liang, both of those answers sound like they'll fit the bill nicely

Adding a web reference to a Report Server project

Hi there,

My company has a centralised user profile repository that all new applications worldwide use for authorization and user details; we access it from the various apps via a web service.

What I'd like to do in a report is to pass a user's ID to the web service and return their name and contact details to display in the header. I imagine I'd need to do this in a custom function and I can see where I can add a reference to use in this function but not where to add a web reference. Is this possible?

Regards,

Uzum4k1i.

One possible solution to the issue is to add custom code to the report: custom code (e.g., a C# library project in which a web reference could be added) calls the web service and exposes the web service call result for the report to reference. the assembly containing custom code needs to be deployed on the report server. More details are available here:

http://msdn2.microsoft.com/en-us/library/ms252130.aspx

Another possible option is to configure the web service as an XML data source in which the web service URL is the connection string. Details here:

http://msdn2.microsoft.com/en-us/library/ms159741.aspx

http://msdn2.microsoft.com/en-us/library/ms345338.aspx

|||Cheers Tau Liang, both of those answers sound like they'll fit the bill nicely