Showing posts with label couple. Show all posts
Showing posts with label couple. Show all posts

Monday, March 26, 2012

Exec permissions and selecting from other databases

I have SQL2000 with a couple of databases on it (same instance) - e.g. DB1 a
nd DB2 say.
In DB2 I have assiged EXEC Permissions for a user on a Stored Proc that chec
ks against a table in DB1 (e.g.)
--In DB2 Stored proc
SELECT * FROM Customer
WHERE CustomerID IN (SELECT CustomerID FROM DB1.dbo.OtherCustomers)
However the user gets an error stating that they do not have select permissi
ons on the other table (Othercustomers in db1)
Is there any way I can assign permissions just on this stored procedure (in
db2) without giving select permissions
for the user in DB1 ?
Thanks
GerryYour objects need to be owned by the same login in order to maintain an
unbroken ownership chain so that users don't need permissions on indirectly
referenced objects. You can map the 'dbo' user to the same login in both
databases by specifying the same database owner. For example:
USE DB1
EXEC sp_changedbowner 'MyLogin'
GO
USE DB2
EXEC sp_changedbowner 'MyLogin'
GO
Additionally, you need to enable cross-database chaining in both databases.
This option was introduced in SQL 2000 SP3. For example:
EXEC sp_dboption 'DB1', 'db chaining', true
EXEC sp_dboption 'DB2', 'db chaining', true
See the cross-database ownership chaining in the Books Online for details.
Hope this helps.
Dan Guzman
SQL Server MVP
"Gerry" <anonymous@.discussions.microsoft.com> wrote in message
news:0108492C-77C3-4694-9F2E-C824675D7B03@.microsoft.com...
quote:

> I have SQL2000 with a couple of databases on it (same instance) - e.g. DB1

and DB2 say.
quote:

> In DB2 I have assiged EXEC Permissions for a user on a Stored Proc that

checks against a table in DB1 (e.g.)
quote:

> --In DB2 Stored proc
> SELECT * FROM Customer
> WHERE CustomerID IN (SELECT CustomerID FROM DB1.dbo.OtherCustomers)
> However the user gets an error stating that they do not have select

permissions on the other table (Othercustomers in db1)
quote:

> Is there any way I can assign permissions just on this stored procedure

(in db2) without giving select permissions
quote:

> for the user in DB1 ?
> Thanks
> Gerry
>
sql

Monday, March 19, 2012

Exchanging data over the internet

Hi All,
In a couple of weeks, after finishing my current project, I'll start a -for
me- quite challenging project, so I'm already starting to do some research.
Since I had a little bump in with Aaron some time ago, when I asked for an
easiest solution, I'll just ask for some pointers this time ;-)
There are 2 companies involved. One is a school. The other one does the
examination of the school's students. On both ends, the software will be
developed in VB .NET, with -for starters- MSDE as the datastore. When a
student starts a course, his/her data will be entered in the school's
database. This data has to be send to the examination institute. After the
student has taken an exam, the results have to be send back to the school.
On both ends, they need their own database, since only part of the data will
be shared among the companies. As I said, they will both be running MSDE
2000 and they are both connected to the internet through DSL (with fixed
IP-adresses).
All pointers to exchange data this way are welcome. I'm not new to SQL
Server/MSDE, but still bit of a novice. I've read something about the
'famous' port 1433. But as far as I've understood opening that one might not
be a good idea, security-wise. I've also read something about webservices
(or something like that).
I'm quite stuck here. Please help me out a bit.
Thanks,
Willem
I would tier your system and create a .Net web service on both ends to send
and consume data. Creating web services in .Net is rather easy and VS .Net
comes with some sample projects to start from.
Jim
"Willem van den Broek" <willem@.chsd.nl> wrote in message
news:%23qamZc8NEHA.268@.TK2MSFTNGP11.phx.gbl...
> Hi All,
> In a couple of weeks, after finishing my current project, I'll start
a -for
> me- quite challenging project, so I'm already starting to do some
research.
> Since I had a little bump in with Aaron some time ago, when I asked for an
> easiest solution, I'll just ask for some pointers this time ;-)
> There are 2 companies involved. One is a school. The other one does the
> examination of the school's students. On both ends, the software will be
> developed in VB .NET, with -for starters- MSDE as the datastore. When a
> student starts a course, his/her data will be entered in the school's
> database. This data has to be send to the examination institute. After the
> student has taken an exam, the results have to be send back to the school.
> On both ends, they need their own database, since only part of the data
will
> be shared among the companies. As I said, they will both be running MSDE
> 2000 and they are both connected to the internet through DSL (with fixed
> IP-adresses).
> All pointers to exchange data this way are welcome. I'm not new to SQL
> Server/MSDE, but still bit of a novice. I've read something about the
> 'famous' port 1433. But as far as I've understood opening that one might
not
> be a good idea, security-wise. I've also read something about webservices
> (or something like that).
> I'm quite stuck here. Please help me out a bit.
> Thanks,
> Willem
>
|||Thanks Jim. I was already afraid that would be the answer. I was hoping
there would be a solution without having to use IIS...
Willem
"J Young" <thorium48@.hotmail.com> schreef in bericht
news:OK2HMi9NEHA.3012@.tk2msftngp13.phx.gbl...
> I would tier your system and create a .Net web service on both ends to
send[vbcol=seagreen]
> and consume data. Creating web services in .Net is rather easy and VS .Net
> comes with some sample projects to start from.
> Jim
> "Willem van den Broek" <willem@.chsd.nl> wrote in message
> news:%23qamZc8NEHA.268@.TK2MSFTNGP11.phx.gbl...
> a -for
> research.
an[vbcol=seagreen]
the[vbcol=seagreen]
school.[vbcol=seagreen]
> will
> not
webservices
>

Exchange Pack for Reporting Services

Has anyone successfully installed the Exchange Pack for Reporting Services?
I've attempted a couple of times and continue to get "Object Reference not
set to an instance of object", which causes the install to rollback.
Does anyone know how to correct this problem?
Thanks.Several others are having the same problem. I haven't found a fix yet.
It seems the version available on SSW's site is different and
time-limited.|||Any updates on this that you know of? I am seeing the same issue.
"bret@.fishbrains.com" wrote:
> Several others are having the same problem. I haven't found a fix yet.
> It seems the version available on SSW's site is different and
> time-limited.
>