Showing posts with label local. Show all posts
Showing posts with label local. Show all posts

Sunday, February 12, 2012

command line local login to SQL failed

Pardon if this has been asked before. If so, please post the URL.
Could someone please tell me how to fix this login/pipe? Notice the 3rd
login is fine with "/E". It is a SQL2005 Enterprise on Win2003 Server Ent.
C:\Program Files\Microsoft SQL
Server\90\NotificationServices\9.0.242\Bin>osql /
SMIAMI /U junk
Password:
Login failed for user 'junk'. The user is not associated with a trusted SQL
Server connection.
C:\Program Files\Microsoft SQL Server\90\Tools\Binn> osql /SMIAMI /U junk
Password:
[SQL Native Client]Shared Memory Provider: No process is on the other en
d of
the pipe.
[SQL Native Client]Communication link failure
C:\Program Files\Microsoft SQL Server\90\Tools\Binn>osql /SMIAMI /E
1> use adventureworks
2> go
1> select count (*) from person.address
2> go
19614
(1 row affected)It appears that SQL Server is set for Windows Authentication and that you
are attempting to login using SQL Authentication (Username/Password).
If you must use SQL Authentication, you need to change the authentication
mode of the server.
Arnie Rowland, Ph.D.
Westwood Consulting, Inc
Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous
"light_wt" <lightwt@.discussions.microsoft.com> wrote in message
news:2A01AFB3-3447-46CA-B69B-BA527E620F3D@.microsoft.com...
> Pardon if this has been asked before. If so, please post the URL.
> Could someone please tell me how to fix this login/pipe? Notice the 3rd
> login is fine with "/E". It is a SQL2005 Enterprise on Win2003 Server
> Ent.
> C:\Program Files\Microsoft SQL
> Server\90\NotificationServices\9.0.242\Bin>osql /
> SMIAMI /U junk
> Password:
> Login failed for user 'junk'. The user is not associated with a trusted
> SQL
> Server connection.
> C:\Program Files\Microsoft SQL Server\90\Tools\Binn> osql /SMIAMI /U junk
> Password:
> [SQL Native Client]Shared Memory Provider: No process is on the other
end
> of
> the pipe.
> [SQL Native Client]Communication link failure
> C:\Program Files\Microsoft SQL Server\90\Tools\Binn>osql /SMIAMI /E
> 1> use adventureworks
> 2> go
> 1> select count (*) from person.address
> 2> go
> --
> 19614
> (1 row affected)|||Hi,
Go to SQL Server program groups, select SQL Server management studio.After
connecting to SQL Server instance do;
1. Right click above server
2. Select properties
3. Select Security option and click the option button, SQL Server and
Windows authentication
4.click ok and restart SQL Server
After this you wil be able to connect using SQL Authentication.
Thanks
Hari
SQL Server MVP
"light_wt" <lightwt@.discussions.microsoft.com> wrote in message
news:2A01AFB3-3447-46CA-B69B-BA527E620F3D@.microsoft.com...
> Pardon if this has been asked before. If so, please post the URL.
> Could someone please tell me how to fix this login/pipe? Notice the 3rd
> login is fine with "/E". It is a SQL2005 Enterprise on Win2003 Server
> Ent.
> C:\Program Files\Microsoft SQL
> Server\90\NotificationServices\9.0.242\Bin>osql /
> SMIAMI /U junk
> Password:
> Login failed for user 'junk'. The user is not associated with a trusted
> SQL
> Server connection.
> C:\Program Files\Microsoft SQL Server\90\Tools\Binn> osql /SMIAMI /U junk
> Password:
> [SQL Native Client]Shared Memory Provider: No process is on the other
end
> of
> the pipe.
> [SQL Native Client]Communication link failure
> C:\Program Files\Microsoft SQL Server\90\Tools\Binn>osql /SMIAMI /E
> 1> use adventureworks
> 2> go
> 1> select count (*) from person.address
> 2> go
> --
> 19614
> (1 row affected)

Command Line Install

I am trying to create an quiet install for SQL Server Express. The install is being run under a local administrators account. However, when a user, who is only in the local users group, accesses the application using ClickOnce deplolyment, it says SQL Server Express Edition is not installed.

-Dan

You may find these resources helpful:

SQL Server 2005 UnAttended Installations
http://msdn2.microsoft.com/en-us/library/ms144259.aspx
http://www.devx.com/dbzone/Article/31648

Friday, February 10, 2012

Comma Delimited Text File

Hi I'm pretty new to using Microsoft Visual C# .NET and I want to upload a comma delimited text file from my local machine into a table in an sql server database through a web app. How would I go about programming this and what controls do I need? Any help would be much appreciated. Thanks in advance.you can upload a file to the server...there are tons of articles that describe how you can do this.all you need to do is goooogle..now do you want to save the text file as it on the server and maintain a link in a table or do you want to parse the textfile and insert the records into a table ?|||I want to be able to parse the comma delimited textfile and insert the records into a table. Thanks.|||check out my blog i have an article ( under SQL Server 2000 ) tht has some sample code too..

hth|||

Hi,

Could you be able to point me to where is your blog link or the link to where the relate article for this topic. Really appreciate and thanks in advance.