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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 SQL Server and Visual basic 6

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-01-19 : 08:33:41
Masood writes "Hi

I am using visual basic 6 and sql server 2000

I 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 VB6

thanks"

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-01-19 : 08:43:18
Select columns from yourView where datecol=@date

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

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.
Go to Top of Page
   

- Advertisement -