Creating Stored Procedures

Do i need the Query analyzer to create a strored procedure...I ony have the OleDb connection and i was wondering how to make a stored procedure using this connection with an access database?
[191 byte] By [Dpowers] at [2007-12-16]
# 1
a 'stored procedure' in Access is nothing more than a query that takes a parameter....

Dim MyCommandText as String = "Select * From MyTable Where (((MyFIeld)=[?]));
Dim MyConn as New OledbCOnnection(MyConnString)
Dim MyCommand as New OleDbCommand(MyCommandText, MyConn)
Dim MyParam as New OledbParameter
MyParam.value = 1
MyCommand.Parameters.add(MyParam)

thats just a quick sample...once it is created and stored you can call it by name
MyCommand.Text = "MyStoredProcedureName"
MyC0mmand.Parameters(0).value = 1
MyCommand.CommandType = CommandType.StoredProcedure
MyCommand.executenonquery

edit: sorry used vb here in c# forum shouldn't be to hard to read and translate though ....Tongue Tied

DMan1 at 2007-9-9 > top of Msdn Tech,Visual C#,Visual C# General...