Click here to Skip to main content
15,892,298 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Connect to remote sql server Pin
satc11-Jul-15 4:09
satc11-Jul-15 4:09 
AnswerRe: Connect to remote sql server Pin
Eddy Vluggen9-Jul-15 22:15
professionalEddy Vluggen9-Jul-15 22:15 
GeneralRe: Connect to remote sql server Pin
satc10-Jul-15 2:55
satc10-Jul-15 2:55 
GeneralRe: Connect to remote sql server Pin
Eddy Vluggen10-Jul-15 3:20
professionalEddy Vluggen10-Jul-15 3:20 
AnswerRe: Connect to remote sql server Pin
Richard Deeming10-Jul-15 1:52
mveRichard Deeming10-Jul-15 1:52 
QuestionHow to Call Stored Procedure parameters in Class Pin
Mohamed Hamdy9-Jul-15 14:42
Mohamed Hamdy9-Jul-15 14:42 
QuestionRe: How to Call Stored Procedure parameters in Class Pin
Ralf Meier9-Jul-15 20:29
mveRalf Meier9-Jul-15 20:29 
AnswerRe: How to Call Stored Procedure parameters in Class Pin
Mohamed Hamdy10-Jul-15 6:23
Mohamed Hamdy10-Jul-15 6:23 
That's a Function again

Public Function Add_Ne(ExecQ As String, paramxx As String, TextN As String) As Boolean

     Try
         con.Open()

         With cmd
             .CommandType = CommandType.StoredProcedure
             .CommandText = ExecQ
             .Connection = con
             .Parameters.AddWithValue(paramxx, TextN)
             .ExecuteNonQuery()
         End With

         If con.State = ConnectionState.Open Then
             con.Close()
         End If
         Return True
     Catch ex As Exception
         MessageBox.Show(ex.Message)
         Return False
     End Try

 End Function


That's work but for 1 params and 1 textbox I call it in my form by

xo.Add_Ne("INSERT_ACCOUNT", "@AccountID", TXTAccNumber.Text)


And it's work What I mean If I have 15 params Is it true to put 15 params and 15 textbox as string in main of function or there are easier ways?
QuestionRe: How to Call Stored Procedure parameters in Class Pin
Eddy Vluggen10-Jul-15 7:10
professionalEddy Vluggen10-Jul-15 7:10 
AnswerRe: How to Call Stored Procedure parameters in Class Pin
Wendelius10-Jul-15 7:18
mentorWendelius10-Jul-15 7:18 
AnswerRe: How to Call Stored Procedure parameters in Class Pin
Eddy Vluggen9-Jul-15 23:07
professionalEddy Vluggen9-Jul-15 23:07 
QuestionRun time Error Can't find project Library, Missing Reference attachemat Extra '0.9 Pin
Member 117214498-Jul-15 20:14
Member 117214498-Jul-15 20:14 
AnswerRe: Run time Error Can't find project Library, Missing Reference attachemat Extra '0.9 Pin
RedDk9-Jul-15 6:52
RedDk9-Jul-15 6:52 
QuestionData Access Layer, returning data Pin
jkirkerx6-Jul-15 12:33
professionaljkirkerx6-Jul-15 12:33 
AnswerRe: Data Access Layer, returning data Pin
Dave Kreskowiak7-Jul-15 9:36
mveDave Kreskowiak7-Jul-15 9:36 
GeneralRe: Data Access Layer, returning data Pin
jkirkerx7-Jul-15 10:40
professionaljkirkerx7-Jul-15 10:40 
GeneralRe: Data Access Layer, returning data Pin
Dave Kreskowiak7-Jul-15 10:50
mveDave Kreskowiak7-Jul-15 10:50 
GeneralRe: Data Access Layer, returning data Pin
jkirkerx7-Jul-15 11:20
professionaljkirkerx7-Jul-15 11:20 
GeneralRe: Data Access Layer, returning data Pin
jkirkerx7-Jul-15 11:27
professionaljkirkerx7-Jul-15 11:27 
GeneralRe: Data Access Layer, returning data Pin
Dave Kreskowiak7-Jul-15 14:54
mveDave Kreskowiak7-Jul-15 14:54 
GeneralRe: Data Access Layer, returning data Pin
jkirkerx8-Jul-15 12:46
professionaljkirkerx8-Jul-15 12:46 
GeneralRe: Data Access Layer, returning data Pin
Dave Kreskowiak8-Jul-15 14:56
mveDave Kreskowiak8-Jul-15 14:56 
AnswerRe: Data Access Layer, How to get the count, and use the data returned by the first function posted above Pin
jkirkerx7-Jul-15 14:04
professionaljkirkerx7-Jul-15 14:04 
GeneralRe: Data Access Layer, How to get the count, and use the data returned by the first function posted above Pin
Dave Kreskowiak7-Jul-15 15:09
mveDave Kreskowiak7-Jul-15 15:09 
GeneralRe: Data Access Layer, How to get the count, and use the data returned by the first function posted above Pin
jkirkerx8-Jul-15 6:45
professionaljkirkerx8-Jul-15 6:45 

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.