Raised This Month: $32 Target: $400
 8% 

Desvirtúe aquí.


  
 
 
Thread Tools Display Modes
!Morte
Veteran Member
Join Date: May 2010
Old 05-12-2011 , 19:55   Re: Desvirtúe aquí.
#12871

Quote:
Originally Posted by rubee View Post
yo tengo un code pero no con sql pero si con access es lo mismo pero con diferentes sintaxis, algo corto no se si es lo que buscas pero capaz y te sirve de algo.

PHP Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
// espacio de nombres para usar con access
using System.Data.OleDb;

namespace 
databaseAcces
{
    public 
partial class Form1 Form
    
{
        public 
Form1()
        {
            
InitializeComponent();
        }
        
// cadena de conexion a mi base de datos
        // en la cadena de abajo el archivo de access se encuentra 
        // dentro de la carpeta bin/debug/ del project
        
OleDbConnection conex = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=db_access.accdb");
        
// procedimiento almacenado que se va a ejecutar en un origen de datos
        
OleDbCommand cmd = new OleDbCommand();

        private 
void button1_Click(object senderEventArgs e)
        {
            
// instruccion que se va a ejecutar
            
cmd.CommandText "INSERT INTO ejemplo(id,nombre) VALUES('" textBox1.Text "','" textBox2.Text "')";
            
// se asgina la cadena de conexion y ON
            
cmd.Connection conex;
            
conex.Open();
            
// ExecuteNonQuery sirve para añadir un registro
            // se usa en instrucciones UPDATE, INSERT o DELETE
            
cmd.ExecuteNonQuery(); 
            
MessageBox.Show("Agregado Correctamente");
            
textBox1.Text "";
            
textBox2.Text "";
            
textBox1.Focus();
            
// se cierra la conexion
            
conex.Close();
        }
        private 
void button2_Click(object senderEventArgs e)
        {
            
cmd.CommandText "SELECT * FROM ejemplo ORDER BY nombre ASC";
            
cmd.Connection conex;
            
conex.Open();
            
//ExecuteReader lee los registros de forma secuencial
            
OleDbDataReader LeerDatos cmd.ExecuteReader();
            
label5.Text "";
            
label6.Text "";
            while (
LeerDatos.Read())
            {
                    
label5.Text += LeerDatos["id"] + Environment.NewLine;
                    
label6.Text += LeerDatos["nombre"] + Environment.NewLine;
            }
            
conex.Close();
        }
        private 
void Form1_Load(object senderEventArgs e)
        {
            
label5.Text "";
            
label6.Text "";
        }
    }

el diseño
Visual basic es eso??
__________________
First Zombie Class
[ZP] Zombie Class: Houndeye Zombie
Quote:
Originally Posted by lucas_7_94 View Post
tenes que saber pawn antes de intentar hacer algo digno.
!Morte is offline
Send a message via MSN to !Morte Send a message via Skype™ to !Morte
_Venganza_
Senior Member
Join Date: Apr 2011
Location: Valparaiso, Chile
Old 05-12-2011 , 23:17   Re: Desvirtúe aquí.
#12872

Quote:
Originally Posted by !Morte View Post
Visual basic es eso??
[loling]eso es una imagen.[/loling]
_Venganza_ is offline
rubee
Senior Member
Join Date: Oct 2009
Location: party rocking
Old 05-12-2011 , 23:44   Re: Desvirtúe aquí.
#12873

Quote:
Originally Posted by !Morte View Post
Visual basic es eso??
C#
__________________


rubee is offline
Mauro79
Senior Member
Join Date: Mar 2009
Location: Uruguay
Old 05-19-2011 , 21:25   Re: Desvirtúe aquí.
#12874

Vamo Peñarol lpm, Velez sos el Próximo jajaja.
Mauro79 is offline
Send a message via MSN to Mauro79 Send a message via Skype™ to Mauro79
folycs
Junior Member
Join Date: Jan 2011
Old 05-22-2011 , 22:28   Re: Desvirtúe aquí.
#12875

Placa nueva

[IMG]http://img251.**************/img251/1126/96355347.jpg[/IMG]

[IMG]http://**************/m/199/8436/sinttuloeqd.jpg[/IMG]

[IMG]http://img830.**************/img830/8592/img00076201105211542.jpg[/IMG]

Sapphire HD 6850 1 GB GDDR5 256 Bits
__________________
folycs is offline
Old 05-23-2011, 20:15
_Venganza_
This message has been deleted by _Venganza_. Reason: Imagen demasiado traumante.
Old 05-23-2011, 20:17
_Venganza_
This message has been deleted by shinoda. Reason: Inapropiado
01101101
BANNED
Join Date: Nov 2009
Location: 9`su 09`n0n7e`r0f76a
Old 05-25-2011 , 04:34   Re: Desvirtúe aquí.
#12876

01101101 is offline
_Venganza_
Senior Member
Join Date: Apr 2011
Location: Valparaiso, Chile
Old 05-25-2011 , 14:49   Re: Desvirtúe aquí.
#12877

Porque me borraron la imagen si no la puse directamente en el foro y le puse ADVERTENCIA u.u
_Venganza_ is offline
Mauro79
Senior Member
Join Date: Mar 2009
Location: Uruguay
Old 05-27-2011 , 00:43   Re: Desvirtúe aquí.
#12878

Recién llego a casa después del partido contra Velez, y la verdad lo que viví hoy en el estadio es impagable. Tremenda fiesta lpm Aguante Peñarol Carajo.

Saludos a todos!!!!
Mauro79 is offline
Send a message via MSN to Mauro79 Send a message via Skype™ to Mauro79
S34Qu4K3
Veteran Member
Join Date: Jan 2010
Location: Galicia
Old 05-28-2011 , 15:53   Re: Desvirtúe aquí.
#12879

[IMG]http://img225.**************/img225/9899/asdasc.png[/IMG]

__________________

- ASM2SMA: Experimental AMXX Assembly encoder

- Defuse Bar Fix

Quote:
Originally Posted by Arkshine
I DON'T WANT TO SEE NOOOOOOOOOOOOOOO AHHHHH. MY EYES ARE ALREADY HURT.
S34Qu4K3 is offline
Mauro79
Senior Member
Join Date: Mar 2009
Location: Uruguay
Old 06-02-2011 , 23:06   Re: Desvirtúe aquí.
#12880

Peñarol no massssssss loco no lo puedo creer todavía, Santos aprontate por que vamos con toda.
Mauro79 is offline
Send a message via MSN to Mauro79 Send a message via Skype™ to Mauro79
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode