VB.Net Stored Procedure Generation 
Author Message
 VB.Net Stored Procedure Generation

I am hoping that this question isn't something that I have
just overlooked but it deals with the owner of stored
procedures generated by vb.net.

Our developers login to our SQL Server machine as
themselves.  When they go to try to create stored
procedures using the "wizard" in .NET it always sets the
current user as the owner of the object.  We would
obviously like to have all objects in the database set to
the dbo.  How can I do this?!

Thanks in advance.

Dave Harper



Sat, 01 Jan 2005 22:02:45 GMT  
 VB.Net Stored Procedure Generation
Dave, I think if the user creating the object is already marked as a DBOwner
in the SQL DB that all objects created by them will be owned by DBO and not
the user.

If the user is not a DBOwner in the DB it would be a security hole to allow
the object to be owned by DBO as this would allow a not DBOwner to create a
bogus/malicious object that another DBOwner may accidentally make use of.

Cameron McColl[MS]
--
This posting is provided "AS IS" with no warranties, and confers no rights.

Quote:
> I am hoping that this question isn't something that I have
> just overlooked but it deals with the owner of stored
> procedures generated by vb.net.

> Our developers login to our SQL Server machine as
> themselves.  When they go to try to create stored
> procedures using the "wizard" in .NET it always sets the
> current user as the owner of the object.  We would
> obviously like to have all objects in the database set to
> the dbo.  How can I do this?!

> Thanks in advance.

> Dave Harper



Mon, 03 Jan 2005 04:50:24 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. ASP.net VB.Net Stored Procedures in SQL Server

2. VB.Net => Ado.Net = Stored Procedure

3. Create Stored Procedures in VB.NET

4. VB.net and Stored Procedure

5. Getting Stored Procedure text with vb.net

6. VB.NET,SQL SERVER 2000 STORED PROCEDURE PARAMETERS, CRYSTAL REPORTS

7. Parameter to Stored Procedure CR 8.5 VB.Net Specified Cast Not Valid

8. Passing Parameters to a Stored Procedure from VB.NET

9. To Stored Procedure or not to stored procedure

10. To stored procedure or not to stored procedure

11. sub report changes its source stored procedure to main report's stored procedure

12. To stored procedure or not to stored procedure

 

 
Powered by phpBB® Forum Software