Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Pivot Table Connection String - How to hide it?

Hi

We have several pivot table reports (Excel 97) that we distribute to our
users. The reports connect to an SQL Server 2000 database. Some of the
reports use trusted connection (windows) and others use non-trusted (SQL
login). These reports can easily be opened using VBA or in Excel 2007 to view
the connection string (settings). How can we protect or hide these settings?
(especially the username and password). Any help would be appreciated.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 33
Default Pivot Table Connection String - How to hide it?

I haven't ever tried to do this, as it's the policy at our company to never
embed user IDs or passwords into the connection string. I don't recall ever
coming across anything that will allow you do to that, though.

Is there a reason you can't just let the user authenticate their own UID and
Password? I would imagine that would be much more secure.

Good luck!


--
If you like this answer, please click ''Yes.''

Happy calculating!


"fijieddie" wrote:

Hi

We have several pivot table reports (Excel 97) that we distribute to our
users. The reports connect to an SQL Server 2000 database. Some of the
reports use trusted connection (windows) and others use non-trusted (SQL
login). These reports can easily be opened using VBA or in Excel 2007 to view
the connection string (settings). How can we protect or hide these settings?
(especially the username and password). Any help would be appreciated.

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Pivot Table Connection String - How to hide it?

Thanks for the reply. We do not want the user to enter user and password for
reports as it would become less user friendly. There are numerous
applications and a lot more reports. As for the user id and password,
previously we had Microsoft Office 97 as the default and then it was Office
2003. It was harder to get to the connection properties. In Excel 2007 (which
we are moving slowly towards), there is a simple button there that allows you
to view the connection string. Also, due to management wanting to tighten
security, we are reveiwing all these "loopholes".

I guess hiding the connection settings is not normally done?

--
Eddie


"GSnyder" wrote:

I haven't ever tried to do this, as it's the policy at our company to never
embed user IDs or passwords into the connection string. I don't recall ever
coming across anything that will allow you do to that, though.

Is there a reason you can't just let the user authenticate their own UID and
Password? I would imagine that would be much more secure.

Good luck!


--
If you like this answer, please click ''Yes.''

Happy calculating!


"fijieddie" wrote:

Hi

We have several pivot table reports (Excel 97) that we distribute to our
users. The reports connect to an SQL Server 2000 database. Some of the
reports use trusted connection (windows) and others use non-trusted (SQL
login). These reports can easily be opened using VBA or in Excel 2007 to view
the connection string (settings). How can we protect or hide these settings?
(especially the username and password). Any help would be appreciated.

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 33
Default Pivot Table Connection String - How to hide it?

Fiji,

A sneaky way I've used to get around this in the past is to bring up a form
using VBA with a User ID and Password box (formatted as password, so it shows
up as ***** when they type into it). I then added a GO button that updates
all of the pivots, getexternaldata or whatever. Inside that VBA code, then I
programatically set the connection strings and set the UID= Forms1!UserID and
the PWD= Forms1!Password.

So, I've not stored the password in any files and the only way to get to the
password is if the user has access to that machine when it is running the
code (which means they must already have the logon and password). It makes
it easier for the user because they only need to type everything in once
rather than for each different data source.

If you're interested in more info about that loophole, I can post some
further code snippets for you.

Happy calculating!

--
If you like this answer, please click ''''Yes.''''


"fijieddie" wrote:

Thanks for the reply. We do not want the user to enter user and password for
reports as it would become less user friendly. There are numerous
applications and a lot more reports. As for the user id and password,
previously we had Microsoft Office 97 as the default and then it was Office
2003. It was harder to get to the connection properties. In Excel 2007 (which
we are moving slowly towards), there is a simple button there that allows you
to view the connection string. Also, due to management wanting to tighten
security, we are reveiwing all these "loopholes".

I guess hiding the connection settings is not normally done?

--
Eddie


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Pivot Table Connection String - How to hide it?

I understand your method and actually its a very logical way of handling it.
But unfortunately - it won't do for our environment :)

I am getting convinced that this is a rare request, judging from the answers
I have found (or not found) on the internet...

--
Eddie


"GSnyder" wrote:

Fiji,

A sneaky way I've used to get around this in the past is to bring up a form
using VBA with a User ID and Password box (formatted as password, so it shows
up as ***** when they type into it). I then added a GO button that updates
all of the pivots, getexternaldata or whatever. Inside that VBA code, then I
programatically set the connection strings and set the UID= Forms1!UserID and
the PWD= Forms1!Password.

So, I've not stored the password in any files and the only way to get to the
password is if the user has access to that machine when it is running the
code (which means they must already have the logon and password). It makes
it easier for the user because they only need to type everything in once
rather than for each different data source.

If you're interested in more info about that loophole, I can post some
further code snippets for you.

Happy calculating!

--
If you like this answer, please click ''''Yes.''''


"fijieddie" wrote:

Thanks for the reply. We do not want the user to enter user and password for
reports as it would become less user friendly. There are numerous
applications and a lot more reports. As for the user id and password,
previously we had Microsoft Office 97 as the default and then it was Office
2003. It was harder to get to the connection properties. In Excel 2007 (which
we are moving slowly towards), there is a simple button there that allows you
to view the connection string. Also, due to management wanting to tighten
security, we are reveiwing all these "loopholes".

I guess hiding the connection settings is not normally done?

--
Eddie


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Relative path in database query connection string DanL Excel Discussion (Misc queries) 1 February 20th 09 06:09 PM
I want to hide data that's less than 1 in a pivot table SDixon578 Excel Discussion (Misc queries) 0 April 23rd 08 01:09 PM
Hide Pivot Table Filters [email protected] Excel Discussion (Misc queries) 1 March 27th 08 12:15 AM
How do I use a connection string? BrandenK Excel Discussion (Misc queries) 0 September 25th 07 07:10 PM
Copy pivot table and get rid of connection araki Excel Discussion (Misc queries) 3 March 8th 06 12:59 AM


All times are GMT +1. The time now is 10:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"