473,387 Members | 3,801 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Inserts into a DB with a Command

Teo
Hi! Sorry for my many postings on this Newsgroup. I am new to ADO.NET and I
got Sceppa's book on ADO.NET. It's a great book but covers a lot on the
DataAdapter and Offline Data. Now, if I want to Insert Data into my MSDE
Database, can I do it without using the DataAdapter?
Here are the steps I use to insert the data.
Open Connection
Add Parameters, set direction and specify value.
Call my connection.ExecuteNonQuery()
Close the Connection.

Now, I keep getting this error on the Execute reader. I am in no point
calling a Reader for the table. I just specify my stored procedure (that
only have INSERT statements) and I just want to insert the values, not
retrieve anything.
This is the error I get "Additional information: ExecuteReader: Connection
property has not been initialized."
Do you know what might be causing this? I am using a SQLConnection and
SQLCommand. That's all.

Teo
Nov 19 '05 #1
5 1761
I believe all those methods use the ExecuteReader method in the background,
so that is why the top level in the stack has that.

If you post some specific code, we can be more helpful. It sounds like your
are not setting the Connectio property of your command.

"Teo" <no********@homsany.net> wrote in message
news:u$**************@TK2MSFTNGP12.phx.gbl...
Hi! Sorry for my many postings on this Newsgroup. I am new to ADO.NET and I got Sceppa's book on ADO.NET. It's a great book but covers a lot on the
DataAdapter and Offline Data. Now, if I want to Insert Data into my MSDE
Database, can I do it without using the DataAdapter?
Here are the steps I use to insert the data.
Open Connection
Add Parameters, set direction and specify value.
Call my connection.ExecuteNonQuery()
Close the Connection.

Now, I keep getting this error on the Execute reader. I am in no point
calling a Reader for the table. I just specify my stored procedure (that
only have INSERT statements) and I just want to insert the values, not
retrieve anything.
This is the error I get "Additional information: ExecuteReader: Connection
property has not been initialized."
Do you know what might be causing this? I am using a SQLConnection and
SQLCommand. That's all.

Teo

Nov 19 '05 #2
Teo
Hey Marina, sure, here's my VB code below, I am trying to just do a
ExecuteNonQuery, so all the values I assign before that go into the DB with
the stored procedure.
Here is the code.
Thanks so much,
Teo

Private Sub btnagregar_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnagregar.Click

Dim cedula, nombre, apellido, direccion, ciudad, estado, zip, apostal As
String

Dim estudiante, privada, comercial, instrumentos, multimotor, instructor,
atp As Boolean

Dim fechanacimiento As Date

Dim param As SqlParameter





'Asignar valores

cedula = txtid.Text

apellido = txtapellido.Text

nombre = txtnombre.Text

direccion = txtdireccion.Text

ciudad = txtciudad.Text

estado = txtestado.Text

zip = txtzip.Text

apostal = txtapostal.Text

fechanacimiento = CDate(dtpfechanacimiento.Value)

estudiante = chkestudiante.CheckState

privada = chkprivada.CheckState

comercial = chkcomercial.CheckState

instrumentos = chkinstrumentos.CheckState

multimotor = chkmulti.CheckState

instructor = chkinstructor.CheckState

atp = chkatp.CheckState

cn.Open()

param = cm.Parameters.Add("@id", SqlDbType.Char, 15)

param.Value = cedula

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@apellido", SqlDbType.VarChar, 50)

param.Value = apellido

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@nombre", SqlDbType.VarChar, 50)

param.Value = nombre

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@direccion", SqlDbType.VarChar, 200)

param.Value = direccion

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@ciudad", SqlDbType.VarChar, 50)

param.Value = ciudad

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@estado", SqlDbType.VarChar, 50)

param.Value = estado

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@zip", SqlDbType.VarChar, 10)

param.Value = zip

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@apostal", SqlDbType.VarChar, 200)

