x

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?

more ▼

asked Nov 20, 2009 at 09:35 AM in Default

Raj More gravatar image

Raj More
1.7k 79 82 84

(comments are locked)
10|1200 characters needed characters left

3 answers: sort voted first

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...

more ▼

answered Nov 20, 2009 at 10:16 AM

Matt Whitfield gravatar image

Matt Whitfield ♦♦
29.4k 61 65 87

(comments are locked)
10|1200 characters needed characters left

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.

more ▼

answered Nov 20, 2009 at 10:38 AM

TimothyAWiseman gravatar image

TimothyAWiseman
15.5k 20 23 32

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x986
x64
x2

asked: Nov 20, 2009 at 09:35 AM

Seen: 1514 times

Last Updated: Nov 20, 2009 at 09:35 AM