Neil Toulouse
Programmer
Hi folks!
I have touched on this problem over time but have not really found a solution to it so am hoping someone could point me in the right direction!
SCENARIO:
VFP front end application linking to SQL Server database. The 'user' in SQL for the application is set to db_owner, and no server roles, which is fine for 99% of the workings of the App.
However, in one instance it needs to import data from an external source. From testing the quickest way of achieving this is via Bulk Import, but to do that requires the 'user' to have server roles of bulkadmin and sysadmin. Our clients are not overly happy about setting the roles permanently for this 'user', so they are having to get the DBAs involved to set the roles so they can run the process, and then set them back afterwards. This process is causing them grief!
What I would like to do is somehow (progammatically) give the 'user' the roles required to complete the process, ie add the roles before the process, and remove them afterwards. The only level of access the program will have is as the 'user'.
Can anyone advise anything I can do to achieve this?
TIA
Neil
I like work. It fascinates me. I can sit and look at it for hours...
I have touched on this problem over time but have not really found a solution to it so am hoping someone could point me in the right direction!
SCENARIO:
VFP front end application linking to SQL Server database. The 'user' in SQL for the application is set to db_owner, and no server roles, which is fine for 99% of the workings of the App.
However, in one instance it needs to import data from an external source. From testing the quickest way of achieving this is via Bulk Import, but to do that requires the 'user' to have server roles of bulkadmin and sysadmin. Our clients are not overly happy about setting the roles permanently for this 'user', so they are having to get the DBAs involved to set the roles so they can run the process, and then set them back afterwards. This process is causing them grief!
What I would like to do is somehow (progammatically) give the 'user' the roles required to complete the process, ie add the roles before the process, and remove them afterwards. The only level of access the program will have is as the 'user'.
Can anyone advise anything I can do to achieve this?
TIA
Neil
I like work. It fascinates me. I can sit and look at it for hours...