Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2006-01-19 : 08:33:41
|
| Masood writes "HiI am using visual basic 6 and sql server 2000I created a View in Sql server and i want to pass an argument (date for selecting records).Please inform me how can i pass an argument through VB6thanks" |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-01-19 : 08:43:18
|
| Select columns from yourView where datecol=@dateMadhivananFailing to plan is Planning to fail |
 |
|
|
jsmith8858
Dr. Cross Join
7423 Posts |
Posted - 2006-01-19 : 10:28:08
|
| Read up on ADO. you need to create an ADO command object, and from there you can set parameters as needed before executing it. The easiest way is to create a stored procedure that accepts parameters and to set the ADO command to call that stored proc.There's tons of examples regarding this on-line; do some googling. If you have a *specific* question you can ask us here. |
 |
|
|
|
|
|