Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6224839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:44:13+00:00 2026-05-24T08:44:13+00:00

I am using MSSQL 2008 R2. I have a particular database that when it

  • 0

I am using MSSQL 2008 R2. I have a particular database that when it is restored it is being accessible from everyone from the SQL Management Studio. By using the below SQL statement I have identified that the Public server role has been granted the connect permission on this database.

use db_mydb
SELECT * 
  FROM sys.database_permissions 
 WHERE grantee_principal_id = (SELECT principal_id 
                                 FROM sys.server_principals 
                                WHERE name ='public')

With the result of this query being the below

0 DATABASE 0 0 2 1 CO CONNECT G GRANT

Is there any work around to revoke this permission?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T08:44:13+00:00Added an answer on May 24, 2026 at 8:44 am

    My solution for this was to create an empty database. Then script the tables, views and stored procuders using the Generate Scripts. And then import the data using the Import Data option. All of this can be done using only the Micosoft SQL Management Studio.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two tables in an existing (MSSQL 2008 R2) database that are related
I am currently using MS SQL Server 2008. I have a stored procedure that
We have a wonderful ASP.NET MVC 2 web application using MS SQL 2008 and
I have an asp.net, c# application using MSSQL 2008 server. At some point, i
I have MSSQL 2008 database, which is hosted on a server. The database have
Using MSSQL 2008 and XQUERY Consider the following XML stored in a table: <ROOT>
I'm storing localized strings in a single datatable using MS Sql (2008 or whatever).
I am trying to connect to a remote MySQL database using Visual C# 2008
I am using mssql and I want to make a query that returns a
I have a table ClassAttendance and I'm using MSSQL 2005 studentID attendanceDate status -------------------------------------

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.