Unix Technical Forum

sp_setapprole fails when using odbc encrypt

This is a discussion on sp_setapprole fails when using odbc encrypt within the MS SQL ODBC forums, part of the Microsoft SQL Server category; --> There are some strange limits on what an application role password can be set to when using ODBC encryption. ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > MS SQL ODBC

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 07:23 PM
Chuck Rudolph
 
Posts: n/a
Default sp_setapprole fails when using odbc encrypt

There are some strange limits on what an application role
password can be set to when using ODBC encryption. If the
password starts with a number or contains a dash (there
may be other situations as well), the following statement
fails with a "Syntax error or access violation" error:

exec sp_setapprole 'sales', {ENCRYPT N'123'}, 'ODBC'

but this works without the encryption:

exec sp_setapprole 'sales', '123'

Is this a bug?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 07:24 PM
Brannon Jones [MS]
 
Posts: n/a
Default Re: sp_setapprole fails when using odbc encrypt

Yes, this is a bug. You can contact PSS if you require a fix.

I can't see any workarounds. We are (wrongly) expecting an 'identifier'
(starts with a letter, terminates at whitespace/operators/etc). So when
parsing the string, if it starts with a number, we don't consider it an
'identifier'. If it contains a dash, we stop parsing at the dash (other
operators like '+', etc should behave the same).

Brannon

"Chuck Rudolph" <crudolph@iatrosoft.com> wrote in message
news:04d401c37e29$e75e1f10$a401280a@phx.gbl...
> Before anybody asks, I'm using SQL Server 2000 SP3a.
>
> >-----Original Message-----
> >There are some strange limits on what an application role
> >password can be set to when using ODBC encryption. If the
> >password starts with a number or contains a dash (there
> >may be other situations as well), the following statement
> >fails with a "Syntax error or access violation" error:
> >
> >exec sp_setapprole 'sales', {ENCRYPT N'123'}, 'ODBC'
> >
> >but this works without the encryption:
> >
> >exec sp_setapprole 'sales', '123'
> >
> >Is this a bug?
> >.
> >



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:16 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com