Click here to Skip to main content
15,564,329 members
Home / Discussions / C#
   

C#

 
GeneralRe: Alternative to using a string as a key? Pin
jschell4-Jan-12 9:12
jschell4-Jan-12 9:12 
GeneralRe: Alternative to using a string as a key? Pin
SledgeHammer014-Jan-12 10:26
SledgeHammer014-Jan-12 10:26 
GeneralRe: Alternative to using a string as a key? Pin
jschell6-Jan-12 9:29
jschell6-Jan-12 9:29 
AnswerRe: Alternative to using a string as a key? Pin
Shameel3-Jan-12 17:22
professionalShameel3-Jan-12 17:22 
AnswerRe: Alternative to using a string as a key? Pin
BillWoodruff3-Jan-12 20:28
professionalBillWoodruff3-Jan-12 20:28 
AnswerRe: Alternative to using a string as a key? Pin
V.3-Jan-12 21:34
professionalV.3-Jan-12 21:34 
AnswerRe: Alternative to using a string as a key? Pin
Subin Mavunkal4-Jan-12 19:06
Subin Mavunkal4-Jan-12 19:06 
Questionhow to take a table name from a text box! Pin
mpvkrishnadhar3-Jan-12 8:39
mpvkrishnadhar3-Jan-12 8:39 
hi
i designed my form as

textbox, button

now in the buttonclick event i wrote a code which is as follows!


try
{
string constr = "User Id = scott;Password=tiger;Provider=Msdaora.1";
OleDbConnection con = new OleDbConnection(constr);
con.Open();
MessageBox.Show(" Connected to ORACLE!");
string q = "create table pert(enum number,ename varchar2(10),sal number)";
OleDbCommand cmd = new OleDbCommand(q, con);
cmd.ExecuteNonQuery();
MessageBox.Show("Table Created!");

}
catch (OleDbException a)
{
MessageBox.Show(a.Message);
}
now in the string q how do i add a textbox1.text so that while running my program i give the table name dynamically instead of statistically mentioning the table name as shown in the string q.
AnswerRe: how to take a table name from a text box! Pin
PIEBALDconsult3-Jan-12 8:43
professionalPIEBALDconsult3-Jan-12 8:43 
GeneralRe: how to take a table name from a text box! Pin
mpvkrishnadhar3-Jan-12 8:46
mpvkrishnadhar3-Jan-12 8:46 
AnswerRe: how to take a table name from a text box! Pin
Luc Pattyn3-Jan-12 9:05
sitebuilderLuc Pattyn3-Jan-12 9:05 
AnswerRe: how to take a table name from a text box! Pin
Luc Pattyn3-Jan-12 9:04
sitebuilderLuc Pattyn3-Jan-12 9:04 
SuggestionRe: how to take a table name from a text box! Pin
AHSAN1114-Jan-12 5:38
professionalAHSAN1114-Jan-12 5:38 
GeneralRe: how to take a table name from a text box! Pin
Luc Pattyn4-Jan-12 5:49
sitebuilderLuc Pattyn4-Jan-12 5:49 
AnswerRe: how to take a table name from a text box! Pin
AHSAN1113-Jan-12 23:02
professionalAHSAN1113-Jan-12 23:02 
GeneralRe: how to take a table name from a text box! Pin
Luc Pattyn4-Jan-12 4:14
sitebuilderLuc Pattyn4-Jan-12 4:14 
GeneralRe: how to take a table name from a text box! Pin
AHSAN1114-Jan-12 5:31
professionalAHSAN1114-Jan-12 5:31 
AnswerRe: how to take a table name from a text box! Pin
Luc Pattyn4-Jan-12 5:41
sitebuilderLuc Pattyn4-Jan-12 5:41 
GeneralRe: how to take a table name from a text box! Pin
mpvkrishnadhar4-Jan-12 5:23
mpvkrishnadhar4-Jan-12 5:23 
AnswerRe: how to take a table name from a text box! Pin
Luc Pattyn4-Jan-12 5:34
sitebuilderLuc Pattyn4-Jan-12 5:34 
GeneralRe: how to take a table name from a text box! Pin
mpvkrishnadhar4-Jan-12 5:53
mpvkrishnadhar4-Jan-12 5:53 
GeneralRe: how to take a table name from a text box! Pin
AHSAN1115-Jan-12 3:18
professionalAHSAN1115-Jan-12 3:18 
Questionwhen i delete my program (in C#) the database still exists - how to delete him ? Pin
goldsoft3-Jan-12 5:51
goldsoft3-Jan-12 5:51 
AnswerRe: when i delete my program (in C#) the database still exists - how to delete him ? Pin
Richard Andrew x643-Jan-12 7:00
professionalRichard Andrew x643-Jan-12 7:00 
GeneralRe: when i delete my program (in C#) the database still exists - how to delete him ? Pin
Gali19783-Jan-12 10:33
Gali19783-Jan-12 10:33 

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.