473,405 Members | 2,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

SQL Login connection bypass - Problem

1
Hello everyone!

I have a problem, I am using SQL 2005 and Visual C# 2005, the problem is everytime i try to connect to the SQL server I can always connect to it even without specifying the UID and PWD in my connection string.... Anybody know why this happens? Thanks!


sample code:
SqlConnection forTest = new SqlConnection("server=localhost;integrated security=true;database=GKDB_Prototype");

even without UID and PWD it can still connect to server...
Apr 21 '07 #1
1 967
Frinavale
9,735 Expert Mod 8TB
Hello everyone!

I have a problem, I am using SQL 2005 and Visual C# 2005, the problem is everytime i try to connect to the SQL server I can always connect to it even without specifying the UID and PWD in my connection string.... Anybody know why this happens? Thanks!


sample code:
SqlConnection forTest = new SqlConnection("server=localhost;integrated security=true;database=GKDB_Prototype");

even without UID and PWD it can still connect to server...
Since you have "integrated security=true" you are logging into your SQL Server using the user credentials of the Windows user currently logged in.


-Frinny
Apr 21 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: bryce21 | last post by:
I'm trying to write a script that logs into Yahoo Fantasy Football. Once logged in, I'll be able to grab stats and various other pieces of info about our league. The problem I'm having deals with...
1
by: Wayne Smith | last post by:
Applies to: Microsoft FrontPage 2000, Microsoft Access 2000, IIS 5.0 Operating System: Microsoft Windows 2000 Professional I am trying to protect a portion of a web site by allowing users to...
3
by: | last post by:
My questions concerns building a login system based on checking for the existence of the user's email address only.... 1. Is it ok for me to use IP address to allow user to bypass all login and...
1
by: Mark | last post by:
I know that DB2 LUW version 8 has "connection pooling" that provides a connection concentrator (limits the number of simultaneous connections that can occur). But does it really provide connection...
4
by: SJ | last post by:
I have a mobile web application running on a server at work. There is a strange thing happening though: 1) I can access and login to my mobile web app from any internet browser. (good thing). 2)...
3
by: Jennifer.Berube | last post by:
okay...so I got this login script and I edited it all and it seems to run fine...IE it listens to the script as far as permissions go when I place a restriction on a page and when you login it...
6
by: santosh123 | last post by:
i need to bypass the yahoo login page using asp.net and C#. i want to send the login credential through my program and the output should be the inbox of the yahoo mail. plz.. help...
2
by: adam.waterfield | last post by:
Maybe someone could help me a little here. On a project I am working on, we have some LDAP authentication to Active Directory which allows users to login to our application - this is fine. When...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.