param.Value = apostal

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@fechanacimiento", SqlDbType.DateTime, 8)

param.Value = fechanacimiento

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@estudiante", SqlDbType.Char, 10)

param.Value = estudiante

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@privada", SqlDbType.Char, 10)

param.Value = privada

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@comercial", SqlDbType.Char, 10)

param.Value = comercial

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@instrumentos", SqlDbType.Char, 10)

param.Value = instrumentos

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@multi", SqlDbType.Char, 10)

param.Value = multimotor

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@instructor", SqlDbType.Char, 10)

param.Value = instructor

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@atp", SqlDbType.Char, 10)

param.Value = atp

param.Direction = ParameterDirection.Input

cm.ExecuteNonQuery()



MsgBox("Su entrada ha sido procesada...")

cn.Close()

End Sub

"Marina" <zl*******@nospam.hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I believe all those methods use the ExecuteReader method in the background, so that is why the top level in the stack has that.

If you post some specific code, we can be more helpful. It sounds like your are not setting the Connectio property of your command.

"Teo" <no********@homsany.net> wrote in message
news:u$**************@TK2MSFTNGP12.phx.gbl...
Hi! Sorry for my many postings on this Newsgroup. I am new to ADO.NET and
I
got Sceppa's book on ADO.NET. It's a great book but covers a lot on the
DataAdapter and Offline Data. Now, if I want to Insert Data into my MSDE
Database, can I do it without using the DataAdapter?
Here are the steps I use to insert the data.
Open Connection
Add Parameters, set direction and specify value.
Call my connection.ExecuteNonQuery()
Close the Connection.

Now, I keep getting this error on the Execute reader. I am in no point
calling a Reader for the table. I just specify my stored procedure (that
only have INSERT statements) and I just want to insert the values, not
retrieve anything.
This is the error I get "Additional information: ExecuteReader:

Connection property has not been initialized."
Do you know what might be causing this? I am using a SQLConnection and
SQLCommand. That's all.

Teo


Nov 19 '05 #3
Where is the cm object being instantiated? That is what's important.

"Teo" <no********@homsany.net> wrote in message
news:e2**************@tk2msftngp13.phx.gbl...
Hey Marina, sure, here's my VB code below, I am trying to just do a
ExecuteNonQuery, so all the values I assign before that go into the DB with the stored procedure.
Here is the code.
Thanks so much,
Teo

Private Sub btnagregar_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnagregar.Click

Dim cedula, nombre, apellido, direccion, ciudad, estado, zip, apostal As
String

Dim estudiante, privada, comercial, instrumentos, multimotor, instructor,
atp As Boolean

Dim fechanacimiento As Date

Dim param As SqlParameter





'Asignar valores

cedula = txtid.Text

apellido = txtapellido.Text

nombre = txtnombre.Text

direccion = txtdireccion.Text

ciudad = txtciudad.Text

estado = txtestado.Text

zip = txtzip.Text

apostal = txtapostal.Text

fechanacimiento = CDate(dtpfechanacimiento.Value)

estudiante = chkestudiante.CheckState

privada = chkprivada.CheckState

comercial = chkcomercial.CheckState

instrumentos = chkinstrumentos.CheckState

multimotor = chkmulti.CheckState

instructor = chkinstructor.CheckState

atp = chkatp.CheckState

cn.Open()

param = cm.Parameters.Add("@id", SqlDbType.Char, 15)

param.Value = cedula

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@apellido", SqlDbType.VarChar, 50)

param.Value = apellido

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@nombre", SqlDbType.VarChar, 50)

param.Value = nombre

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@direccion", SqlDbType.VarChar, 200)

param.Value = direccion

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@ciudad", SqlDbType.VarChar, 50)

param.Value = ciudad

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@estado", SqlDbType.VarChar, 50)

param.Value = estado

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@zip", SqlDbType.VarChar, 10)

