Click here to Skip to main content
15,905,782 members
Home / Discussions / Database
   

Database

 
QuestionHow to make copy of db Pin
leckey17-May-06 6:43
leckey17-May-06 6:43 
AnswerRe: How to make copy of db Pin
Colin Angus Mackay17-May-06 7:00
Colin Angus Mackay17-May-06 7:00 
AnswerRe: How to make copy of db Pin
Saqib Mehmood17-May-06 18:39
Saqib Mehmood17-May-06 18:39 
GeneralRe: How to make copy of db Pin
Colin Angus Mackay17-May-06 20:15
Colin Angus Mackay17-May-06 20:15 
GeneralRe: How to make copy of db Pin
Saqib Mehmood17-May-06 20:22
Saqib Mehmood17-May-06 20:22 
GeneralRe: How to make copy of db Pin
furher24-May-06 2:29
furher24-May-06 2:29 
QuestionQuestion about DataSet and DataAdapter in VS8 Pin
Roberto Ferraris17-May-06 5:51
Roberto Ferraris17-May-06 5:51 
AnswerRe: Question about DataSet and DataAdapter in VS8 Pin
Roberto Ferraris17-May-06 22:35
Roberto Ferraris17-May-06 22:35 
Searching in MSDN and in the automatic generated code I find some more info, that I attach to the original question, wishing this could help someone else.

The automatic generated code for the parameters of update command is like this:
new SqlParameter(
        "@IsNull_DtClassification",  // Parameter name
        System.Data.SqlDbType.Int, // DbType
        0, // size
        System.Data.ParameterDirection.Input, // direction
        0, // precision
        0, // scale
        "DtClassification", // source column
        System.Data.DataRowVersion.Original, // source version  
        true, // sourceColumnNullMapping
        null, // value
        "", // xml...
        "", 
        "");


From SqlParameter.SourceColumnNullMapping documentation I find that the @IsNull_FieldName is used directly by the SqlCommandBuilder (that I think is the same used by the TableAdapter Configuration Wizard.
Here I find "@IsNull_FieldName contains 1 if the source field contains null, and 0 if it does not. This mechanism allows for a performance optimization in SQL Server, and provides for common code that works across multiple providers."

The problem at this point is that if I try to modify the query manually removing the calculated field from the query, the resulting command generate parameters like the following, where there is no source column and data types is wrong:
new System.Data.SqlClient.SqlParameter(
        "@IsNull_DtClassification", 
        System.Data.SqlDbType.VarChar, 
        1024, 
        System.Data.ParameterDirection.Input, 
        0, 
        0, 
        "", 
        System.Data.DataRowVersion.Original, 
        false, null, "", "", "")


I thing this is a bug of VS

Bye

Roberto Ferraris
QuestionODBC connection Pin
Paps217-May-06 5:00
Paps217-May-06 5:00 
QuestionCan i add column to the middle of table in sql server. Pin
sharma sanjeev17-May-06 3:25
sharma sanjeev17-May-06 3:25 
AnswerRe: Can i add column to the middle of table in sql server. Pin
Paddy Boyd17-May-06 3:41
Paddy Boyd17-May-06 3:41 
GeneralRe: Can i add column to the middle of table in sql server. Pin
sharma sanjeev17-May-06 4:06
sharma sanjeev17-May-06 4:06 
AnswerRe: Can i add column to the middle of table in sql server. Pin
Paddy Boyd17-May-06 4:15
Paddy Boyd17-May-06 4:15 
GeneralRe: Can i add column to the middle of table in sql server. Pin
sharma sanjeev17-May-06 4:24
sharma sanjeev17-May-06 4:24 
AnswerRe: Can i add column to the middle of table in sql server. Pin
Paddy Boyd17-May-06 4:27
Paddy Boyd17-May-06 4:27 
GeneralRe: Can i add column to the middle of table in sql server. Pin
sharma sanjeev17-May-06 4:31
sharma sanjeev17-May-06 4:31 
GeneralRe: Can i add column to the middle of table in sql server. Pin
Paddy Boyd17-May-06 4:36
Paddy Boyd17-May-06 4:36 
GeneralRe: Can i add column to the middle of table in sql server. Pin
sharma sanjeev17-May-06 4:40
sharma sanjeev17-May-06 4:40 
GeneralRe: Can i add column to the middle of table in sql server. Pin
Paddy Boyd17-May-06 4:42
Paddy Boyd17-May-06 4:42 
AnswerRe: Can i add column to the middle of table in sql server. Pin
Eric Dahlvang17-May-06 7:48
Eric Dahlvang17-May-06 7:48 
AnswerRe: Binding Select Query Result into an DataGrid Pin
Paddy Boyd17-May-06 3:45
Paddy Boyd17-May-06 3:45 
QuestionCurrencyManager Pin
ADY00717-May-06 1:28
ADY00717-May-06 1:28 
AnswerRe: Catch Error in SP Pin
Colin Angus Mackay17-May-06 1:19
Colin Angus Mackay17-May-06 1:19 
QuestionGetting last affected row Pin
NICE TO MEET16-May-06 23:53
NICE TO MEET16-May-06 23:53 
AnswerRe: Getting last affected row Pin
Colin Angus Mackay17-May-06 1:23
Colin Angus Mackay17-May-06 1:23 

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.