Can SQL Server disable IntelliSense on SSMS?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty{ margin-bottom:0;
}






up vote
2
down vote

favorite












I am using SSMS 2016 (ver: 13.0.15000.23) and connecting to SQL Server database 2016 (ver: 13.0.5081.1).



IntelliSense is not working on my SSMS.



I tried the following:




  • Tools >> Options >> Text Editor >> Transact-SQL >> IntelliSense, and select Enable IntelliSense

  • Tools >> Options >> Text Editor >> Transact-SQL >> General, and verify Auto list members and Parameter information check boxes are checked

  • Query >> IntelliSense Enabled

  • Verify that SQLCMD is disabled

  • Refreshed IntelliSense cache (Ctrl+Shift+R)

  • Making sure no compile errors are in the query

  • Uninstall and reinstall SSMS


I asked other members in my team and IntelliSense only works sporadically for them, if it does.



Question:

Is there a server setting which is disabling IntelliSense on SSMS?





I've already gone through all of these questions:




  • IntelliSense not working but it is enabled

  • IntelliSense is not working at SQL Server Management Studio

  • Why is SQL Server 2008 Management Studio Intellisense not working?

  • SQL Server Intellisense not working on some servers

  • SQL Server 2008 R2 intellisense doesn't work

  • SSMS IntelliSense doesn't work on particular database


I can see around 1,600 names of objects and columns by running:



SELECT o.name, c.name 
FROM sys.objects o
INNER JOIN sys.columns c ON o.object_id = c.object_id
WHERE o.is_ms_shipped = 0;









share|improve this question









New contributor




Farhan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1




    What permissions do you have on the instance and database(s)? This may be permission related depending on your security setup. I say this as I've seen environments that revoke default grants to public which can exhibit this behavior.
    – John Eisbrener
    10 hours ago












  • @JohnEisbrener Very little permission. I've to find out. However, I can select and update records in the database I'm working in, but didn't try insert.
    – Farhan
    10 hours ago

















up vote
2
down vote

favorite












I am using SSMS 2016 (ver: 13.0.15000.23) and connecting to SQL Server database 2016 (ver: 13.0.5081.1).



IntelliSense is not working on my SSMS.



I tried the following:




  • Tools >> Options >> Text Editor >> Transact-SQL >> IntelliSense, and select Enable IntelliSense

  • Tools >> Options >> Text Editor >> Transact-SQL >> General, and verify Auto list members and Parameter information check boxes are checked

  • Query >> IntelliSense Enabled

  • Verify that SQLCMD is disabled

  • Refreshed IntelliSense cache (Ctrl+Shift+R)

  • Making sure no compile errors are in the query

  • Uninstall and reinstall SSMS


I asked other members in my team and IntelliSense only works sporadically for them, if it does.



Question:

Is there a server setting which is disabling IntelliSense on SSMS?





I've already gone through all of these questions:




  • IntelliSense not working but it is enabled

  • IntelliSense is not working at SQL Server Management Studio

  • Why is SQL Server 2008 Management Studio Intellisense not working?

  • SQL Server Intellisense not working on some servers

  • SQL Server 2008 R2 intellisense doesn't work

  • SSMS IntelliSense doesn't work on particular database


I can see around 1,600 names of objects and columns by running:



SELECT o.name, c.name 
FROM sys.objects o
INNER JOIN sys.columns c ON o.object_id = c.object_id
WHERE o.is_ms_shipped = 0;









share|improve this question









New contributor




Farhan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1




    What permissions do you have on the instance and database(s)? This may be permission related depending on your security setup. I say this as I've seen environments that revoke default grants to public which can exhibit this behavior.
    – John Eisbrener
    10 hours ago












  • @JohnEisbrener Very little permission. I've to find out. However, I can select and update records in the database I'm working in, but didn't try insert.
    – Farhan
    10 hours ago













up vote
2
down vote

favorite









up vote
2
down vote

favorite











I am using SSMS 2016 (ver: 13.0.15000.23) and connecting to SQL Server database 2016 (ver: 13.0.5081.1).



IntelliSense is not working on my SSMS.



