+ Reply to Thread
Results 1 to 10 of 10

SQL database in local PC need to give access to some other users.

  1. #1
    Registered User
    Join Date
    10-21-2009
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    59

    SQL database in local PC need to give access to some other users.

    Dear Experts

    Someone might have already asked this question, but I am unable to find that post. :-(

    I am using Excel VBA to store my data in SQL database (SQL SERVER and DATABASE is in my LOCAL PC).
    Now I need to share my this VBA Excel file to other users, but they couldn't connect to database because they can't access in my pc.

    Can someone please advise, how can I allow other users to connect in my local pc sql database.


    Below is the VBA code which I am using.

    Please Login or Register  to view this content.


    Thanks
    Attached Images Attached Images
    Last edited by alansidman; 07-30-2015 at 12:10 PM.

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,177

    Re: SQL database in local PC need to give access to some other users.

    Do these users have rights to access the SQL server?

  3. #3
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: SQL database in local PC need to give access to some other users.

    You need to install SQL server in a location they have access to - i.e not your computer

  4. #4
    Valued Forum Contributor
    Join Date
    09-17-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    454

    Re: SQL database in local PC need to give access to some other users.

    There is a way to share a SQL database from your PC to your local network, I did it once. Fiddly and ugly, I'll look around if I can find some info.

    Edit, here:
    https://technet.microsoft.com/en-us/...ql.110%29.aspx
    Last edited by cyiangou; 07-30-2015 at 09:03 AM.

  5. #5
    Registered User
    Join Date
    10-21-2009
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: SQL database in local PC need to give access to some other users.

    Dear Ranman256,
    I want to give the access to SQL server (which is installed in my PC), but don't have any idea how to give them excess.

    Dear Kyle123,
    We are in one organization and we can share our folders to other users by Right Click-->Share With -->Specific People....
    Therefore I believe there would be a way to share SQL DATABASE. But I have no idea how to share SQL database.

    Is it possible by apply any kind of windows security setting or passing username and password in connection string?

  6. #6
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: SQL database in local PC need to give access to some other users.

    SQL server typically isn't accessed like that, it's not a file database like access, it's a client server model. So it would likely be the firewall settings on your computer that you'd need to look at.

  7. #7
    Valued Forum Contributor
    Join Date
    09-17-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    454

    Re: SQL database in local PC need to give access to some other users.

    ali84pk, as far as I know, the link I gave above is the only way to achieve what you want.

  8. #8
    Registered User
    Join Date
    10-21-2009
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: SQL database in local PC need to give access to some other users.

    cyiangou, Thanks for your link. I am looking into it, will update the post once I end up with something.

  9. #9
    Valued Forum Contributor
    Join Date
    09-17-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    454

    Re: SQL database in local PC need to give access to some other users.

    Sure.

    Is it possible by apply any kind of windows security setting or passing username and password in connection string?
    Yes, you will deal with this AFTER you make the database visible to network users.

  10. #10
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,887

    Re: SQL database in local PC need to give access to some other users.

    @ali84pk

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Access database with multiple users?
    By ciapul12 in forum Access Tables & Databases
    Replies: 2
    Last Post: 05-14-2014, 05:47 PM
  2. Multiple Users input data using Excel Userform to a Common Access Master Database
    By eummagic in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-08-2014, 01:45 AM
  3. Replies: 1
    Last Post: 10-24-2013, 01:24 PM
  4. Replies: 2
    Last Post: 07-05-2013, 09:37 AM
  5. Replies: 3
    Last Post: 08-19-2009, 09:27 AM
  6. [SOLVED] How to access a database on a server from a local machine using od
    By Todd W in forum Excel General
    Replies: 0
    Last Post: 12-15-2005, 11:20 AM
  7. Stoping users from saving tables to their local machines...
    By Philippe Roy in forum Excel General
    Replies: 1
    Last Post: 08-17-2005, 02:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1