Click here to Skip to main content
15,895,538 members
Home / Discussions / Database
   

Database

 
GeneralRe: Database upload and Append Pin
L²+D1-May-08 3:21
L²+D1-May-08 3:21 
GeneralRe: Database upload and Append Pin
Youtea1-May-08 16:36
Youtea1-May-08 16:36 
RantRe: Database upload and Append Pin
Youtea2-May-08 5:40
Youtea2-May-08 5:40 
GeneralRe: Database upload and Append Pin
L²+D2-May-08 6:41
L²+D2-May-08 6:41 
GeneralRe: Database upload and Append Pin
Rob Graham2-May-08 3:21
Rob Graham2-May-08 3:21 
GeneralRe: Database upload and Append Pin
L²+D2-May-08 5:00
L²+D2-May-08 5:00 
GeneralRe: Database upload and Append Pin
Rob Graham2-May-08 7:31
Rob Graham2-May-08 7:31 
GeneralRe: Database upload and Append Pin
L²+D6-May-08 11:14
L²+D6-May-08 11:14 
Rob,
the following is my code...still having problems. Could you please take a look? Sigh | :sigh: Sniff | :^)
<br />
                        <small>OleDbConnection con = new OleDbConnection(strConnection);<br />
			<br />
			OleDbConnection con2 = new OleDbConnection(strConnection2);<br />
			<br />
			con.Open();<br />
			con2.Open();<br />
			string strSQL = "INSERT INTO First_Table([OID]) values (@OID)";<br />
			string strSQL2 = "Select [OID] From First_Table";<br />
                        OleDbCommand cmd2 = new OleDbCommand(strSQL2,con2);<br />
			<br />
			OleDbCommand cmd = new OleDbCommand(strSQL,con);<br />
			<br />
			OleDbDataReader dr = cmd.ExecuteReader();<br />
			<br />
		<br />
			while (dr.Read())<br />
			{<br />
				try<br />
				{<br />
					<br />
				cmd.Parameters.Add (new OleDbParameter("OID",dr[0].ToString()));<br />
cmd.ExecuteReader();<br />
				}					<br />
				catch (Exception err)<br />
				{				<br />
					string str=err.Message;<br />
					bNoError=false;<br />
					<br />
				}					<br />
				finally<br />
				{<br />
					if (con.State.ToString() == "Open")<br />
						con.Close();<br />
					if (con2.State.ToString() == "Open")<br />
						con2.Close();<br />
				}</small><br />


L²+D


GeneralRe: Database upload and Append Pin
Rob Graham12-May-08 12:33
Rob Graham12-May-08 12:33 
QuestionMySql Connector .NET table exists Pin
annodomini230-Apr-08 2:56
annodomini230-Apr-08 2:56 
AnswerRe: MySql Connector .NET table exists Pin
Pete O'Hanlon30-Apr-08 3:27
mvePete O'Hanlon30-Apr-08 3:27 
AnswerRe: MySql Connector .NET table exists Pin
N a v a n e e t h30-Apr-08 3:34
N a v a n e e t h30-Apr-08 3:34 
GeneralRe: MySql Connector .NET table exists Pin
annodomini230-Apr-08 4:54
annodomini230-Apr-08 4:54 
GeneralRe: MySql Connector .NET table exists Pin
Pete O'Hanlon30-Apr-08 11:58
mvePete O'Hanlon30-Apr-08 11:58 
QuestionScripting SQL 2005 Database objects and Data Pin
Banjo Ayorinde29-Apr-08 22:27
Banjo Ayorinde29-Apr-08 22:27 
AnswerRe: Scripting SQL 2005 Database objects and Data Pin
Blue_Boy29-Apr-08 22:58
Blue_Boy29-Apr-08 22:58 
AnswerRe: Scripting SQL 2005 Database objects and Data Pin
Ashfield30-Apr-08 20:22
Ashfield30-Apr-08 20:22 
QuestionHow to get default databases in SQL Server 2005 Pin
VenkataRamana.Gali29-Apr-08 22:23
VenkataRamana.Gali29-Apr-08 22:23 
AnswerRe: How to get default databases in SQL Server 2005 Pin
R. Giskard Reventlov29-Apr-08 23:55
R. Giskard Reventlov29-Apr-08 23:55 
Questiondifference between sql,ms sql and sqlserver 2000 Pin
salil_k_singh29-Apr-08 20:29
salil_k_singh29-Apr-08 20:29 
AnswerRe: difference between sql,ms sql and sqlserver 2000 Pin
Ashfield29-Apr-08 21:17
Ashfield29-Apr-08 21:17 
JokeRe: difference between sql,ms sql and sqlserver 2000 Pin
Youtea30-Apr-08 20:48
Youtea30-Apr-08 20:48 
QuestionHow to create a table on Click event Pin
sacr8329-Apr-08 20:25
sacr8329-Apr-08 20:25 
AnswerRe: How to create a table on Click event Pin
Ashfield29-Apr-08 21:26
Ashfield29-Apr-08 21:26 
AnswerRe: How to create a table on Click event Pin
Blue_Boy29-Apr-08 21:29
Blue_Boy29-Apr-08 21:29 

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.