I tried the following:




  • Tools >> Options >> Text Editor >> Transact-SQL >> IntelliSense, and select Enable IntelliSense

  • Tools >> Options >> Text Editor >> Transact-SQL >> General, and verify Auto list members and Parameter information check boxes are checked

  • Query >> IntelliSense Enabled

  • Verify that SQLCMD is disabled

  • Refreshed IntelliSense cache (Ctrl+Shift+R)

  • Making sure no compile errors are in the query

  • Uninstall and reinstall SSMS


I asked other members in my team and IntelliSense only works sporadically for them, if it does.



Question:

Is there a server setting which is disabling IntelliSense on SSMS?





I've already gone through all of these questions:




  • IntelliSense not working but it is enabled

  • IntelliSense is not working at SQL Server Management Studio

  • Why is SQL Server 2008 Management Studio Intellisense not working?

  • SQL Server Intellisense not working on some servers

  • SQL Server 2008 R2 intellisense doesn't work

  • SSMS IntelliSense doesn't work on particular database


I can see around 1,600 names of objects and columns by running:



SELECT o.name, c.name 
FROM sys.objects o
INNER JOIN sys.columns c ON o.object_id = c.object_id
WHERE o.is_ms_shipped = 0;









share|improve this question









New contributor




Farhan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I am using SSMS 2016 (ver: 13.0.15000.23) and connecting to SQL Server database 2016 (ver: 13.0.5081.1).



IntelliSense is not working on my SSMS.



I tried the following:




  • Tools >> Options >> Text Editor >> Transact-SQL >> IntelliSense, and select Enable IntelliSense

  • Tools >> Options >> Text Editor >> Transact-SQL >> General, and verify Auto list members and Parameter information check boxes are checked

  • Query >> IntelliSense Enabled

  • Verify that SQLCMD is disabled

  • Refreshed IntelliSense cache (Ctrl+Shift+R)

  • Making sure no compile errors are in the query

  • Uninstall and reinstall SSMS


I asked other members in my team and IntelliSense only works sporadically for them, if it does.



Question:

Is there a server setting which is disabling IntelliSense on SSMS?





I've already gone through all of these questions:




  • IntelliSense not working but it is enabled

  • IntelliSense is not working at SQL Server Management Studio

  • Why is SQL Server 2008 Management Studio Intellisense not working?

  • SQL Server Intellisense not working on some servers

  • SQL Server 2008 R2 intellisense doesn't work

  • SSMS IntelliSense doesn't work on particular database


I can see around 1,600 names of objects and columns by running:



SELECT o.name, c.name 
FROM sys.objects o
INNER JOIN sys.columns c ON o.object_id = c.object_id
WHERE o.is_ms_shipped = 0;






sql-server sql-server-2016 ssms intellisense






share|improve this question









New contributor




Farhan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Farhan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 7 hours ago









Max Vernon

49.5k13110216




49.5k13110216






New contributor




Farhan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 10 hours ago









Farhan

1114




1114




New contributor




Farhan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Farhan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Farhan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 1




    What permissions do you have on the instance and database(s)? This may be permission related depending on your security setup. I say this as I've seen environments that revoke default grants to public which can exhibit this behavior.
    – John Eisbrener
    10 hours ago












  • @JohnEisbrener Very little permission. I've to find out. However, I can select and update records in the database I'm working in, but didn't try insert.
    – Farhan
    10 hours ago














  • 1




    What permissions do you have on the instance and database(s)? This may be permission related depending on your security setup. I say this as I've seen environments that revoke default grants to public which can exhibit this behavior.
    – John Eisbrener
    10 hours ago












  • @JohnEisbrener Very little permission. I've to find out. However, I can select and update records in the database I'm working in, but didn't try insert.
    – Farhan
    10 hours ago








1




1




What permissions do you have on the instance and database(s)? This may be permission related depending on your security setup. I say this as I've seen environments that revoke default grants to public which can exhibit this behavior.
– John Eisbrener
10 hours ago






What permissions do you have on the instance and database(s)? This may be permission related depending on your security setup. I say this as I've seen environments that revoke default grants to public which can exhibit this behavior.
– John Eisbrener
10 hours ago














