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;
sql-server sql-server-2016 ssms intellisense
New contributor
add a comment |
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;
sql-server sql-server-2016 ssms intellisense
New contributor
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 canselect
andupdate
records in the database I'm working in, but didn't tryinsert
.
– Farhan
10 hours ago
add a comment |
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;
sql-server sql-server-2016 ssms intellisense
New contributor
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
sql-server sql-server-2016 ssms intellisense
New contributor
New contributor
edited 7 hours ago
Max Vernon
49.5k13110216
49.5k13110216
New contributor
asked 10 hours ago
Farhan
1114
1114
New contributor
New contributor
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 canselect
andupdate
records in the database I'm working in, but didn't tryinsert
.
– Farhan
10 hours ago
add a comment |
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 canselect
andupdate
records in the database I'm working in, but didn't tryinsert
.
– 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
add a comment |
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.
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
edited 7 hours ago
answered 8 hours ago
jadarnel27
2,1471226
2,1471226
add a comment |
add a comment |
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.
Farhan is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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
andupdate
records in the database I'm working in, but didn't tryinsert
.– Farhan
10 hours ago