B
Brian
Hello,
I've just noted some odd behaviour and I'm wondering how to fix it.
In my SQLServer I have a public user called CUUser that only has select
permissions only.
I originally had created a file dsn to use to link the tables using the link
table menu option and I set the username and password as that of CUUser and
I also ticked 'Save Password'
If I try modifying data in the linked table I an blocked and correctly so.
I looked at the currentdb.tabledefs("mytable").connect property and got
ODBC;Description=SQL CUMME;DRIVER=SQL
Server;SERVER=SERVER\SQL2K;UID=CUUser;PWD=CUUserPassword;APP=CUMME;WSID=XPVM01;DATABASE=CreditData
I did some VBA code to relink the all the tables and I put
td.Connect = "ODBC;Description=SQL CUMME;DRIVER=SQL
Server;SERVER=SERVER\SQL2K;UID=CUUser;PWD=CUUserPassword;APP=CUMME;WSID=XPVM01;DATABASE=CreditData
td.RefreshLink
My application also then opens an ADO connection using CUAdmin user (which
does have update permissions) to do some stuff and it leaves the connection
open.
The odd thing is that I can now go back and actually modify data in the
linked table that I could not before!! When I look at the connect property
it is now
ODBC;Description=SQLCUMME;DRIVER=SQL
Server;SERVER=SERVER\SQL2K;APP=CUMME;DATABASE=CreditData
Why am I now allowed to edit, how to I get back to NOT being able to edit?
Thanks
Brian
I've just noted some odd behaviour and I'm wondering how to fix it.
In my SQLServer I have a public user called CUUser that only has select
permissions only.
I originally had created a file dsn to use to link the tables using the link
table menu option and I set the username and password as that of CUUser and
I also ticked 'Save Password'
If I try modifying data in the linked table I an blocked and correctly so.
I looked at the currentdb.tabledefs("mytable").connect property and got
ODBC;Description=SQL CUMME;DRIVER=SQL
Server;SERVER=SERVER\SQL2K;UID=CUUser;PWD=CUUserPassword;APP=CUMME;WSID=XPVM01;DATABASE=CreditData
I did some VBA code to relink the all the tables and I put
td.Connect = "ODBC;Description=SQL CUMME;DRIVER=SQL
Server;SERVER=SERVER\SQL2K;UID=CUUser;PWD=CUUserPassword;APP=CUMME;WSID=XPVM01;DATABASE=CreditData
td.RefreshLink
My application also then opens an ADO connection using CUAdmin user (which
does have update permissions) to do some stuff and it leaves the connection
open.
The odd thing is that I can now go back and actually modify data in the
linked table that I could not before!! When I look at the connect property
it is now
ODBC;Description=SQLCUMME;DRIVER=SQL
Server;SERVER=SERVER\SQL2K;APP=CUMME;DATABASE=CreditData
Why am I now allowed to edit, how to I get back to NOT being able to edit?
Thanks
Brian