Showing posts with label based. Show all posts
Showing posts with label based. Show all posts

Wednesday, March 7, 2012

Development - Production Data Access

Hello All,
I have been searching for a published document for Best Practices
concerning access levels based on roles. Should developers have more
than (if at all) select level access to production data? If I
understand (from multiple postings) that it is best to have:
1. Development (developers have extensive access levels)
2. Test (developers have restriced access levels)
and
3. Production (developers have none or select level access)
Our environment and budget only allows for items 1 and 3.
If any body could point me to a document from a 'reputable' source, I
would greatly appreciate it.

TIA
BillI don't have a reputable source for you, only some more opinions.

Practices obviously vary from place to place and will depend partly on
the size and complexity of your dev operation, your toolset, and on how
much support your developers need to do. If your developers have to
support systems in production then they may need some extra level of
access to the production environment.

One thing I would not want to compromise on: do not test only in a dev
environment. That's because it's important to have a separate a
deployment process for testing that mirrors the way you will deploy
changes to production. In my opinion that's the best way to ensure that
you only release to production exactly what is tested. That doesn't
necessarily mean you need physically separate servers - whether that's
necessary depends on what components are under test. In the case of SQL
Server it does mean you ought to at least have separate instances for
development and testing.

--
David Portas
SQL Server MVP
--|||Bill Willyerd (bwillyerd@.dshs.wa.gov) writes:
> I have been searching for a published document for Best Practices
> concerning access levels based on roles. Should developers have more
> than (if at all) select level access to production data? If I
> understand (from multiple postings) that it is best to have:
> 1. Development (developers have extensive access levels)
> 2. Test (developers have restriced access levels)
> and
> 3. Production (developers have none or select level access)
> Our environment and budget only allows for items 1 and 3.
> If any body could point me to a document from a 'reputable' source, I
> would greatly appreciate it.

I think it's difficult to come with a best practice here, because it
is likely to business-dependent.

If developers have full access to the production database, this means
that they address critical issues directly, and don't have to spend
half a day to get some sort of access.

On the the other hand, this also means that developers are able to
all sorts of silly stuff in production, and also get access to data
that is sensitive.

So here is obviously a trade-off. The more availability you need, the
more in security you need to sacrifice - or invest in procedures so
that when a developer needs to debug in production, he can get access
easily by some sort of approval procedure.

I fully agree with David's view that you need a test environment
separate from development. I'll chime in here and add that the
process of transferring code from different environments should
be performed through version control, and the source-countrol system
is the master for all code to test and production environments. (As
well as to development environment to some extent as well.)

--
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp|||"Bill Willyerd" <bwillyerd@.dshs.wa.gov> wrote in message
news:1123690516.767246.211860@.o13g2000cwo.googlegr oups.com...
> Hello All,
> I have been searching for a published document for Best Practices
> concerning access levels based on roles. Should developers have more
> than (if at all) select level access to production data? If I
> understand (from multiple postings) that it is best to have:
> 1. Development (developers have extensive access levels)
> 2. Test (developers have restriced access levels)
> and
> 3. Production (developers have none or select level access)
> Our environment and budget only allows for items 1 and 3.
> If any body could point me to a document from a 'reputable' source, I
> would greatly appreciate it.
> TIA
> Bill

In addition to David and Erlands' comments, you might want to consider
Sarbanes-Oxley compliance. As a general comment, SOX compliance requires a
separation of duties (and therefore permissions) between development and
production. As a result, it's often not even an option to allow to
developers change access in the production environment.

But as I understand it, what you have to do to comply with SOX is negotiated
with your external auditors, and it depends heavily on your internal
environment. So you may want to investigate what (if any) legal obligations
you have to consider, and what the precise implementation details are for
your situation. For what it's worth, in my environment developers have no
change access to UAT or production (db_datareader only), so all code and
scripts are deployed via an Operations team - this is great for SOX
purposes, but obviously it adds both cost and time.

Simon

Saturday, February 25, 2012

developing reports for Exchange 2003