param.Value = zip

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@apostal", SqlDbType.VarChar, 200)

param.Value = apostal

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@fechanacimiento", SqlDbType.DateTime, 8)

param.Value = fechanacimiento

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@estudiante", SqlDbType.Char, 10)

param.Value = estudiante

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@privada", SqlDbType.Char, 10)

param.Value = privada

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@comercial", SqlDbType.Char, 10)

param.Value = comercial

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@instrumentos", SqlDbType.Char, 10)

param.Value = instrumentos

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@multi", SqlDbType.Char, 10)

param.Value = multimotor

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@instructor", SqlDbType.Char, 10)

param.Value = instructor

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@atp", SqlDbType.Char, 10)

param.Value = atp

param.Direction = ParameterDirection.Input

cm.ExecuteNonQuery()



MsgBox("Su entrada ha sido procesada...")

cn.Close()

End Sub

"Marina" <zl*******@nospam.hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I believe all those methods use the ExecuteReader method in the

background,
so that is why the top level in the stack has that.

If you post some specific code, we can be more helpful. It sounds like

your
are not setting the Connectio property of your command.

"Teo" <no********@homsany.net> wrote in message
news:u$**************@TK2MSFTNGP12.phx.gbl...
Hi! Sorry for my many postings on this Newsgroup. I am new to ADO.NET and
I
got Sceppa's book on ADO.NET. It's a great book but covers a lot on the DataAdapter and Offline Data. Now, if I want to Insert Data into my MSDE Database, can I do it without using the DataAdapter?
Here are the steps I use to insert the data.
Open Connection
Add Parameters, set direction and specify value.
Call my connection.ExecuteNonQuery()
Close the Connection.

Now, I keep getting this error on the Execute reader. I am in no point
calling a Reader for the table. I just specify my stored procedure (that only have INSERT statements) and I just want to insert the values, not
retrieve anything.
This is the error I get "Additional information: ExecuteReader:

Connection property has not been initialized."
Do you know what might be causing this? I am using a SQLConnection and
SQLCommand. That's all.

Teo



Nov 19 '05 #4
Teo
Hey Marina, I usually do that on the object itself, not in code. I actually
added the cm.connection = cn where I initialize the connection. But now I
get a System error.

Teo
"Marina" <zl*******@nospam.hotmail.com> wrote in message
news:eR**************@TK2MSFTNGP10.phx.gbl...
Where is the cm object being instantiated? That is what's important.

"Teo" <no********@homsany.net> wrote in message
news:e2**************@tk2msftngp13.phx.gbl...
Hey Marina, sure, here's my VB code below, I am trying to just do a
ExecuteNonQuery, so all the values I assign before that go into the DB

with
the stored procedure.
Here is the code.
Thanks so much,
Teo

Private Sub btnagregar_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnagregar.Click

Dim cedula, nombre, apellido, direccion, ciudad, estado, zip, apostal As
String

Dim estudiante, privada, comercial, instrumentos, multimotor, instructor,
atp As Boolean

Dim fechanacimiento As Date

Dim param As SqlParameter





'Asignar valores

cedula = txtid.Text

apellido = txtapellido.Text

nombre = txtnombre.Text

direccion = txtdireccion.Text

ciudad = txtciudad.Text

estado = txtestado.Text

zip = txtzip.Text

apostal = txtapostal.Text

fechanacimiento = CDate(dtpfechanacimiento.Value)

estudiante = chkestudiante.CheckState

privada = chkprivada.CheckState

comercial = chkcomercial.CheckState

instrumentos = chkinstrumentos.CheckState

multimotor = chkmulti.CheckState

instructor = chkinstructor.CheckState

atp = chkatp.CheckState

cn.Open()

param = cm.Parameters.Add("@id", SqlDbType.Char, 15)

param.Value = cedula

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@apellido", SqlDbType.VarChar, 50)

param.Value = apellido

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@nombre", SqlDbType.VarChar, 50)

