Login Failed For User PCname/Guest
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 sqluserid
for a valid SQL server logon and XXX
for the corresponding password.
Related videos on Youtube
![Raghu Mudem](https://i.stack.imgur.com/8WOrx.jpg?s=256&g=1)
Raghu Mudem
Updated on September 17, 2022Comments
-
Raghu Mudem almost 2 years
Hi 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 over 14 yearsit's telling you to input your username / password.
-
Andy Res almost 12 yearsPost a screenshot with your actual result, as I don't get it from the image drawn.
-
-
Nate Lampton over 14 yearsI tried both of them but still couldn't connect. How could be the connection string to solve this problem ?
-
Raghu Mudem almost 12 yearsYour 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 almost 12 yearsMaybe using hardcoded values if your custom view is static or call measure on the custom view for the size to be ok.
-
Raghu Mudem almost 12 yearsthis is adding the view at left corner
-
Raghu Mudem almost 12 yearsStarting point of added view at my x,y point and it is adding view same as 1st case