question

Raj More avatar image
Raj More asked

Data-Reader needs to create views

I have data-reader permissions on a production database. I need to write reporting queries. I have discovered a few reusable views will go a long way in standardizing my queries.

I have given the following choices

  • A database on the same server + same instance that I have write access to so I can call upon objects using ProductionDB.Schema.ObjectName

  • A database on the same server + new instance of SQL Server that I have write access to. This will have a Linked Server to my Production Server so I can call upon objects using ProductionServer.ProductionDB.Schema.ObjectName

  • A database on a new server that I have write access to. This will have a Linked Server to my Production Server so I can call upon objects using ProductionServer.ProductionDB.Schema.ObjectName

Replication is a solution that I like but may be too expensive to implement just for me.

Any suggestions on which way I should go with this?

Any other solutions that you can think of?

t-sqlviewdata-reader
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Matt Whitfield avatar image
Matt Whitfield answered

You should really have a development or QA server which holds data representative of the production server, do the development on that and then get the objects you needed added by the DBA.

I would say that's the way to go, rather than developing your reports directly on the production server...

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

TimothyAWiseman avatar image
TimothyAWiseman answered

I think Matt has the best possible answer.

If for whatever you reason you are stuck with the 3 choices you listed, then I would recommend, "A database on the same server + same instance". It has less overhead and requires less resources and administration than the other two options. In particular, it can help you avoid the extra step of setting up linked servers and of maintaining an additional server instance.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.