SQL Server - error when logging in... - Asked By shah zeb on 05-Oct-11 03:37 AM

Hi,
i just install and  run the sql server 2008.
i connected once and by fault i deleted the account from which i logged in.
Now i can't logged in as abc-pc\(deletedAccount). as the account is deleted and no longer exist.
How can i recreate these account .
CAn some body give me some suggestion regarding this situation.
Regards,
shah
dipa ahuja replied to shah zeb on 05-Oct-11 03:46 AM
Open SQL Server Management Studio, in the server name write : (local) and use the Windows Authentication and click connect. 

Now after connecting you can create new user in either windows authentication or sqlserver authentication
shah zeb replied to dipa ahuja on 05-Oct-11 03:49 AM
No gains.

I have already tried this thing but the same error.

What else is possible?
Reena Jain replied to shah zeb on 05-Oct-11 03:50 AM
hi,

Create a new local or domain account (depending on your environment and its needs) and http://msdn.microsoft.com/en-us/library/ms191543.aspx. The MSDN article I linked to is for SQL Server 2008 R2, and you didn't mention your specific version of SQL Server. However, it makes no difference. The principle remains the same. Simply create a new account and assign it the proper permissions for your version of SQL Server. The required permissions for each service account are easily found by searching for them in the product documentation (SQL Server Books Online).

You might also want to look at the article titled "http://msdn.microsoft.com/en-us/library/ms143504.aspx" on MSDN for a refresher in the general concept of service accounts and permission. Once again the article is specific to SQL Server 2008 R2, but the principles remain the same. Search for documentation for your specific product version.

shah zeb replied to Reena Jain on 05-Oct-11 04:00 AM
i am using windows 7 and sqlserver 2008.
.
I have not got the point what you want to convey

??
dipa ahuja replied to shah zeb on 05-Oct-11 04:07 AM
do you have any other account either in sql server or windows authentication
dipa ahuja replied to shah zeb on 05-Oct-11 04:11 AM
and are you getting the your computer's name inside the username combo (disabled) ?? 
shah zeb replied to dipa ahuja on 05-Oct-11 04:12 AM
No.

shah zeb replied to dipa ahuja on 05-Oct-11 04:15 AM
Yes i am getting the computer name inside the combo disabled.

dipa ahuja replied to shah zeb on 05-Oct-11 04:17 AM
Now last option try to connect with

Server Name : "(local)"  

OR 

Server Name : "." 

if this doesn't help they you have to re-install your sql since you don't have any way to create new user or access it.
Reena Jain replied to shah zeb on 05-Oct-11 04:18 AM
Hi,

Just try to put localhost in server name and connect with this. let me know whether you are able to connect or not
shah zeb replied to Reena Jain on 05-Oct-11 04:25 AM
i already told that not able to connect "localhost".

Anoop S replied to shah zeb on 05-Oct-11 05:59 AM

The simplest solution might well be to reinstall SQL Server. Don't forget that you need to consider the time (and hence money) it will take to look for and try alternate solutions which may or may not work.

Though the first thing I'd try is a "repair" installation, to see if it covers this eventuality.

http://msdn.microsoft.com/en-us/library/ms189595.aspx