all groups > sql server programming > may 2005 >
You're in the

sql server programming

group:

User-defined property


User-defined property Graham R Seach
5/10/2005 9:46:03 PM
sql server programming: Hi guys,

I am developing an application that front-ends to SQL Server 2000
Enterprise. I am trying to find a way of setting a custom database property,
to let my application know whether the application is currently connected to
the development db, or the production db.

Neither the application or the physical servers have been installed yet, and
I have no idea what the network admins are going to call the new servers when
it does go live. I have no say in it.

I have provided the facility for users to connect to a server/database, from
a list, by the click of a button.

I would rather not use a table for this, so the only other alternative I can
think of is to set a database property. The problem is that I don't know of
any properties I could use, or indeed how to use them if they are available.

Could someone shed some light on this for me?

Regards,
Graham R Seach
Re: User-defined property Graham R Seach
5/11/2005 12:00:00 AM
Thanks Tibor,

I'm using a table at the moment, but it makes more sens (to me) to use
something the users wouldn't normally be able to muck about with.

- Graham

"Tibor Karaszi" <tibor_please.no.email_karaszi@hotmail.nomail.com> wrote in
message news:%23Vsa2RfVFHA.616@TK2MSFTNGP12.phx.gbl...
[quoted text, click to view]

Re: User-defined property Tibor Karaszi
5/11/2005 8:41:29 AM
I'd go with a table. If that isn't an option, consider using extended properties, set on one of your
tables.

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/


[quoted text, click to view]

AddThis Social Bookmark Button