Advertisement

03.14.2008 at 12:27PM PDT, ID: 23242819
[x]
Attachment Details

Insert values of a listbox into a database table

Asked by Anushart in SQL Query Syntax, Microsoft Visual Basic.Net, SQL Server 2005

Tags:

Can anyone help me in writing a SQL query which takes values from the list box  and inserts into a database table.The only complication in this is
The number of items in the listbox may not be equal to number of columns.
For Example
If the table has 10 columns the list box may have anynumber from 1-10 items
incase of 1 item I need to insert that item in 1st column and assign NUll values to the rest of the columns.

Your query in VB.Net is higly regarded.

Thank YouStart Free Trial
 
 
[+][-]03.14.2008 at 01:00PM PDT, ID: 21128953

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.14.2008 at 01:12PM PDT, ID: 21129056

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.14.2008 at 01:54PM PDT, ID: 21129463

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQL Query Syntax, Microsoft Visual Basic.Net, SQL Server 2005
Tags: SQL,VB.Net
Sign Up Now!
Solution Provided By: Anushart
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628