index > Visual Studio Team System - Architects > How to specify custom constraints?

How to specify custom constraints?


I am trying to specify some custom database constraints like:

- a database connection string should not include a username & password (but only Windows integrated authentication)

- a dabase connection string should not include a Network library setting or a port number in the data source

-

I thought it would be quite simple, but I've been struggling for several hours with no result. Any help is appreciated.

Rosen

Hello
Could you please explain where and how you are trying to configure this constraint.

Thanks
Brian [MSFT]
Microsoft Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.

Brian Combs MSFT

Well, that's my problem, I don't know where or how to define it in the Logical Datacenter Diagram. I tried the logical host, the server endpoint, the client endpoint, but none of these shapes seem to have any properties that will allow me to express the constraints I want to express.

Ideally, I'd like to be able to define it on the Database logical host, because it is a constraint imposed by the SQL Server infrastructure (i.e. authenticate via Windows Integrated and not via SQL Server security).

Thanks,

Rossen

Rosen

Hello
Did some checking and it looks like there is no way to create a ConnectionStrings constraint. If you have policies that state how an application should connect to a database and what information can be stored in the connection string I would suggest that this be part of your product specs and that you use code review to validate that developers are following this policy.

The other thing you can try is create a unit test that will check config file for connectionStrings section and then verify that the connectionString meets your policies.

Thanks
Brian [MSFT]
Microsoft Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.

Brian Combs MSFT

Does this answer your question, Rosen? If not, please unmark Brian's answer. Thanks!




Esther Fan | User Education | Visual Studio Team Edition for Software Architects
Esther Fan MSFT

Yes, this answers my question. Thank you. (Apologies for the delay.)

Regards,

Rossen

Rosen
reply 6

You can use google to search for other answers

 

More Articles

Visio 2005 unable to syncronize code changes
SDM - FTP Endpoint tutorial
System Definition Model Extension Package for Visual Studio 2005
Generating Deployment Report.
Using MS Asynchronous Framework Application Block in Application
Visual Studio 2005
PasswordFormat Error when deploying an application
Individual Website settings versus Default website settings / Web...
calling policy from orchestration.
Latest Distributed System Designers
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Application Designer Error
Enterprise Templates
How to specify Project generation from S…
PowerToys for the Visual Studio 2005 Cla…
[LDD] Import IIS settings does not impor…
Visio for enterprise architects freezes …
Visual Studio 2005
Reverse Engineering C# projects
MSDN Webcast: Visual Studio 2005 Team Sy…
Satellite Assembly
Adaptive Object Modelling
Class Designer: XML Comments
GenericApplication and GenericEndPoint
Correct values for Platform property in …
IIS constraints

Hot Articles

Visio for enterprise architects freezes …
Power Toys for Modeling Tools
Messeges are not sending to Send Port
Application types
Logical Datacenter
Cannot See the Distributed System Design…
Problems with Application Designer
Implicit constraints, Pre-defined constr…
Sequence Diagram
Updated MSDN content for VS Team Edition…
How to CREATE ENDPOINT
automatic data generation tool
Can not uninstall SDM model
Custom HostZone
Regular Project Type Templates

Recommend Articles

where do newbies ask questions?
Upcoming Chat: Visual Studion Team Editi…
Application Designer Error
About Interpreter Pattern
SDM Model
Using a deployment report in a setup pro…
error adding wsdl to a webservice
Best Practices for Collaborating on Diag…
Looking for a sample LLD
MSDN Webcast: Visual Studio 2005 Team Sy…
Adding custom property via automation
VS.Net 2005 RC Application Diagram probl…
Implicit constraints, Pre-defined constr…
Looking for book suggestions
Cannot open certain files in VEA 2005 su…