Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programatically set Default Values for all fields
Message
De
01/06/2007 10:25:31
Aman Bains
Jaguar Computers
Jalandhar, Inde
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Conception bases de données
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01229752
Message ID:
01229797
Vues:
7
>What exactly the problem is? What's wrong with having defaults in SQL Server?

See all the 0 Defaults are shown in defaults as UW_ZeroDefault whereas String Defaults of " " are being converted as table/field name (e.g. Dflt_acbal_sess, Dflt_acbal_accnum) for each field. I could have created a single default as
USE [au4]
GO
CREATE DEFAULT [dbo].[Dflt_SpaceDefault] AS ''
I could have applied thew same default in all fields. Also I need to apply defaults to all the fields programatically and not manually one by one.
Aman
-------
Lets fly away to the Land where there is Love & Peace
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform