dbTalk Databases Forums  

check column fo a default value

comp.databases.informix comp.databases.informix


Discuss check column fo a default value in the comp.databases.informix forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Burnie
 
Posts: n/a

Default check column fo a default value - 02-16-2011 , 03:54 AM






Hallo,

i need some help from a Informix "Specialist" ;-)

i had to wite a litte programm in MS-Visual C# 2010 the should check
if a default value ist set for a column on an informix database
server.

The connection to the database server is using the original ibm odbc
driver.

Is there an existing funktion in the odbc driber or informix server
that can i use ?

Thank you for your help and hints ;-)

Reply With Quote
  #2  
Old   
Superboer
 
Posts: n/a

Default Re: check column fo a default value - 02-16-2011 , 07:22 AM






create table tessie ( hendrik char(20) default 'haverkamp');

select tabname, colname , c.*
from systables a , syscolumns b ,
sysdefaults c
where a.tabname ='tessie' and b.colname ='hendrik' and
c.tabid = a.tabid and a.tabid = b.tabid and c.colno = b.colno


Superboer.



On 16 feb, 10:54, Burnie <thedarksid... (AT) gmail (DOT) com> wrote:
Quote:
Hallo,

i need some help from a Informix "Specialist" ;-)

i had to wite a litte programm in MS-Visual C# 2010 the should check
if a default value ist set for a column on an informix database
server.

The connection to the database server is using the original ibm odbc
driver.

Is there an existing funktion in the odbc driber or informix server
that can i use ?

Thank you for your help and hints ;-)

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.