Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using cmd and Named Pipes

Status
Not open for further replies.

bebbo1986

Programmer
Feb 12, 2008
43
DE
Hallo,
I need a method to access SQL Server (Developer Edition) via cmd and Named Pipes.
Is it possible do connect to the Server via cmd, send an SQL command and catch the result to go on working with it.

Thanks for any help,
Martin
 
Thank you very much, you really helped me. But there are already the next problems.
I created a new alias with the name: VAIONamed and Parameters are \\BEBBO-VAIO\pipe\sql\query
I tried:
sqlcmd -S np:\\BEBBO-VAIO\pipe\sql\query
and
sqlcmd -S np:VAIONamed
both led to errors like: Could not open a connection to SQL Server [53]
I look for this error in the internet and found that then probably the server is not accessible and I should test that with ping.
So I tried: ping BEBBO-VAIO (BEBBO-VAIO is the server name)
and the result was:
Ping-Statistik for fe80:.....:
Packages: Sent = 4, Received = 0, Lost = 4

What can I do? Thanks for your help.


 
I solved this problem. I had to change the properties of the server.
I had to set "Advanced > Filestream Access Level" to Full access enabled.
Now I have to check out how to work with the results. I think there will be new problems. We will see.
 
Glad you got it sorted, good luck.

"I'm living so far beyond my income that we may almost be said to be living apart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top