@JohnEisbrener Very little permission. I've to find out. However, I can select and update records in the database I'm working in, but didn't try insert.
– Farhan
10 hours ago




@JohnEisbrener Very little permission. I've to find out. However, I can select and update records in the database I'm working in, but didn't try insert.
– Farhan
10 hours ago










1 Answer
1






active

oldest

votes

















up vote
4
down vote













As the comment answers you've received so far imply, the most likely reason for this problem is that you don't have the appropriate permissions to that database. This is (rather vaguely) documented here:



Troubleshooting IntelliSense -> Database Engine Query IntelliSense





  • Completion lists do not include database objects for which you do not have permissions. IntelliSense flags references to objects for which you do have permissions. For example, if you open a script that is written by someone else, any references to objects for which that person has permissions and you do not are flagged as incorrect.




The easiest way to fix this is to have a DBA grant the "View Definition" privilege to the database user that you're using to connect to this database.



For example, I can create this login, and a database user for a specific database, on my local SQL Server 2016 instance:



USE [master]
GO
CREATE LOGIN [nerd-login] WITH PASSWORD = 'NerdPassword1';


USE [SomeDatabase]
GO
CREATE USER [nerd-user] FOR LOGIN [nerd-login] WITH DEFAULT_SCHEMA=[dbo]
GO


And if I login as nerd-login, I can connect to the SomeDatabase database, but I can't get any intellisense on it. But, after running this command:



USE [SomeDatabase]
GO
GRANT VIEW DEFINITION TO [nerd-user];


I'm able to get intellisense on the objects in the SomeDatabase database.



