Click here to Skip to main content
15,903,175 members
Home / Discussions / Database
   

Database

 
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 
GeneralRe: Running SQL Server stored procedure Pin
Mark J. Miller13-Mar-08 5:56
Mark J. Miller13-Mar-08 5:56 
I haven't used VB6 since I started working with C# 6 years ago, so I don't have it installed and can't give the exact syntax. But you need to define the command parameters and pass the values of your array to the appropriate paramters. Something like this:

'define paramsters
command.Parameters.Add("@SupplierId", ....... )
command.Parameters.Add("@SupplierCode", ....... )
command.Parameters.Add("@CompanyName", ....... )
command.Parameters.Add("@Address", ....... )
' ... add other parameters ...

'set parameter values
command.Parameters("@SupplierId").Value = a(1)
command.Parameters("@SupplierCode").Value = a(2)
command.Parameters("@CompanyName").Value = a(3)
command.Parameters("@Address").Value = a(4)
' ... set other parameters ...

command.Execute()


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 
GeneralRe: DataRelation and NOCHECK add constraint Pin
Mark J. Miller11-Mar-08 7:28
Mark J. Miller11-Mar-08 7:28 

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.