param.Value = nombre

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@direccion", SqlDbType.VarChar, 200)

param.Value = direccion

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@ciudad", SqlDbType.VarChar, 50)

param.Value = ciudad

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@estado", SqlDbType.VarChar, 50)

param.Value = estado

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@zip", SqlDbType.VarChar, 10)

param.Value = zip

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@apostal", SqlDbType.VarChar, 200)

param.Value = apostal

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@fechanacimiento", SqlDbType.DateTime, 8)

param.Value = fechanacimiento

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@estudiante", SqlDbType.Char, 10)

param.Value = estudiante

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@privada", SqlDbType.Char, 10)

param.Value = privada

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@comercial", SqlDbType.Char, 10)

param.Value = comercial

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@instrumentos", SqlDbType.Char, 10)

param.Value = instrumentos

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@multi", SqlDbType.Char, 10)

param.Value = multimotor

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@instructor", SqlDbType.Char, 10)

param.Value = instructor

param.Direction = ParameterDirection.Input

param = cm.Parameters.Add("@atp", SqlDbType.Char, 10)

param.Value = atp

param.Direction = ParameterDirection.Input

cm.ExecuteNonQuery()



MsgBox("Su entrada ha sido procesada...")

cn.Close()

End Sub

"Marina" <zl*******@nospam.hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I believe all those methods use the ExecuteReader method in the

background,
so that is why the top level in the stack has that.

If you post some specific code, we can be more helpful. It sounds like

your
are not setting the Connectio property of your command.

"Teo" <no********@homsany.net> wrote in message
news:u$**************@TK2MSFTNGP12.phx.gbl...
> Hi! Sorry for my many postings on this Newsgroup. I am new to ADO.NET
and
I
> got Sceppa's book on ADO.NET. It's a great book but covers a lot on

the > DataAdapter and Offline Data. Now, if I want to Insert Data into my MSDE > Database, can I do it without using the DataAdapter?
> Here are the steps I use to insert the data.
> Open Connection
> Add Parameters, set direction and specify value.
> Call my connection.ExecuteNonQuery()
> Close the Connection.
>
> Now, I keep getting this error on the Execute reader. I am in no
point > calling a Reader for the table. I just specify my stored procedure

(that > only have INSERT statements) and I just want to insert the values, not > retrieve anything.
> This is the error I get "Additional information: ExecuteReader:

Connection
> property has not been initialized."
> Do you know what might be causing this? I am using a SQLConnection and > SQLCommand. That's all.
>
> Teo
>
>



Nov 19 '05 #5
Teo
Nevermind, it's working now!!! It's a good feeling when you get something to
work!!! I'll throw a party now ;-)
Thanks so much Marina!

Teo
"Marina" <zl*******@nospam.hotmail.com> wrote in message
news:Oc**************@tk2msftngp13.phx.gbl...
What is a 'System' error? That really doesn't tell us much.

"Teo" <no********@homsany.net> wrote in message
news:en**************@TK2MSFTNGP11.phx.gbl...
Hey Marina, I usually do that on the object itself, not in code. I actually
added the cm.connection = cn where I initialize the connection. But now I
get a System error.

Teo
"Marina" <zl*******@nospam.hotmail.com> wrote in message
news:eR**************@TK2MSFTNGP10.phx.gbl...
Where is the cm object being instantiated? That is what's important.

"Teo" <no********@homsany.net> wrote in message
news:e2**************@tk2msftngp13.phx.gbl...
> Hey Marina, sure, here's my VB code below, I am trying to just do a
> ExecuteNonQuery, so all the values I assign before that go into the DB with
> the stored procedure.
> Here is the code.
> Thanks so much,
> Teo
>
> Private Sub btnagregar_Click(ByVal sender As System.Object, ByVal e As > System.EventArgs) Handles btnagregar.Click
>
> Dim cedula, nombre, apellido, direccion, ciudad, estado, zip, apostal As > String
>
> Dim estudiante, privada, comercial, instrumentos, multimotor,