This can also be granted more broadly at the instance level (by executing GRANT VIEW ANY DEFINITION in the master database context), or at the per-object level.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "182"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });






    Farhan is a new contributor. Be nice, and check out our Code of Conduct.










     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f222992%2fcan-sql-server-disable-intellisense-on-ssms%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    4
    down vote













    As the comment answers you've received so far imply, the most likely reason for this problem is that you don't have the appropriate permissions to that database. This is (rather vaguely) documented here:



    Troubleshooting IntelliSense -> Database Engine Query IntelliSense





    • Completion lists do not include database objects for which you do not have permissions. IntelliSense flags references to objects for which you do have permissions. For example, if you open a script that is written by someone else, any references to objects for which that person has permissions and you do not are flagged as incorrect.




    The easiest way to fix this is to have a DBA grant the "View Definition" privilege to the database user that you're using to connect to this database.



    For example, I can create this login, and a database user for a specific database, on my local SQL Server 2016 instance:



    USE [master]
    GO
    CREATE LOGIN [nerd-login] WITH PASSWORD = 'NerdPassword1';


    USE [SomeDatabase]
    GO
    CREATE USER [nerd-user] FOR LOGIN [nerd-login] WITH DEFAULT_SCHEMA=[dbo]
    GO


    And if I login as nerd-login, I can connect to the SomeDatabase database, but I can't get any intellisense on it. But, after running this command:



    USE [SomeDatabase]
    GO
    GRANT VIEW DEFINITION TO [nerd-user];


    I'm able to get intellisense on the objects in the SomeDatabase database.



    This can also be granted more broadly at the instance level (by executing GRANT VIEW ANY DEFINITION in the master database context), or at the per-object level.






    share|improve this answer



























      up vote
      4
      down vote













      As the comment answers you've received so far imply, the most likely reason for this problem is that you don't have the appropriate permissions to that database. This is (rather vaguely) documented here:



      Troubleshooting IntelliSense -> Database Engine Query IntelliSense





      • Completion lists do not include database objects for which you do not have permissions. IntelliSense flags references to objects for which you do have permissions. For example, if you open a script that is written by someone else, any references to objects for which that person has permissions and you do not are flagged as incorrect.




      The easiest way to fix this is to have a DBA grant the "View Definition" privilege to the database user that you're using to connect to this database.



      For example, I can create this login, and a database user for a specific database, on my local SQL Server 2016 instance:



      USE [master]
      GO
      CREATE LOGIN [nerd-login] WITH PASSWORD = 'NerdPassword1';


      USE [SomeDatabase]
      GO
      CREATE USER [nerd-user] FOR LOGIN [nerd-login] WITH DEFAULT_SCHEMA=[dbo]
      GO


      And if I login as nerd-login, I can connect to the SomeDatabase database, but I can't get any intellisense on it. But, after running this command:



      USE [SomeDatabase]
      GO
      GRANT VIEW DEFINITION TO [nerd-user];


      I'm able to get intellisense on the objects in the SomeDatabase database.



      This can also be granted more broadly at the instance level (by executing GRANT VIEW ANY DEFINITION in the master database context), or at the per-object level.






      share|improve this answer

























        up vote
        4
        down vote










        up vote
        4
        down vote









        As the comment answers you've received so far imply, the most likely reason for this problem is that you don't have the appropriate permissions to that database. This is (rather vaguely) documented here:



        Troubleshooting IntelliSense -> Database Engine Query IntelliSense





        • Completion lists do not include database objects for which you do not have permissions. IntelliSense flags references to objects for which you do have permissions. For example, if you open a script that is written by someone else, any references to objects for which that person has permissions and you do not are flagged as incorrect.




        The easiest way to fix this is to have a DBA grant the "View Definition" privilege to the database user that you're using to connect to this database.



        For example, I can create this login, and a database user for a specific database, on my local SQL Server 2016 instance:



        USE [master]
        GO
        CREATE LOGIN [nerd-login] WITH PASSWORD = 'NerdPassword1';


        USE [SomeDatabase]
        GO
        CREATE USER [nerd-user] FOR LOGIN [nerd-login] WITH DEFAULT_SCHEMA=[dbo]
        GO


        And if I login as nerd-login, I can connect to the SomeDatabase database, but I can't get any intellisense on it. But, after running this command:



        USE [SomeDatabase]
        GO
        GRANT VIEW DEFINITION TO [nerd-user];


        I'm able to get intellisense on the objects in the SomeDatabase database.



        This can also be granted more broadly at the instance level (by executing GRANT VIEW ANY DEFINITION in the master database context), or at the per-object level.






        share|improve this answer














        As the comment answers you've received so far imply, the most likely reason for this problem is that you don't have the appropriate permissions to that database. This is (rather vaguely) documented here:



        Troubleshooting IntelliSense -> Database Engine Query IntelliSense





        • Completion lists do not include database objects for which you do not have permissions. IntelliSense flags references to objects for which you do have permissions. For example, if you open a script that is written by someone else, any references to objects for which that person has permissions and you do not are flagged as incorrect.




        The easiest way to fix this is to have a DBA grant the "View Definition" privilege to the database user that you're using to connect to this database.



        For example, I can create this login, and a database user for a specific database, on my local SQL Server 2016 instance:



        USE [master]
        GO
        CREATE LOGIN [nerd-login] WITH PASSWORD = 'NerdPassword1';


        USE [SomeDatabase]
        GO
        CREATE USER [nerd-user] FOR LOGIN [nerd-login] WITH DEFAULT_SCHEMA=[dbo]
        GO


        And if I login as nerd-login, I can connect to the SomeDatabase database, but I can't get any intellisense on it. But, after running this command:



        USE [SomeDatabase]
        GO
        GRANT VIEW DEFINITION TO [nerd-user];


        I'm able to get intellisense on the objects in the SomeDatabase database.



        This can also be granted more broadly at the instance level (by executing GRANT VIEW ANY DEFINITION in the master database context), or at the per-object level.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 7 hours ago

























        answered 8 hours ago









        jadarnel27

        2,1471226




        2,1471226






















            Farhan is a new contributor. Be nice, and check out our Code of Conduct.










             

            draft saved


            draft discarded


















            Farhan is a new contributor. Be nice, and check out our Code of Conduct.













            Farhan is a new contributor. Be nice, and check out our Code of Conduct.












            Farhan is a new contributor. Be nice, and check out our Code of Conduct.















             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f222992%2fcan-sql-server-disable-intellisense-on-ssms%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            404 Error Contact Form 7 ajax form submitting

            How to know if a Active Directory user can login interactively

            Refactoring coordinates for Minecraft Pi buildings written in Python