R
Rob W
Greetings,
This is a mixed technologies question really, but here goes and I will
explain as clearly as I can.
I am developing an application in vb.net, within this app I hardcode my SQL
statements and execute them using the OleDbCommand, passing them in as a
string/text.
With OleDbCommand I have read it can execute types storedprocedure,
tableDirect and text (which I use).
All my queries written in MS Access using the query wizard appear in .NET
data connections as functions, I right click and there is no real properties
other than type where the query is labeled as type Function though next to
its query name it reads procedure.
Can I execute these functions in vb.NET (don't look to be supported by the
OleDBCommand)?
I would also be interested in executing storedprocedures as another
alternative.
I read storedprocedures are SQLserver related, however I cannot come to the
conclusion if an ms access 07 database has them or sort of pseudo stored
procedures.
If I created a normal ms access procedure i.e. "CREATE PROCEDURE exist
([MembershipNum] Text) AS SELECT strUsername FROM tblMembers WHERE
cMembershipId = [MembershipNum] "
Do you think these would be read as stored procedures in vb.net and be seen
via server explorer in .NET (as the functions do)?
With this in mind I don't know how to create procedures in ms access 07.
I know it has to be executed in vba but other than that I'm pretty clueless.
This link looks interesting
http://help.lockergnome.com/office2/Creating-stored-Procedure-Access--ftopict25592.html
can I create a procedure from the debug window?
Hope I have explained my problem which is in summary to be able to execute
SQL statements/queries written in MS access within my .Net application
rather than hard coding in SQL statements.
Thanks (Its a long post!!)
Rob
This is a mixed technologies question really, but here goes and I will
explain as clearly as I can.
I am developing an application in vb.net, within this app I hardcode my SQL
statements and execute them using the OleDbCommand, passing them in as a
string/text.
With OleDbCommand I have read it can execute types storedprocedure,
tableDirect and text (which I use).
All my queries written in MS Access using the query wizard appear in .NET
data connections as functions, I right click and there is no real properties
other than type where the query is labeled as type Function though next to
its query name it reads procedure.
Can I execute these functions in vb.NET (don't look to be supported by the
OleDBCommand)?
I would also be interested in executing storedprocedures as another
alternative.
I read storedprocedures are SQLserver related, however I cannot come to the
conclusion if an ms access 07 database has them or sort of pseudo stored
procedures.
If I created a normal ms access procedure i.e. "CREATE PROCEDURE exist
([MembershipNum] Text) AS SELECT strUsername FROM tblMembers WHERE
cMembershipId = [MembershipNum] "
Do you think these would be read as stored procedures in vb.net and be seen
via server explorer in .NET (as the functions do)?
With this in mind I don't know how to create procedures in ms access 07.
I know it has to be executed in vba but other than that I'm pretty clueless.
This link looks interesting
http://help.lockergnome.com/office2/Creating-stored-Procedure-Access--ftopict25592.html
can I create a procedure from the debug window?
Hope I have explained my problem which is in summary to be able to execute
SQL statements/queries written in MS access within my .Net application
rather than hard coding in SQL statements.
Thanks (Its a long post!!)
Rob