Has anyone had experience with developing reports based off items in
Exchange 2003? Is it possible to use reporting services to connect to
Exchange to report on types of emails or does another type of connection
have to made? Any insight would be much appreciated. Thanks.
--
****************************************
Andy S.
andymcdba1@.NOMORESPAM.yahoo.com
Please remove NOMORESPAM before replying.
****************************************You might want to download the new "SQL Server 2000 Report Pack for
Microsoft Exchange":
http://www.microsoft.com/downloads/details.aspx?FamilyId=108C2B01-2CC9-4A84-A669-EB22533FA5E2&displaylang=en
It is a set of 13 Microsoft Exchange-based reports with a sample database
that lets you easily visualize and author managed reports for e-mail
administration.
--
Robert M. Bruckner
Microsoft SQL Server Reporting Services
This posting is provided "AS IS" with no warranties, and confers no rights.
"Andy S." <andymcdba1@.NOMORESPAM.yahoo.com> wrote in message
news:eMSHKeipEHA.2764@.TK2MSFTNGP11.phx.gbl...
> Has anyone had experience with developing reports based off items in
> Exchange 2003? Is it possible to use reporting services to connect to
> Exchange to report on types of emails or does another type of connection
> have to made? Any insight would be much appreciated. Thanks.
> --
> ****************************************
> Andy S.
> andymcdba1@.NOMORESPAM.yahoo.com
> Please remove NOMORESPAM before replying.
> ****************************************
>
>|||Thanks, I saw that. However, if you notice, this SQL Server Report Pack is
for a 3rd party app developed by Super Software for their tool that exports
Exchange code.
What I really need to figure out is how to create a reporting service
connection to Exchange instead of having to figure out how to create a .NET
application that uses a CDO type connection. I keep seeing something about
an Exchange OLE DB Provider but no instructions on how to add it to the
available providers in reporting services or how to access the store in
Exchange with it.
"Robert Bruckner [MSFT]" <robruc@.online.microsoft.com> wrote in message
news:uPxFW2jpEHA.1992@.TK2MSFTNGP09.phx.gbl...
> You might want to download the new "SQL Server 2000 Report Pack for
> Microsoft Exchange":
>
http://www.microsoft.com/downloads/details.aspx?FamilyId=108C2B01-2CC9-4A84-A669-EB22533FA5E2&displaylang=en
> It is a set of 13 Microsoft Exchange-based reports with a sample database
> that lets you easily visualize and author managed reports for e-mail
> administration.
> --
> Robert M. Bruckner
> Microsoft SQL Server Reporting Services
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> "Andy S." <andymcdba1@.NOMORESPAM.yahoo.com> wrote in message
> news:eMSHKeipEHA.2764@.TK2MSFTNGP11.phx.gbl...
> > Has anyone had experience with developing reports based off items in
> > Exchange 2003? Is it possible to use reporting services to connect to
> > Exchange to report on types of emails or does another type of connection
> > have to made? Any insight would be much appreciated. Thanks.
> >
> > --
> > ****************************************
> > Andy S.
> > andymcdba1@.NOMORESPAM.yahoo.com
> >
> > Please remove NOMORESPAM before replying.
> >
> > ****************************************
> >
> >
> >
> >
>|||The Exchange OLEDB provider only works on the Exchange Server itself so you
would have to run Reporting Services on your Exchange Server. Your other
option is to find a WebDAV OLEDB provider (I believe there are some freeware
ones) and you could use that as well from Reporting Services.
--
Looking for a good book on programming Exchange, Outlook, ADSI and
SharePoint? Check out http://www.microsoft.com/MSPress/books/5517.asp
"Andy S." <andymcdba1@.NOMORESPAM.yahoo.com> wrote in message
news:e%23d2CUmpEHA.1296@.TK2MSFTNGP12.phx.gbl...
> Thanks, I saw that. However, if you notice, this SQL Server Report Pack
> is
> for a 3rd party app developed by Super Software for their tool that
> exports
> Exchange code.
> What I really need to figure out is how to create a reporting service
> connection to Exchange instead of having to figure out how to create a
> .NET
> application that uses a CDO type connection. I keep seeing something
> about
> an Exchange OLE DB Provider but no instructions on how to add it to the
> available providers in reporting services or how to access the store in
> Exchange with it.
> "Robert Bruckner [MSFT]" <robruc@.online.microsoft.com> wrote in message
> news:uPxFW2jpEHA.1992@.TK2MSFTNGP09.phx.gbl...
>> You might want to download the new "SQL Server 2000 Report Pack for
>> Microsoft Exchange":
> http://www.microsoft.com/downloads/details.aspx?FamilyId=108C2B01-2CC9-4A84-A669-EB22533FA5E2&displaylang=en
>> It is a set of 13 Microsoft Exchange-based reports with a sample database
>> that lets you easily visualize and author managed reports for e-mail
>> administration.
>> --
>> Robert M. Bruckner
>> Microsoft SQL Server Reporting Services
>> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>> "Andy S." <andymcdba1@.NOMORESPAM.yahoo.com> wrote in message
>> news:eMSHKeipEHA.2764@.TK2MSFTNGP11.phx.gbl...
>> > Has anyone had experience with developing reports based off items in
>> > Exchange 2003? Is it possible to use reporting services to connect to
>> > Exchange to report on types of emails or does another type of
>> > connection
>> > have to made? Any insight would be much appreciated. Thanks.
>> >
>> > --
>> > ****************************************
>> > Andy S.
>> > andymcdba1@.NOMORESPAM.yahoo.com
>> >
>> > Please remove NOMORESPAM before replying.
>> >
>> > ****************************************
>> >
>> >
>> >
>> >
>>
>

