Click here to Skip to main content
15,906,625 members
Home / Discussions / Database
   

Database

 
Questionabout combo box Pin
cutedrew9-Nov-08 15:00
cutedrew9-Nov-08 15:00 
AnswerRe: about combo box Pin
Ashfield9-Nov-08 20:22
Ashfield9-Nov-08 20:22 
QuestionDeploy SQL database Pin
Mohammad Rastkar9-Nov-08 1:13
Mohammad Rastkar9-Nov-08 1:13 
AnswerRe: Deploy SQL database Pin
Wendelius9-Nov-08 7:49
mentorWendelius9-Nov-08 7:49 
GeneralRe: Deploy SQL database Pin
Mohammad Rastkar10-Nov-08 8:44
Mohammad Rastkar10-Nov-08 8:44 
GeneralRe: Deploy SQL database Pin
Wendelius10-Nov-08 9:08
mentorWendelius10-Nov-08 9:08 
QuestionUpdating a view Pin
Yoyosch8-Nov-08 13:14
Yoyosch8-Nov-08 13:14 
AnswerRe: Updating a view Pin
Wendelius9-Nov-08 8:00
mentorWendelius9-Nov-08 8:00 
Haven't really used TableAdapter so I'm not able to say why it's not genereting all the methods (my guess is that the generator thinks that the view isn't updatable).

On the server side there are strict rules when the view can be updated:
  • Any modifications, including UPDATE, INSERT, and DELETE statements, must reference columns from only one base table.
  • The columns being modified in the view must directly reference the underlying data in the table columns. The columns cannot be derived in any other way, such as through the following:

    • An aggregate function: AVG, COUNT, SUM, MIN, MAX, GROUPING, STDEV, STDEVP, VAR, and VARP.
    • A computation. The column cannot be computed from an expression that uses other columns. Columns that are formed by using the set operators UNION, UNION ALL, CROSSJOIN, EXCEPT, and INTERSECT amount to a computation and are also not updatable.

  • The columns being modified are not affected by GROUP BY, HAVING, or DISTINCT clauses.
  • TOP is not used anywhere in the select_statement of the view together with the WITH CHECK OPTION clause.

So you may have to use VIEW_METADATA option on the view or INSTEAD OF triggers.

Hope this helps,

Mika

The need to optimize rises from a bad design.

My articles[^]

AnswerRe: Updating a view Pin
Syed Mehroz Alam9-Nov-08 18:47
Syed Mehroz Alam9-Nov-08 18:47 
QuestionHOW TO FIND NO.OF ROWS UPDATED IN ONE TABLE TO STORE THAT VALUE IN OTHER TABLE Pin
harsha_mec3457-Nov-08 23:26
harsha_mec3457-Nov-08 23:26 
AnswerRe: HOW TO FIND NO.OF ROWS UPDATED IN ONE TABLE TO STORE THAT VALUE IN OTHER TABLE Pin
Wendelius8-Nov-08 0:57
mentorWendelius8-Nov-08 0:57 
GeneralRe: HOW TO FIND NO.OF ROWS UPDATED IN ONE TABLE TO STORE THAT VALUE IN OTHER TABLE Pin
harsha_mec3458-Nov-08 21:02
harsha_mec3458-Nov-08 21:02 
GeneralRe: HOW TO FIND NO.OF ROWS UPDATED IN ONE TABLE TO STORE THAT VALUE IN OTHER TABLE Pin
Wendelius8-Nov-08 21:30
mentorWendelius8-Nov-08 21:30 
GeneralRe: HOW TO FIND NO.OF ROWS UPDATED IN ONE TABLE TO STORE THAT VALUE IN OTHER TABLE Pin
harsha_mec3459-Nov-08 1:16
harsha_mec3459-Nov-08 1:16 
GeneralRe: HOW TO FIND NO.OF ROWS UPDATED IN ONE TABLE TO STORE THAT VALUE IN OTHER TABLE Pin
Wendelius9-Nov-08 7:42
mentorWendelius9-Nov-08 7:42 
GeneralRe: HOW TO FIND NO.OF ROWS UPDATED IN ONE TABLE TO STORE THAT VALUE IN OTHER TABLE Pin
harsha_mec34510-Nov-08 21:00
harsha_mec34510-Nov-08 21:00 
GeneralRe: HOW TO FIND NO.OF ROWS UPDATED IN ONE TABLE TO STORE THAT VALUE IN OTHER TABLE Pin
Wendelius11-Nov-08 8:42
mentorWendelius11-Nov-08 8:42 
QuestionJoining to same table to display values next to each other Pin
Support1237-Nov-08 21:18
Support1237-Nov-08 21:18 
AnswerRe: Joining to same table to display values next to each other Pin
Wendelius8-Nov-08 0:54
mentorWendelius8-Nov-08 0:54 
GeneralRe: Joining to same table to display values next to each other Pin
Support12310-Nov-08 0:18
Support12310-Nov-08 0:18 
QuestionTable constraints problem Pin
JenovaProject7-Nov-08 15:11
JenovaProject7-Nov-08 15:11 
AnswerRe: Table constraints problem [modified] Pin
Wendelius7-Nov-08 20:26
mentorWendelius7-Nov-08 20:26 
QuestionJoin Pin
reogeo20087-Nov-08 6:11
reogeo20087-Nov-08 6:11 
AnswerRe: Join Pin
Jason Lepack (LeppyR64)7-Nov-08 6:34
Jason Lepack (LeppyR64)7-Nov-08 6:34 
AnswerRe: Join Pin
Blue_Boy7-Nov-08 7:08
Blue_Boy7-Nov-08 7:08 

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.