Click here to Skip to main content
15,888,579 members
Home / Discussions / C#
   

C#

 
AnswerRe: Skins in C# Pin
egenis22-Sep-09 19:25
egenis22-Sep-09 19:25 
GeneralRe: Skins in C# Pin
vivasaayi22-Sep-09 19:52
vivasaayi22-Sep-09 19:52 
GeneralRe: Skins in C# Pin
Ravi Mori22-Sep-09 20:00
Ravi Mori22-Sep-09 20:00 
GeneralRe: Skins in C# Pin
vivasaayi22-Sep-09 20:33
vivasaayi22-Sep-09 20:33 
GeneralRe: Skins in C# Pin
egenis22-Sep-09 20:36
egenis22-Sep-09 20:36 
QuestionNeed help with updating SQL server express DB from c# Pin
Mark-12345678922-Sep-09 16:15
Mark-12345678922-Sep-09 16:15 
Answerrepost Pin
Luc Pattyn22-Sep-09 16:29
sitebuilderLuc Pattyn22-Sep-09 16:29 
AnswerRe: Need help with updating SQL server express DB from c# Pin
Michael Eber22-Sep-09 18:53
Michael Eber22-Sep-09 18:53 
Mark-123456789 wrote:
SqlConnection cn = new SqlConnection(LoginForm.gb_strConnection);


So you created your connection. Now you have to establish your connection so that the database is open.
(that was a hint) try cn. and see what pops up. Maybe related to your cn.Close() command.

Mark-123456789 wrote:
cb.GetUpdateCommand();


think things through: You created an update command with your strSelect. You created something that consumes that string (whether it is correct or not) and you now are calling GetUpdateCommand(). Why did you do this? Your sql was your update command. You also do not need the data adapter.

So if you use Google then you will do several searches as follows:
"SQL Server UPDATE command"
"Updating SQL Server using C#"

So what you need to do really is this:
1) create a valid Update SQL command {UPDATE tbl ... values()}
2) create and active your connection
3) Create a command using your connection and sql statement
4) Execute the command
Your SQL statement (that needs to be Executed) is considered to be NonScalar as a hint of what to do to your command.
GeneralRe: Need help with updating SQL server express DB from c# Pin
Mark-12345678923-Sep-09 2:43
Mark-12345678923-Sep-09 2:43 
GeneralRe: Need help with updating SQL server express DB from c# Pin
PIEBALDconsult23-Sep-09 5:12
mvePIEBALDconsult23-Sep-09 5:12 
GeneralRe: Need help with updating SQL server express DB from c# - Done IT! Pin
Mark-12345678924-Sep-09 9:02
Mark-12345678924-Sep-09 9:02 
GeneralRe: Need help with updating SQL server express DB from c# - Done IT! Pin
PIEBALDconsult24-Sep-09 9:23
mvePIEBALDconsult24-Sep-09 9:23 
GeneralRe: Need help with updating SQL server express DB from c# - Done IT! Pin
Mark-12345678924-Sep-09 9:29
Mark-12345678924-Sep-09 9:29 
GeneralRe: Need help with updating SQL server express DB from c# - Done IT! Pin
PIEBALDconsult24-Sep-09 9:44
mvePIEBALDconsult24-Sep-09 9:44 
Questionhow to make check of a value in a textbox is integer or string? Pin
bounik22-Sep-09 13:41
bounik22-Sep-09 13:41 
AnswerRe: how to make check of a value in a textbox is integer or string? Pin
Wes Aday22-Sep-09 13:44
professionalWes Aday22-Sep-09 13:44 
GeneralRe: how to make check of a value in a textbox is integer or string? Pin
bounik22-Sep-09 14:16
bounik22-Sep-09 14:16 
AnswerRe: how to make check of a value in a textbox is integer or string? Pin
Luc Pattyn22-Sep-09 14:16
sitebuilderLuc Pattyn22-Sep-09 14:16 
GeneralRe: how to make check of a value in a textbox is integer or string? Pin
bounik22-Sep-09 14:17
bounik22-Sep-09 14:17 
GeneralRe: how to make check of a value in a textbox is integer or string? Pin
jdhforever22-Sep-09 21:36
jdhforever22-Sep-09 21:36 
AnswerRe: how to make check of a value in a textbox is integer or string? Pin
PIEBALDconsult22-Sep-09 15:39
mvePIEBALDconsult22-Sep-09 15:39 
QuestionSerialization of objects IPHostEntry Pin
FJJCENTU22-Sep-09 12:55
FJJCENTU22-Sep-09 12:55 
Question[Message Deleted] Pin
Mark-12345678922-Sep-09 12:33
Mark-12345678922-Sep-09 12:33 
AnswerRe: Need help Updating SQL Express DB from c# :( Pin
PIEBALDconsult22-Sep-09 13:50
mvePIEBALDconsult22-Sep-09 13:50 
GeneralRe: Need help Updating SQL Express DB from c# :( Pin
Mark-12345678922-Sep-09 14:35
Mark-12345678922-Sep-09 14:35 

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.