Click here to Skip to main content
15,910,123 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: stored procedure with vb.bet Pin
jzonthemtn5-Aug-08 7:50
jzonthemtn5-Aug-08 7:50 
GeneralRe: stored procedure with vb.bet Pin
reynaldosp5-Aug-08 8:26
reynaldosp5-Aug-08 8:26 
GeneralRe: stored procedure with vb.bet Pin
jzonthemtn5-Aug-08 8:39
jzonthemtn5-Aug-08 8:39 
GeneralRe: stored procedure with vb.bet Pin
Paul Conrad5-Aug-08 18:59
professionalPaul Conrad5-Aug-08 18:59 
GeneralRe: stored procedure with vb.bet Pin
nishugaurav5-Aug-08 23:07
nishugaurav5-Aug-08 23:07 
GeneralRe: stored procedure with vb.bet Pin
reynaldosp6-Aug-08 4:27
reynaldosp6-Aug-08 4:27 
AnswerRe: stored procedure with vb.bet Pin
Guffa5-Aug-08 8:01
Guffa5-Aug-08 8:01 
GeneralRe: stored procedure with vb.bet Pin
reynaldosp5-Aug-08 8:30
reynaldosp5-Aug-08 8:30 
I'have this.


Dim sConnectionString As String = _
"server=rs500001\rptsrv;uid=user;pwd=pass;database=rpt"
Dim cnNorthwind As New SqlConnection(sConnectionString)
Dim cmdOrders As New SqlCommand("sp_Sales", cnNorthwind)
cmdOrders.CommandType = CommandType.StoredProcedure

cmdOrders.Parameters.Add(New SqlParameter("@StartDate", SqlDbType.DateTime))
cmdOrders.Parameters"@StartDate").Value = "2008-01-01"

cmdOrders.Parameters.Add(New SqlParameter("@EndDate", SqlDbType.DateTime))
cmdOrders.Parameters("@EndDate").Value = "2008-0-10"

I'm using SQL 2000 and VB.NET 2008, but this not work, I'm want run my stored procedure, the name for this is "sp_sales".

thank you
GeneralRe: stored procedure with vb.bet Pin
Guffa5-Aug-08 12:52
Guffa5-Aug-08 12:52 
JokeRe: stored procedure with vb.bet Pin
Mycroft Holmes5-Aug-08 21:33
professionalMycroft Holmes5-Aug-08 21:33 
GeneralRe: stored procedure with vb.bet Pin
Guffa6-Aug-08 3:11
Guffa6-Aug-08 3:11 
QuestionCopy pasting datarow Pin
zzsoulzz5-Aug-08 7:16
zzsoulzz5-Aug-08 7:16 
AnswerRe: Copy pasting datarow Pin
Mycroft Holmes5-Aug-08 21:38
professionalMycroft Holmes5-Aug-08 21:38 
QuestionHow do I build a custom popup screen to modify the properties of a custom control? Pin
chas0365-Aug-08 7:08
chas0365-Aug-08 7:08 
AnswerRe: How do I build a custom popup screen to modify the properties of a custom control? Pin
Thomas Stockwell5-Aug-08 9:05
professionalThomas Stockwell5-Aug-08 9:05 
GeneralRe: How do I build a custom popup screen to modify the properties of a custom control? Pin
chas0365-Aug-08 9:17
chas0365-Aug-08 9:17 
GeneralRe: How do I build a custom popup screen to modify the properties of a custom control? Pin
Thomas Stockwell5-Aug-08 9:48
professionalThomas Stockwell5-Aug-08 9:48 
QuestionDrag-and-Drop in VB.NET Pin
jacobjordan5-Aug-08 6:48
jacobjordan5-Aug-08 6:48 
AnswerRe: Drag-and-Drop in VB.NET Pin
Bassam Saoud5-Aug-08 6:54
Bassam Saoud5-Aug-08 6:54 
QuestionEnumeration - Public enum statement question Pin
chas0365-Aug-08 4:11
chas0365-Aug-08 4:11 
AnswerRe: Enumeration - Public enum statement question Pin
jzonthemtn5-Aug-08 4:21
jzonthemtn5-Aug-08 4:21 
GeneralRe: Enumeration - Public enum statement question Pin
Oakman5-Aug-08 7:34
Oakman5-Aug-08 7:34 
GeneralRe: Enumeration - Public enum statement question Pin
jzonthemtn5-Aug-08 7:49
jzonthemtn5-Aug-08 7:49 
GeneralRe: Enumeration - Public enum statement question Pin
MidwestLimey5-Aug-08 12:12
professionalMidwestLimey5-Aug-08 12:12 
QuestionHelp understanding C# to VB.Net translation of event handlers... Need C# and VB.Net expert... Pin
Keith Yerian5-Aug-08 3:24
Keith Yerian5-Aug-08 3:24 

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.