instructor,
> atp As Boolean
>
> Dim fechanacimiento As Date
>
> Dim param As SqlParameter
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 'Asignar valores
>
> cedula = txtid.Text
>
> apellido = txtapellido.Text
>
> nombre = txtnombre.Text
>
> direccion = txtdireccion.Text
>
> ciudad = txtciudad.Text
>
> estado = txtestado.Text
>
> zip = txtzip.Text
>
> apostal = txtapostal.Text
>
> fechanacimiento = CDate(dtpfechanacimiento.Value)
>
> estudiante = chkestudiante.CheckState
>
> privada = chkprivada.CheckState
>
> comercial = chkcomercial.CheckState
>
> instrumentos = chkinstrumentos.CheckState
>
> multimotor = chkmulti.CheckState
>
> instructor = chkinstructor.CheckState
>
> atp = chkatp.CheckState
>
>
>
> cn.Open()
>
>
>
> param = cm.Parameters.Add("@id", SqlDbType.Char, 15)
>
> param.Value = cedula
>
> param.Direction = ParameterDirection.Input
>
>
>
> param = cm.Parameters.Add("@apellido", SqlDbType.VarChar, 50)
>
> param.Value = apellido
>
> param.Direction = ParameterDirection.Input
>
> param = cm.Parameters.Add("@nombre", SqlDbType.VarChar, 50)
>
> param.Value = nombre
>
> param.Direction = ParameterDirection.Input
>
> param = cm.Parameters.Add("@direccion", SqlDbType.VarChar, 200)
>
> param.Value = direccion
>
> param.Direction = ParameterDirection.Input
>
> param = cm.Parameters.Add("@ciudad", SqlDbType.VarChar, 50)
>
> param.Value = ciudad
>
> param.Direction = ParameterDirection.Input
>
> param = cm.Parameters.Add("@estado", SqlDbType.VarChar, 50)
>
> param.Value = estado
>
> param.Direction = ParameterDirection.Input
>
> param = cm.Parameters.Add("@zip", SqlDbType.VarChar, 10)
>
> param.Value = zip
>
> param.Direction = ParameterDirection.Input
>
> param = cm.Parameters.Add("@apostal", SqlDbType.VarChar, 200)
>
> param.Value = apostal
>
> param.Direction = ParameterDirection.Input
>
> param = cm.Parameters.Add("@fechanacimiento", SqlDbType.DateTime, 8)
>
> param.Value = fechanacimiento
>
> param.Direction = ParameterDirection.Input
>
> param = cm.Parameters.Add("@estudiante", SqlDbType.Char, 10)
>
> param.Value = estudiante
>
> param.Direction = ParameterDirection.Input
>
> param = cm.Parameters.Add("@privada", SqlDbType.Char, 10)
>
> param.Value = privada
>
> param.Direction = ParameterDirection.Input
>
> param = cm.Parameters.Add("@comercial", SqlDbType.Char, 10)
>
> param.Value = comercial
>
> param.Direction = ParameterDirection.Input
>
> param = cm.Parameters.Add("@instrumentos", SqlDbType.Char, 10)
>
> param.Value = instrumentos
>
> param.Direction = ParameterDirection.Input
>
> param = cm.Parameters.Add("@multi", SqlDbType.Char, 10)
>
> param.Value = multimotor
>
> param.Direction = ParameterDirection.Input
>
> param = cm.Parameters.Add("@instructor", SqlDbType.Char, 10)
>
> param.Value = instructor
>
> param.Direction = ParameterDirection.Input
>
> param = cm.Parameters.Add("@atp", SqlDbType.Char, 10)
>
> param.Value = atp
>
> param.Direction = ParameterDirection.Input
>
>
>
>
>
> cm.ExecuteNonQuery()
>
>
>
>
>
>
>
>
>
>
>
> MsgBox("Su entrada ha sido procesada...")
>
>
>
> cn.Close()
>
> End Sub
>
> "Marina" <zl*******@nospam.hotmail.com> wrote in message
> news:%2****************@tk2msftngp13.phx.gbl...
> > I believe all those methods use the ExecuteReader method in the
> background,
> > so that is why the top level in the stack has that.
> >
> > If you post some specific code, we can be more helpful. It sounds like > your
> > are not setting the Connectio property of your command.
> >
> > "Teo" <no********@homsany.net> wrote in message
> > news:u$**************@TK2MSFTNGP12.phx.gbl...
> > > Hi! Sorry for my many postings on this Newsgroup. I am new to

