Click here to Skip to main content
15,902,198 members
Home / Discussions / Database
   

Database

 
QuestionDatabase design for a private message system Pin
Joshua Tully18-Mar-10 19:35
Joshua Tully18-Mar-10 19:35 
AnswerRe: Database design for a private message system Pin
Wayne Gaylard18-Mar-10 21:21
professionalWayne Gaylard18-Mar-10 21:21 
GeneralRe: Database design for a private message system Pin
Joshua Tully18-Mar-10 22:24
Joshua Tully18-Mar-10 22:24 
GeneralRe: Database design for a private message system Pin
Wayne Gaylard19-Mar-10 1:48
professionalWayne Gaylard19-Mar-10 1:48 
Questionstored procedur to update multiple tables Pin
Enobong Adahada18-Mar-10 2:05
Enobong Adahada18-Mar-10 2:05 
Questionstored procedur to update multiple tables Pin
Enobong Adahada18-Mar-10 1:21
Enobong Adahada18-Mar-10 1:21 
AnswerRe: stored procedur to update multiple tables Pin
Wayne Gaylard18-Mar-10 1:49
professionalWayne Gaylard18-Mar-10 1:49 
AnswerRe: stored procedur to update multiple tables Pin
The Man from U.N.C.L.E.18-Mar-10 7:38
The Man from U.N.C.L.E.18-Mar-10 7:38 
you kind of lost the thread there with your second post, however..

Either change the tables to allow nulls,
Or ensure no null values are passed to the procedure,
Or best of all, use isnull checks for each insert.

e.g.

SQL
INSERT INTO tbcontactaddress (emp_id,city,town,street, phone)
VALUES 
 (
   isnull(@emp_id, '')
  ,isnull(@ccity, '')
  ,isnull(@ctown, '')
  ,isnull(@cstreet, '')
  ,isnull(@cphone, '')
 )


Another consideration is that rather than passing so many parameters you may be better off passing it all wrapped up in a single XML parameter.
If you have knowledge, let others light their candles at it.
Margaret Fuller (1810 - 1850)
[My Articles]  [My Website]

Questionlist all host names Pin
Mogamboo_Khush_Hua18-Mar-10 0:23
Mogamboo_Khush_Hua18-Mar-10 0:23 
AnswerRe: list all host names Pin
Eddy Vluggen18-Mar-10 2:40
professionalEddy Vluggen18-Mar-10 2:40 
QuestionStoredProcedures - which is fastest and why Pin
alwinSCH17-Mar-10 22:39
alwinSCH17-Mar-10 22:39 
JokeRe: StoredProcedures - which is fastest and why Pin
Mycroft Holmes17-Mar-10 23:27
professionalMycroft Holmes17-Mar-10 23:27 
GeneralRe: StoredProcedures - which is fastest and why Pin
alwinSCH17-Mar-10 23:53
alwinSCH17-Mar-10 23:53 
AnswerRe: StoredProcedures - which is fastest and why Pin
WoutL18-Mar-10 0:26
WoutL18-Mar-10 0:26 
GeneralRe: StoredProcedures - which is fastest and why Pin
alwinSCH18-Mar-10 0:50
alwinSCH18-Mar-10 0:50 
GeneralRe: StoredProcedures - which is fastest and why Pin
WoutL18-Mar-10 1:15
WoutL18-Mar-10 1:15 
GeneralRe: StoredProcedures - which is fastest and why Pin
Mycroft Holmes18-Mar-10 11:44
professionalMycroft Holmes18-Mar-10 11:44 
QuestionDataGridView problem with cell coloring [modified] Pin
Mattzimmerer17-Mar-10 15:54
Mattzimmerer17-Mar-10 15:54 
AnswerRe: DataGridView problem with cell coloring Pin
Luc Pattyn17-Mar-10 16:22
sitebuilderLuc Pattyn17-Mar-10 16:22 
GeneralRe: DataGridView problem with cell coloring Pin
Mattzimmerer17-Mar-10 18:58
Mattzimmerer17-Mar-10 18:58 
AnswerRe: DataGridView problem with cell coloring Pin
darkelv17-Mar-10 17:49
darkelv17-Mar-10 17:49 
AnswerRe: DataGridView problem with cell coloring Pin
Mattzimmerer18-Mar-10 9:41
Mattzimmerer18-Mar-10 9:41 
QuestionPrimary Indexed? Pin
Mike65432117-Mar-10 9:06
Mike65432117-Mar-10 9:06 
AnswerRe: Primary Indexed? [modified] Pin
i.j.russell17-Mar-10 9:39
i.j.russell17-Mar-10 9:39 
GeneralRe: Primary Indexed? Pin
Mike65432117-Mar-10 9:53
Mike65432117-Mar-10 9:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.