sa

sql server 2008 enable sa account

依然范特西╮ 提交于 2019-12-13 07:43:50
问题 I logged into SQL Server 2008 via SQL Server Management Studio using Windows admin account. When I run the command ( ALTER LOGIN sa ENABLE ) I get the following error. Cannot alter the login 'sa', because it does not exist or you do not have permission. 回答1: You account doesn't have permissions. It isn't sysadmin. CREATE DATABASE requires Requires CREATE DATABASE, CREATE ANY DATABASE, or ALTER ANY DATABASE permission. This is (legacy SQL Server 2000 lingo): sysadmin dbcreator If the account

How to set SQL Server connection string?

断了今生、忘了曾经 提交于 2019-11-26 01:07:11
问题 I\'m developing a simple C# application, I\'d like to know this: When I connect my application to SQL Server on my PC, I know the connection string (server name, password etc.), but when I connect it to another PC, the SQL Server connection string is different. Is there a common account in SQL Server that come with default account that can connect? I have heard about sa account in SQL Server, what is sa ? 回答1: // .NET DataProvider -- Standard Connection with username and password using System