Click here to Skip to main content
15,909,953 members
Home / Discussions / C#
   

C#

 
GeneralRe: want to change theme of controls..... Pin
Johnny J.3-Jun-10 22:11
professionalJohnny J.3-Jun-10 22:11 
AnswerRe: want to change theme of controls..... Pin
Dave Kreskowiak4-Jun-10 1:45
mveDave Kreskowiak4-Jun-10 1:45 
GeneralRe: want to change theme of controls..... Pin
Johnny J.4-Jun-10 2:25
professionalJohnny J.4-Jun-10 2:25 
GeneralRe: want to change theme of controls..... Pin
Dave Kreskowiak4-Jun-10 4:36
mveDave Kreskowiak4-Jun-10 4:36 
QuestionHow to Create DB in SQL server Pin
Joe Rozario3-Jun-10 18:05
Joe Rozario3-Jun-10 18:05 
AnswerRe: How to Create DB in SQL server Pin
dan!sh 3-Jun-10 18:26
professional dan!sh 3-Jun-10 18:26 
GeneralRe: How to Create DB in SQL server Pin
Joe Rozario4-Jun-10 0:14
Joe Rozario4-Jun-10 0:14 
AnswerRe: How to Create DB in SQL server Pin
Gonzalo Cao4-Jun-10 3:29
Gonzalo Cao4-Jun-10 3:29 
Hi!!

You can execute them using the .NET Sql or OleDB connector. Something like this will work

System.Data.SqlClient.SqlConnection cnn = new System.Data.SqlClient.SqlConnection([ConnectionString]);
cnn.Open();

using (System.Data.SqlClient.SqlCommand Command = new System.Data.SqlClient.SqlCommand([query], cnn))
{
Command.ExecuteNonQuery();
Command.Dispose();
cnn.Close();
cnn.Dispose();
}

Obviously if you are going to execute a bunch of query because you're going to create all the tables, insert all the defaults and such in the same process you should use transactions. Information about how to do that can be found in the MSDN, you only need to add a couple of lines more.

Hope this helps Smile | :)
QuestionDisparity between value semantics behavior with List< struct > vs. array of struct Pin
Stache3-Jun-10 15:07
Stache3-Jun-10 15:07 
AnswerRe: Disparity between value semantics behavior with List vs. array of struct [modified] PinPopular
Anthony Mushrow3-Jun-10 17:19
professionalAnthony Mushrow3-Jun-10 17:19 
GeneralRe: Disparity between value semantics behavior with List vs. array of struct Pin
Stache4-Jun-10 4:23
Stache4-Jun-10 4:23 
QuestionEnglish wordlist database for word processing app?? Pin
Jaison V3-Jun-10 7:57
Jaison V3-Jun-10 7:57 
AnswerRe: English wordlist database for word processing app?? Pin
#realJSOP3-Jun-10 8:14
professional#realJSOP3-Jun-10 8:14 
GeneralRe: English wordlist database for word processing app?? [modified] Pin
Jaison V3-Jun-10 21:16
Jaison V3-Jun-10 21:16 
GeneralRe: English wordlist database for word processing app?? Pin
PIEBALDconsult4-Jun-10 5:30
mvePIEBALDconsult4-Jun-10 5:30 
JokeRe: English wordlist database for word processing app?? Pin
Jaison V4-Jun-10 9:33
Jaison V4-Jun-10 9:33 
GeneralRe: English wordlist database for word processing app?? Pin
#realJSOP5-Jun-10 4:20
professional#realJSOP5-Jun-10 4:20 
GeneralRe: English wordlist database for word processing app?? Pin
Jaison V4-Jun-10 9:35
Jaison V4-Jun-10 9:35 
GeneralRe: English wordlist database for word processing app?? Pin
#realJSOP5-Jun-10 4:18
professional#realJSOP5-Jun-10 4:18 
QuestionHow to replace windows login form... Pin
Xelalem3-Jun-10 7:08
Xelalem3-Jun-10 7:08 
AnswerRe: How to replace windows login form... Pin
Hristo-Bojilov3-Jun-10 10:22
Hristo-Bojilov3-Jun-10 10:22 
AnswerRe: How to replace windows login form... Pin
Dave Kreskowiak3-Jun-10 11:06
mveDave Kreskowiak3-Jun-10 11:06 
GeneralRe: How to replace windows login form... Pin
V.3-Jun-10 23:45
professionalV.3-Jun-10 23:45 
GeneralRe: How to replace windows login form... Pin
Henry Minute4-Jun-10 0:37
Henry Minute4-Jun-10 0:37 
GeneralRe: How to replace windows login form... Pin
V.4-Jun-10 1:41
professionalV.4-Jun-10 1:41 

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.