Click here to Skip to main content
15,921,028 members
Home / Discussions / Database
   

Database

 
GeneralRe: alternative to rewire CASE WHEN in query Pin
scottgp27-Jul-10 1:40
professionalscottgp27-Jul-10 1:40 
GeneralRe: alternative to rewire CASE WHEN in query Pin
prachidalwadi3-Aug-10 19:36
prachidalwadi3-Aug-10 19:36 
GeneralRe: alternative to rewire CASE WHEN in query Pin
Herman<T>.Instance28-Jul-10 3:38
Herman<T>.Instance28-Jul-10 3:38 
AnswerRe: alternative to rewire CASE WHEN in query Pin
PIEBALDconsult26-Jul-10 8:05
mvePIEBALDconsult26-Jul-10 8:05 
AnswerRe: alternative to rewire CASE WHEN in query Pin
Jörgen Andersson27-Jul-10 21:31
professionalJörgen Andersson27-Jul-10 21:31 
QuestionMessage Removed Pin
25-Jul-10 1:24
bapu288925-Jul-10 1:24 
AnswerRe: SQL INSERT ISSUE Pin
Matt U.25-Jul-10 6:23
Matt U.25-Jul-10 6:23 
AnswerRe: SQL INSERT ISSUE Pin
Stoffy197225-Jul-10 7:13
Stoffy197225-Jul-10 7:13 
Hello bapu2889, i agree to Matt U.

if you want to get fast and good answers, don't SHOUT.

To your problem.

You're calling a stored procedure which has 5 parameters (in). When you use more than one pair of names, your code creates a sqlcommand with 7 parameters, 9 parameters and so on.
When i try your code, i am getting an sqlexception because there are too many parameters. The exception you are getting is an conversion error in the catch-clause. Sorry, but i can't find this out because i haven't installed vb.net.

Try this:
Insert the location data (change your sp, return the id of the new location as out parameter).
Insert each of the userdata with the id of the new location (execute second sp in a loop, set parameters).

hth
stoffy
QuestionRe: SQL INSERT ISSUE Pin
bapu288925-Jul-10 21:15
bapu288925-Jul-10 21:15 
AnswerRe: SQL INSERT ISSUE Pin
PIEBALDconsult26-Jul-10 8:24
mvePIEBALDconsult26-Jul-10 8:24 
AnswerRe: SQL INSERT ISSUE Pin
Stoffy197226-Jul-10 8:35
Stoffy197226-Jul-10 8:35 
GeneralRe: SQL INSERT ISSUE Pin
bapu288926-Jul-10 21:23
bapu288926-Jul-10 21:23 
AnswerHow to ask a question Pin
Luc Pattyn26-Jul-10 23:34
sitebuilderLuc Pattyn26-Jul-10 23:34 
QuestionInstall SQL 2008 r2 express with my application Pin
bonzaiholding24-Jul-10 22:29
bonzaiholding24-Jul-10 22:29 
AnswerRe: Install SQL 2008 r2 express with my application Repost Pin
Richard MacCutchan25-Jul-10 1:40
mveRichard MacCutchan25-Jul-10 1:40 
Answercross-post Pin
Luc Pattyn25-Jul-10 2:18
sitebuilderLuc Pattyn25-Jul-10 2:18 
Question[MS SQL SERVER] Create constraints in a cyclic relations Pin
Lutosław23-Jul-10 23:32
Lutosław23-Jul-10 23:32 
Questionanother query Pin
reza assar23-Jul-10 21:40
reza assar23-Jul-10 21:40 
AnswerRe: another query Pin
Goutam Patra23-Jul-10 22:58
professionalGoutam Patra23-Jul-10 22:58 
GeneralRe: another query Pin
reza assar24-Jul-10 1:03
reza assar24-Jul-10 1:03 
Questionquery Pin
reza assar23-Jul-10 21:32
reza assar23-Jul-10 21:32 
AnswerRe: query Pin
Goutam Patra23-Jul-10 22:57
professionalGoutam Patra23-Jul-10 22:57 
AnswerRe: query Pin
Mycroft Holmes23-Jul-10 23:05
professionalMycroft Holmes23-Jul-10 23:05 
QuestionMessage Removed Pin
23-Jul-10 21:06
prachidalwadi23-Jul-10 21:06 
AnswerRe: How to optimize the query with more than one left outer join Pin
CitrusTech23-Jul-10 21:14
CitrusTech23-Jul-10 21:14 

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.