Hi Alex Dybenko, John Vinson,
I posted these questions previously on the MSDN Sql Server community and
therefore I asked myself if upsizing was a way to handle the basic question
as how to migrate from Access to Report Sql Server 2005...
Hi, Jonathan
There seems to be some confusion as to what I want to achieve. I started with:
"My boss wants me to convert an Access.mdb coding to Report Sql 2005."
I tried to convert the VBA functions to UDF's in the Sql database. This you
said was not the proper way.
So now I try to embed the function in de .rdl file of the Report Project in
the code block.
According to:
Code SnippetSQL Server 2005 Books Online
Report Properties (Code Tab, Report Designer) Send Feedback
See Also
Collapse AllExpand All Language Filter: AllLanguage Filter:
MultipleLanguage Filter: Visual BasicLanguage Filter: C#Language Filter:
C++Language Filter: J#Language Filter: JScript
Reporting Services F1 Help > Report Designer F1 Help >
Visual Basic(Declaration)
C#
C++
J#
JScript
Use the Code tab of the Report Properties dialog box to define custom code
to be used by expressions within the report.
Options
Custom code
Type the methods to be used within the report. Code must be written in
Microsoft Visual Basic.
This code block however is not designed for development, as is it just a
memo-field, without any VB editting features.
Another way appears to be using Custom Assemblies:
Code SnippetSQL Server 2005 Books Online
Using Custom Assemblies with Reports Send Feedback
See Also
Collapse AllExpand All Language Filter: AllLanguage Filter:
MultipleLanguage Filter: Visual BasicLanguage Filter: C#Language Filter:
C++Language Filter: J#Language Filter: JScript
Visual Basic(Declaration)
C#
C++
J#
JScript
In Reporting Services, you can write custom code for report item values,
styles, and formatting. For example, you can use custom code to format
currencies based on locale, flag certain values with special formatting, or
apply other business rules that are in practice for your company. One way to
include this code in your reports is to create a custom code assembly using
the Microsoft .NET Framework that you can reference from within your report
definition files. The server calls the functions in your custom assemblies
when a report is run. Custom assemblies can be used to retrieve specialized
functions that you plan to use in your reports.
As I mentioned, I do not know how to make a custom assembly, but I am
willing to learn.
So I do not particulary want to develop VBA scripts, I just want to find the
best way to convert them to SQL200r Report Services.....
Report Abuse
18 Aug 2008, 1:40 PM
BeforeAndAfter1974
Posts 95
Re: Database Independent Routines in Sql 2005
Was this post helpful ?
Successfully Unmarked post as an Answer !
Josje,
Custom assemblies are a bit extreme when converting from Access. It falls
back on an old philosophy, "just because we can, doesn't mean we should."
Access has an upsizing wizard tool that will convert the code into SQL for
you. Go To Tools | Database Utilities | Upsizing wizard. While this won't
convert 100% of the source perfectly, or it might, it will give you a solid
foundation to build on.
Edit: Considering Access is designed to be an all-encompassing evironment
for db and forms development, it will be difficult if not impossible to
replicate the environment into SQL Server without a front end interactive
form other than a Report.
A.D.T.
--------------------------------------------------------------------------------
Luck is when preparation meets opportunity.
Report Abuse
19 Aug 2008, 2:24 PM
Josje
Posts 22 Re: Database Independent Routines in Sql 2005
Hi, Jonathan, A.D.T.,
I have posted questions about Upsizing Wizard on the Access Forum.
Thanks for replying.....
--
Jos
Post by John W. VinsonPost by JosMy boss wants me to convert an Access.mdb coding to Report Sql 2005.
I'm pretty sure you will need to a) just leave the data in SQL/Server where it
is already; the upsizing wizard is for moving data from an Access JET database
into SQL, so it's not needed here; and b) scrap the entire Access database
frontend and recreate its functionality from scratch in SQL Reporting
Services. They are *very* different programming environments and there is, to
my knowledge, no way to convert an Access Report into a SQL Reporting Services
report. Your boss may be asking for something that is either unnecessary or
impossible (or both).
--
John W. Vinson [MVP]