Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update Null Value in Integer (Forign Key)

Status
Not open for further replies.

nomi2000

ISP
Feb 15, 2001
676
CA
How can i update Null Value in an Integer(Forigen Key) through stored proc
i can do this if the field is varchar by Convert() but how in intger field?
help
nouman
 
alter table [tablename]
alter column [columnname] [new data type or keep the same] [NULL]

HTH
 
Dear Psycht
i want to update the value to null(in a Forign Key) not update the column data type
Regards
Nouman
 
[tt]Update MyTable
set MyColumn = NULL
where MyKeyColumn = MyKeyValue[/tt]
Robert Bradley
teaser.jpg

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top