Groups | Blog | Home
all groups > sql server connect > june 2007 >

sql server connect : Readonly connection


Hari Prasad
6/5/2007 12:00:00 AM
Hello,

The easy way is create a SQL Server user with db_Datareader fixed database
role and use it inside application.

Thanks
Hari


[quoted text, click to view]

fpsoft
6/5/2007 12:00:00 AM
In my case is not possible, i thought there was something in the
connectionstring like "mode=read", but if i add this to the connectionstring
it gives me an error.


"Hari Prasad" <hari_prasad_k@hotmail.com> ha scritto nel messaggio
news:%23E2butxpHHA.4032@TK2MSFTNGP02.phx.gbl...
[quoted text, click to view]

fpsoft
6/5/2007 12:10:42 AM
In a Vb6 program i need to open a "read only" Sql Native Client Connection
to a Sql2005 database.

How can i do this? Is there something i can specify in the connectionstring?
Actually i have found nothing.

Note: i'm using SQLNCLI provider.

Thanks.

William (Bill) Vaughn
6/6/2007 10:47:43 AM
Nope. This is a JET feature--not designed for use with SQL Server.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
-----------------------------------------------------------------------------------------------------------------------

[quoted text, click to view]

AddThis Social Bookmark Button