ADO.NET
> and
> > I
> > > got Sceppa's book on ADO.NET. It's a great book but covers a lot on the
> > > DataAdapter and Offline Data. Now, if I want to Insert Data into my MSDE
> > > Database, can I do it without using the DataAdapter?
> > > Here are the steps I use to insert the data.
> > > Open Connection
> > > Add Parameters, set direction and specify value.
> > > Call my connection.ExecuteNonQuery()
> > > Close the Connection.
> > >
> > > Now, I keep getting this error on the Execute reader. I am in no

point
> > > calling a Reader for the table. I just specify my stored
procedure (that
> > > only have INSERT statements) and I just want to insert the

values, not
> > > retrieve anything.
> > > This is the error I get "Additional information: ExecuteReader:
> Connection
> > > property has not been initialized."
> > > Do you know what might be causing this? I am using a
SQLConnection and
> > > SQLCommand. That's all.
> > >
> > > Teo
> > >
> > >
> >
> >
>
>



Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Oasis | last post by:
Hello, I'm new to c#. I have situation where I want to execute a number of insert statements that differ only in a few dynamic values. When I was a Java programmer, I would do this with a...
1
by: Craig Stadler | last post by:
Using mysql 4.0.23- What is the best way to execute several (hundreds of) inserts and updates? Rather than issuing tons of individual inserts and updates, can I send the strings to a text file...
7
by: Steven D.Arnold | last post by:
How good is Postgres' performance for massive simultaneous insertions into the same heavily-indexed table? Are there any studies or benchmarks I can look at for that? I understand Postgres uses...
3
by: deathyam | last post by:
Hi, I have an Excel 97 app in which I'm using SQL INSERTs to insert data into an Access 97 database table. The table structure is as follows: VersionID (PK) (Long) MetricID (PK) (Long)...
0
by: Steve - DND | last post by:
Is there a way to perform multiple inserts and updates to SQL Server with stored procedures and the Command object's named parameters all at once? The only way to do this that I'm gathering so far...
1
by: Brian Maguire | last post by:
Background Info: I have a table with a approx 2.5 million rows. The table often gets 200-300 inserts per second. We are see that the database (7.4.1 Red Hat Enterprise ED 4 way Xeon) will...
3
by: zelnaga | last post by:
according to the mysql manual, multiple inserts can be sped up by locking the table before doing them and unlocking the table afterwards. is the same true of multiple inserts in mysql? if so,...
0
by: poe | last post by:
Hello, I have a large database table running on SQL Server 8.0. It currently has nearly 98 million records on it's ways to 125 million. I am doing inserts as quickly as the server can handle it,...
2
by: sangam56 | last post by:
Greetings. I suppose people out there can help in my problem. I am using sql server of microsoft visual studio 2005 itself. I have created a stored procedure which is give below. It works fine but...
9
by: lenygold via DBMonster.com | last post by:
I have the following trigger: --#SET TERMINATOR ! CREATE TRIGGER CROSS_REFF_TRIG AFTER INSERT ON NEW_CATALOG REFERENCING NEW AS nnn FOR EACH ROW MODE DB2SQL BEGIN ATOMIC DECLARE reason...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.