Click here to Skip to main content
15,906,645 members
Home / Discussions / Database
   

Database

 
Generalget changes of programaticaly changed rows Pin
baranils12-Mar-08 3:39
baranils12-Mar-08 3:39 
GeneralObject reference not set to an instance of an object. in ms-sql express vb.net Pin
r_mohd12-Mar-08 2:31
r_mohd12-Mar-08 2:31 
GeneralRe: Object reference not set to an instance of an object. in ms-sql express vb.net Pin
Colin Angus Mackay12-Mar-08 4:57
Colin Angus Mackay12-Mar-08 4:57 
QuestionUsing DatePart as part of a Unique Constraint? Pin
kbalias12-Mar-08 1:07
kbalias12-Mar-08 1:07 
AnswerRe: Using DatePart as part of a Unique Constraint? Pin
Syed Mehroz Alam12-Mar-08 1:48
Syed Mehroz Alam12-Mar-08 1:48 
QuestionMembership Stored Procedures Confusion Pin
Brendan Vogt11-Mar-08 22:59
Brendan Vogt11-Mar-08 22:59 
GeneralRe: Membership Stored Procedures Confusion Pin
Mark J. Miller13-Mar-08 5:48
Mark J. Miller13-Mar-08 5:48 
QuestionRunning SQL Server stored procedure Pin
ambrose11-Mar-08 22:56
ambrose11-Mar-08 22:56 
How do i run SQL server stored procedure in visual basic 6 to INSERT records to a table from the form (frmsuppliers)?

the properties are bundled into an array for insertion in the stored procedure as: -
Public Sub SaveSupplier(ByVal vntSupplierInfo As Variant)
'Declarations
Dim strSQL As String
Dim command As New ADODB.command

If vntSupplierInfo(0, 0) = 1 Then '
Dim a(0 To 7) As Variant

a(1) = vntSupplierInfo(2, 0)
a(2) = vntSupplierInfo(3, 0)
a(3) = vntSupplierInfo(4, 0)
a(4) = vntSupplierInfo(5, 0)
a(5) = vntSupplierInfo(6, 0)
a(6) = vntSupplierInfo(7, 0)
a(7) = vntSupplierInfo(0, 0)


'Create a connection in the database
command.ActiveConnection = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Asset;Data Source=AMKILA"
command.CommandText = "sp_SaveSupplier" 'find the insert stored procedure for that language
command.Execute , a() 'Execute the the array of a's into the stored procedure and run the SP

The error i get is:

Run-time error "-2147217904(80040e10)';
Procedure 'sp_savesupplier' expects parameter '@supplierID, which was not supplied.


Here is the procedure which i want to run in order to INSERT RECORDS in table called suppliers in the database called Asset.

CREATE PROCEDURE SP_SaveSupplier
@SupplierID smallint,
@SupplierCode varchar(10),
@CompanyName Varchar(100),
@Address Varchar(50),
@Telephone1 Varchar(20),
@Faxnumber Varchar(20),
@ContactPerson Varchar(30),
@Email Varchar(50)
AS
BEGIN
INSERT INTO Suppliers(SupplierID, Supplier_Code, Company_Name, Address, Telephone1, Faxnumber, Contact_Person, Email_Address)values(@supplierID, @SupplierCode, @CompanyName, @Address, @Telephone1, @Faxnumber, @ContactPerson, @Email )
END
GO


Kindly assist as soon as possible

Amkila Shucks | :-\
GeneralRe: Running SQL Server stored procedure Pin
Mark J. Miller13-Mar-08 5:56
Mark J. Miller13-Mar-08 5:56 
GeneralConcurrency violation Pin
baranils11-Mar-08 21:31
baranils11-Mar-08 21:31 
GeneralRe: Concurrency violation Pin
Mark J. Miller13-Mar-08 6:01
Mark J. Miller13-Mar-08 6:01 
GeneralRe: Concurrency violation Pin
baranils13-Mar-08 6:54
baranils13-Mar-08 6:54 
Generalsql structure Pin
Tara1411-Mar-08 21:02
Tara1411-Mar-08 21:02 
GeneralRe: sql structure Pin
andyharman12-Mar-08 0:08
professionalandyharman12-Mar-08 0:08 
GeneralRe: sql structure Pin
Tara1412-Mar-08 7:45
Tara1412-Mar-08 7:45 
GeneralRe: sql structure Pin
Syed Mehroz Alam12-Mar-08 0:17
Syed Mehroz Alam12-Mar-08 0:17 
GeneralRe: sql structure Pin
Tara1412-Mar-08 5:50
Tara1412-Mar-08 5:50 
GeneralRe: sql structure Pin
Tara1412-Mar-08 7:36
Tara1412-Mar-08 7:36 
GeneralPassword Expiry Pin
manowj11-Mar-08 20:24
manowj11-Mar-08 20:24 
GeneralCannot resolve collation conflict for equal to operation. Pin
AlexeiXX311-Mar-08 14:44
AlexeiXX311-Mar-08 14:44 
GeneralRe: Cannot resolve collation conflict for equal to operation. Pin
AlexeiXX311-Mar-08 15:17
AlexeiXX311-Mar-08 15:17 
QuestionProblems Exporting From DataSet to .DBF File Pin
Snaider11-Mar-08 9:00
Snaider11-Mar-08 9:00 
GeneralRe: Problems Exporting From DataSet to .DBF File Pin
perryf_0011-Mar-08 12:12
perryf_0011-Mar-08 12:12 
GeneralRe: Problems Exporting From DataSet to .DBF File Pin
Snaider12-Mar-08 0:18
Snaider12-Mar-08 0:18 
GeneralDataRelation and NOCHECK add constraint Pin
CJacobus11-Mar-08 6:21
CJacobus11-Mar-08 6:21 

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.