Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft Access > Re: MsAccess to...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 26 Topic 30600 of 31576
Post > Topic >>

Re: MsAccess to SqlServer: sp_setapprole problem

by adjo <adgnews@[EMAIL PROTECTED] > Jun 28, 2008 at 03:09 AM

On 27 jun, 19:13, Rich P <rpng...@[EMAIL PROTECTED]
> wrote:
> The issue you are experiencing is caused by the limited capabilities of
> ODBC. =A0For basic operations ODBC is an easy way to connect an Access
md=
b
> to a sql server backend. =A0But once the operations get a little more
> sophisticated - as in your case - the limitations of ODBC become
> apparent. =A0The workaround is to switch to ADO - this is why ADO was
> developed - =A0to overcome the limitations of ODBC.
>
> you can execute sp_setapprole through an ADODB.Command object very
> easily (just make a reference in Tools/References to Microsoft ActiveX
> DataObjects Library 2.5 or higher)
>
> Sub xyz()
>
> Dim cmd As New ADODB.Command
> cmd.ActiveConnection =3D "Provider=3DSQLOLEDB; Data
> Source=3DyourSrvr;Database=3DyourSvrDB;Trusted_Connection=3DYes
> cmd.ActiveConnection.CursorLocation =3D adUseClient
> cmd.CommandType =3D adCmdStoredProc
> cmd.CommandText =3D "sp_setapprole"
> cmd.Execute
> cmd.ActiveConnection.Close
>
> End Sub
> Rich
>
> *** Sent via Developersdexhttp://www.developersdex.com***

Thx. But I would realy like to stick to DAO for the application
itsself. I know DAO isn't the nr 1 technology any more, but I know DAO
well and don't do that much programming work as I used to do in the
past. For new stuff I concentrate on the Dotnet framework with it's
Ado.Net.
What would be nice is if the ADO code you send would have its effect
on the connection DAO/ODBC uses. That would be perfect, but as most
things in life 'perfect' isn't often the case. I'll test it anyway....
 




 26 Posts in Topic:
MsAccess to SqlServer: sp_setapprole problem
adjo <adgnews@[EMAIL P  2008-06-27 08:15:10 
Re: MsAccess to SqlServer: sp_setapprole problem
Rich P <rpng123@[EMAIL  2008-06-27 12:13:27 
Re: MsAccess to SqlServer: sp_setapprole problem
"a a r o n . k e m p  2008-06-27 20:26:01 
Re: MsAccess to SqlServer: sp_setapprole problem
adjo <adgnews@[EMAIL P  2008-06-28 03:09:25 
Re: MsAccess to SqlServer: sp_setapprole problem
adjo <adgnews@[EMAIL P  2008-06-28 03:11:42 
Re: MsAccess to SqlServer: sp_setapprole problem
"Tony Toews [MVP]&qu  2008-06-28 16:52:57 
Re: MsAccess to SqlServer: sp_setapprole problem
adjo <adgnews@[EMAIL P  2008-06-28 04:02:56 
Re: MsAccess to SqlServer: sp_setapprole problem
lyle fairfield <lyle.f  2008-06-28 05:56:38 
Re: MsAccess to SqlServer: sp_setapprole problem
lyle fairfield <lyle.f  2008-06-28 18:07:38 
Re: MsAccess to SqlServer: sp_setapprole problem
"Tony Toews [MVP]&qu  2008-06-28 22:09:32 
Re: MsAccess to SqlServer: sp_setapprole problem
lyle fairfield <lyle.f  2008-06-29 03:04:58 
Re: MsAccess to SqlServer: sp_setapprole problem
lyle fairfield <lyle.f  2008-06-29 03:34:47 
Re: MsAccess to SqlServer: sp_setapprole problem
"Larry Linson"   2008-06-30 05:02:36 
Re: MsAccess to SqlServer: sp_setapprole problem
adjo <adgnews@[EMAIL P  2008-06-30 01:53:36 
Re: MsAccess to SqlServer: sp_setapprole problem
adjo <adgnews@[EMAIL P  2008-06-30 01:56:14 
Re: MsAccess to SqlServer: sp_setapprole problem
Rich P <rpng123@[EMAIL  2008-06-30 10:22:29 
Re: MsAccess to SqlServer: sp_setapprole problem
lyle fairfield <lyle.f  2008-06-30 10:07:50 
Re: MsAccess to SqlServer: sp_setapprole problem
Rich P <rpng123@[EMAIL  2008-06-30 13:09:28 
Re: MsAccess to SqlServer: sp_setapprole problem
adjo <adgnews@[EMAIL P  2008-07-02 12:01:21 
Re: MsAccess to SqlServer: sp_setapprole problem
"James A. Fortune&qu  2008-06-30 14:41:46 
Re: MsAccess to SqlServer: sp_setapprole problem
"Tony Toews [MVP]&qu  2008-06-30 21:59:25 
Re: MsAccess to SqlServer: sp_setapprole problem
"aaron.kempf@[EMAIL   2008-07-01 22:42:44 
Re: MsAccess to SqlServer: sp_setapprole problem
lyle fairfield <lyle.f  2008-06-30 05:21:57 
Re: MsAccess to SqlServer: sp_setapprole problem
"Larry Linson"   2008-07-01 03:38:02 
Re: MsAccess to SqlServer: sp_setapprole problem
adjo <adgnews@[EMAIL P  2008-07-02 12:20:33 
Re: MsAccess to SqlServer: sp_setapprole problem
lyle fairfield <lyle.f  2008-07-02 16:09:16 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 23:16:58 CST 2008.