Developing a SQL server DB (noob question)

I'm beginning development on a medium/ sized in-house web based system. Well moving from asp/mysql to asp.net/sql server. Re-doing DB design as well.

My question is does it make sense for me to develop the SQL DB in Visual Studio 2005 pro, and then later move it to a real SQL server? Or basically what is the best and/or most practical way to do this development. Any other IDE's out there?

Thanks

I'd just use SQL Server from the outset. I find Entreprise Manager cumbersome to use, so I just use it to create the database, then create an Access adp file as my main interface to create tables, views and stored procedures. adp files give you the speed and functionality of Access when manipulating SQL Server DB's. I do go back to Entreprise Manager to do things like create table relationships.

|||

So you're basically suggesting developing the DB using the Access IDE, correct? I fail to see how that would be beneficial, Access has different data types than SQL server. When using an ADP file would Access then know the correct column types? Also, how would that ease the development of my web application?

Does anyone else agree with the above comment? The lack of responses makes me feel like everyone else thinks that is the best answer.

|||

With an adp file, you are essentially using the interface of Access to manage your SQL Database. It is still a full SQL Server database; it is not an mdb with native Access types. This means that the datatypes available and field options are all from SQL Server, (e.g. you have VARCHAR instead of Text, etc). You can also do things that create Stored Procedures. It has most of the functionality of Entreprise Manager for creating and maintaining your database.

Reasons I like adp files over Entreprise Manager:

1. adp files allow you to build forms for basic data entry / editing

2. Entreprise Manager Stored Procedure windows are modal. If you are writing a procedure and need to look up a field name in a table, you have to close the window (which you can't do with partially written syntax) first. with an adp the Procedure window can be minimized or tiled.

3. adp files allow you to sort and filter tables in datasheet view. Entreprise Manager doesn't.

4. Speed. adp files are faster for looking up data.

adp files do lack some features, such as the ability to build relationships or triggers. For this use Entreprise Manager.

Friday, February 17, 2012

Determining when to send the report based on information inside the report?!?

Hello

Here is a tricky problem to which I didn't find any "good" solution:

I have a report which should be sent to the subscriber only when there is something to report. Mostly the report will be empty, because it will only report emergency-type-of-stuff. Now I have implemented the report logic twice, once in the report and once in a data driven subscription which returns a fixed email address when the report data query returns data.

Ideal solution would be one where you can decide in the report generation is it sent or not. Has anyone any ideas / solutions conserning this problem? How could you decide during the report generation that is report sent or not? Any help is highly appreciated...

Thanks!

- rusi

Well, that seems a bit interesting...one problem I see is that the report generation could be performed anytime...i.e. on a schedule, or also anytime a user interactivelly requests to view the report. So, if for example you did include logic to email the report anytime the report generation included data, would you want to get multiple emails time after time if a user kept viewing the report every 10-15 minutes or something like that?

Seems to me that your best bet would be to encapsulate the data-portion of the report (i.e. the queries/data sets) within a stored procedure that you can call from multiple places, and if the sp returns any results, fire off an email from your automated systems when you would like under controlled circumstances.

As it is, I'm not entirely sure that you can even fire off an email based on report content...maybe someone else can chime in on this part...

|||Thanks for the answer!
That is true that the report is ran every time, in this case twice a day, and it sends a report of orders that have not been confirmed. But there is no need to send the report if there are no unconfirmed orders eg. nothing to report...
It is possible to solve this putting the logic in one sp, but still have to implement to logic somewhere else then in the report. I'm searching for the best solution in which the report includes all the logic.
|||This is a fairly common request. Your current solution is the best work around that we have right now. We are looking at the possibility of adding this feature in future versions.