Click here to Skip to main content
15,898,134 members
Home / Discussions / Database
   

Database

 
QuestionSeparating names from a single column to 2 columns Pin
jkirkerx6-Jun-15 7:59
professionaljkirkerx6-Jun-15 7:59 
AnswerRe: Separating names from a single column to 2 columns Pin
Kornfeld Eliyahu Peter6-Jun-15 22:16
professionalKornfeld Eliyahu Peter6-Jun-15 22:16 
GeneralRe: Separating names from a single column to 2 columns Pin
jkirkerx7-Jun-15 7:11
professionaljkirkerx7-Jun-15 7:11 
GeneralRe: Separating names from a single column to 2 columns Pin
Kornfeld Eliyahu Peter7-Jun-15 9:56
professionalKornfeld Eliyahu Peter7-Jun-15 9:56 
QuestionHow to restore a DB with DATA and Schema generated through script ? Pin
Azam Niaz Ch.6-Jun-15 2:52
Azam Niaz Ch.6-Jun-15 2:52 
AnswerRe: How to restore a DB with DATA and Schema generated through script ? Pin
Eddy Vluggen6-Jun-15 5:13
professionalEddy Vluggen6-Jun-15 5:13 
GeneralRe: How to restore a DB with DATA and Schema generated through script ? Pin
Azam Niaz Ch.6-Jun-15 21:48
Azam Niaz Ch.6-Jun-15 21:48 
GeneralRe: How to restore a DB with DATA and Schema generated through script ? Pin
Eddy Vluggen7-Jun-15 0:19
professionalEddy Vluggen7-Jun-15 0:19 
Questionpossible to get results of 3 different tables in 1 set of column results? Pin
jkirkerx5-Jun-15 17:50
professionaljkirkerx5-Jun-15 17:50 
AnswerRe: possible to get results of 3 different tables in 1 set of column results? Pin
Mycroft Holmes5-Jun-15 23:12
professionalMycroft Holmes5-Jun-15 23:12 
GeneralRe: possible to get results of 3 different tables in 1 set of column results? Pin
jkirkerx6-Jun-15 7:51
professionaljkirkerx6-Jun-15 7:51 
AnswerRe: possible to get results of 3 different tables in 1 set of column results? Pin
Eddy Vluggen6-Jun-15 5:14
professionalEddy Vluggen6-Jun-15 5:14 
SuggestionRe: possible to get results of 3 different tables in 1 set of column results? Pin
Sascha Lefèvre7-Jun-15 10:09
professionalSascha Lefèvre7-Jun-15 10:09 
QuestionSql Server Pin
Member 117451955-Jun-15 9:09
Member 117451955-Jun-15 9:09 
AnswerRe: Sql Server Pin
Eddy Vluggen5-Jun-15 9:25
professionalEddy Vluggen5-Jun-15 9:25 
AnswerRe: Sql Server Pin
Richard Deeming5-Jun-15 10:24
mveRichard Deeming5-Jun-15 10:24 
QuestionProvide large data updates to desktop users Pin
Kukreja Sonu3-Jun-15 1:53
Kukreja Sonu3-Jun-15 1:53 
AnswerRe: Provide large data updates to desktop users Pin
Mycroft Holmes3-Jun-15 14:42
professionalMycroft Holmes3-Jun-15 14:42 
AnswerRe: Provide large data updates to desktop users Pin
Mycroft Holmes3-Jun-15 19:51
professionalMycroft Holmes3-Jun-15 19:51 
QuestionI'm trying to concat 2 columns into a single result Pin
jkirkerx2-Jun-15 10:12
professionaljkirkerx2-Jun-15 10:12 
GeneralRe: I'm trying to concat 2 columns into a single result Pin
jkirkerx2-Jun-15 10:13
professionaljkirkerx2-Jun-15 10:13 
AnswerRe: I'm trying to concat 2 columns into a single result Pin
Sascha Lefèvre2-Jun-15 10:43
professionalSascha Lefèvre2-Jun-15 10:43 
GeneralRe: I'm trying to concat 2 columns into a single result Pin
jkirkerx2-Jun-15 10:55
professionaljkirkerx2-Jun-15 10:55 
GeneralRe: I'm trying to concat 2 columns into a single result Pin
Sascha Lefèvre2-Jun-15 11:02
professionalSascha Lefèvre2-Jun-15 11:02 
QuestionRemoving the concatenated code variable for a SQL select statement . Pin
Stephen Holdorf2-Jun-15 8:32
Stephen Holdorf2-Jun-15 8:32 
I know I should use a stored procedure to do this but ths is not possible. In the code below return values from the "select" statements are being assigned to code variable values being concatenated with the actual Select statement. I am not talking about the code in the Where clause but the code in the "Select" portion. See the string as below:

query.Append(" SELECT e581_key, 'e581', 'rnlt', rnlt, '" + _rnlt + "' , 'SaveEditRNLT', '" + _logUserName + "', getdate() ");
            query.Append(" FROM e581 ");            <pre>

The select statement is then assigned to the DbCommand.CommandText of the command.ExecuteNonQuery.

How do I move the actual code variables being concatenated to some type of command parameter?


modified 2-Jun-15 15:29pm.

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.