ping sql servername

i have sql 2005 installed on Laptop its only a development copy
I have my servername as computername\sqlinstance

when i ping computername\sqlinstance nothing returned

I look in cliconfg.exe and do not see alias .......

Is there something i need to set so i can ping my sql server on my laptop
Name pipes set
LVL 7
TRACEYMARYAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rboyd56Commented:
You cannot ping the instance name. You can only ping the computer name (or ip address).

Ping does not understand the concept of an instance.

Why do you want to ping the sql server?
0
andrewbleakleyCommented:
try a vb script that will open a connection to the server instance something like
-----
Dim Connection
Dim ConnString
Dim SQL
On Error Resume Next
'define the connection string, specify database driver
ConnString="DRIVER={SQL Server};SERVER=HOMER;UID=sa;" & _
"PWD=as;DATABASE=AdManger"

'declare the SQL statement that will query the database
SQL = "SELECT * FROM TABLE_NAME"

'create an instance of the ADO connection and recordset objects
Set Connection = CreateObject("ADODB.Connection")

'Open the connection to the database
Connection.Open ConnString
if err.Number > 0 Then
  WScript.Echo "Connection Failed : " & Err.Description
else
  WScript.Echo "Connection fine"
end if
Connection.Close
Set Connection = Nothing
0
TRACEYMARYAuthor Commented:
I was trying to use bcp from sql and it keeps giving me the
Error = [Microsoft][ODBC SQL Server Driver]Cannot generate SSPI context
I looked around it said to try and ping computer

0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

andrewbleakleyCommented:
have you tried everything in this http://support.microsoft.com/kb/811889
ping the name of he server that sqk is running on not th instance name
0
rboyd56Commented:
The cannot generate SSPI context error is caused by an invalid Service Principle Name (SPN) for SQL Server. MOre than like the SPN is assigned for an older service account, like the system account, and never got updated when the service account was changed.

Download the setspn utility from this site:

http://www.microsoft.com/downloads/details.aspx?familyid=5fd831fd-ab77-46a3-9cfe-ff01d29e5c46&displaylang=en

At command prompt run these commands:

Setspn -L <SQL Server machine name>

Setspn -L <ql server service account>

Post the results to both of these commands. They do not have to be run on the SQL Server itself, but have to be run on a machine in the same domain.
0
rboyd56Commented:
You can also use BCP passing the -U and -P parameters. This will use SQL Server authenication which will avoid the error as well. The error only occrs when TCP/IP and NT authentication is used.

So you can also change you client machine to use named pipes as well to avoid the error.
0
TRACEYMARYAuthor Commented:
SQL 2005

Setspn -L <SQL Server machine name>
Setspn -L <ql server service account>

comes back with invalid command

i put in the name of computer on first

Used bcp command with username and password
(i know the bcp is supported in 2005 and the sqlcmd replaces so just using the bcp that i know)

SQLState = 08001, NativeError = 17
Error = [Microsoft][ODBC SQL Server Driver][Shared Memory]SQL Server does not exist or access denied.
SQLState = 01000, NativeError = 2
Warning = [Microsoft][ODBC SQL Server Driver][Shared Memory]ConnectionOpen (Connect()).
NULL

All services are started with local system account
shared memory enabled
named pipes enabled
tcp ip enabled

client protocols all enabled 1 shared memory, 2 tcp/ip 3, named pipes, 4 via

0
rboyd56Commented:
What is your BCP command?

Did you download setspn and install it before you ran the command?

BTW: sqlcmd is a substitute for OSQL, not bcp.

Sounds like the server parameter you specified was not correct.


0
TRACEYMARYAuthor Commented:
in 2005 i have
Just create a new login with sa rights

declare @filename varchar(250)
declare @bcpcommand varchar(2000)
set @filename = 'C:\ET_CHRGL.txt'

SET @BCPCOMMAND = 'bcp "SELECT  * FROM TRACEY.DBO.TEST" queryout "'
set @bcpcommand = @bcpcommand  + @filename + '" -U BCPUser -P BCPUser -c -t "," -r "\n"'

exec master.dbo.xp_cmdshell @bcpcommand

usually i have -S ServerName

Get
SQLState = 08001, NativeError = 17
Error = [Microsoft][ODBC SQL Server Driver][Shared Memory]SQL Server does not exist or access denied.
SQLState = 01000, NativeError = 2
Warning = [Microsoft][ODBC SQL Server Driver][Shared Memory]ConnectionOpen (Connect()).
NULL
0
rboyd56Commented:
This BCP command does not have a server name:

SET @BCPCOMMAND = 'bcp "SELECT  * FROM TRACEY.DBO.TEST" queryout "'
set @bcpcommand = @bcpcommand  + @filename + '" -U BCPUser -P BCPUser -c -t "," -r "\

If you add the server name do you still get the error?

You can also creat a TCP?IP alias and see if that works. That would indicate a problem with the shared memory library.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TRACEYMARYAuthor Commented:
Still get the error with servername and then using U and p
Memory library error hmm...where can i fix this.

You been helping me out lately ha, never a dull moment at my place last friday was disk error then replication,...this is just an install of 2005 lol

Keeps me busy
0
rboyd56Commented:
Did you try creating a tcp/ip alias on the server?
0
TRACEYMARYAuthor Commented:
I try as soon as my pc responds..it crashed yesterday.
Not a good week.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.