Login Failed For User PCname/Guest

1,239

Solution 1

It seems you are using Windows Authentication (Trusted) to connect to the remote database. In this case the process running the application's credentials are used to authenticate with. Normally a domain setup makes the most sense for this type of authentication scheme.

In your case you authentication with Guest user. You can add the Guest user as an allowed user login and user on the database.

Windows authentication has a number of advantages. If that is not going to work for you then use SQL authentication (Mixed Mode) and supply a username and password to connect with,

Solution 2

As Philip points out you are probably using Windows Authentication. Do you have anything in your database connection string that says Integrated Security=true or Integrated Security=SSPI? In that case, remove it and put in User ID=sqluserid;Password=XXX where you replace sqluseridfor a valid SQL server logon and XXXfor the corresponding password.

Share:
1,239

Related videos on Youtube

Raghu Mudem
Author by

Raghu Mudem

Updated on September 17, 2022

Comments

  • Raghu Mudem
    Raghu Mudem almost 2 years

    enter image description hereHi am developing android application with graph view. i got an open source graph application to show my values with graph lines. Here i am face problem while adding view. i am not able to add my custom view properly with relative layout. Here i attached my custom view alignment .

    In that image point 1. is my result while trying to add mt custom view. But i need to add that as shown in 2. part. my custom view is like shown in 3 .part I am getting that line starting x,y and ending x,y values. I tried with that values but i got result as 2 part. Please provide me any suggestion Or let me know is there any alignments required.

    My code is like

    View View v1=infalter.inflate(R.layout.bullet, null);
    RelativeLayout.LayoutParams rl=new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
    rl.setMargins(myX,myY, 0, 0);
    mRelative.addView(v1,rl);
    
    • futureelite7
      futureelite7 over 14 years
      it's telling you to input your username / password.
    • Andy Res
      Andy Res almost 12 years
      Post a screenshot with your actual result, as I don't get it from the image drawn.
  • Nate Lampton
    Nate Lampton over 14 years
    I tried both of them but still couldn't connect. How could be the connection string to solve this problem ?
  • Raghu Mudem
    Raghu Mudem almost 12 years
    Your assumption is correct but i am not able to get viewHeight,viewWeight before adding to my layout. It is returning 0 values. Any idea
  • Marcio Covre
    Marcio Covre almost 12 years
    Maybe using hardcoded values if your custom view is static or call measure on the custom view for the size to be ok.
  • Raghu Mudem
    Raghu Mudem almost 12 years
    this is adding the view at left corner
  • Raghu Mudem
    Raghu Mudem almost 12 years
    Starting point of added view at my x,y point and it is adding view same as 1st case