473,394 Members | 1,751 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,394 software developers and data experts.

Delpoyment Issue

I made a small windows C# application that has dB functionality. The dB
I'm using is SQL 2000. It worked very fine. The thing I need is to
enable the user to enter the sql server's username and password(many
users with different priviledges and functionality) at runtime b4
proceeding with the application execution using a configuration file or
using a simple form... Any Ideas? If anybodty has links or sample
please forward it to me.

Feb 6 '06 #1
4 1097
Mr Bean,

Why not just open up a login dialog, where they enter their username and
password? Then, you can attempt to call a stored procedure on the database.
Make the stored procedure available to everyone in the app. This way, if
the connection string is wrong (username and password), then the call to the
stored procedure would fail, and you know the login is invalid.

I would recommend using windows logins instead though (you can do it
against the local machine, or AD, I believe, if you dont want to add those
users to the domain), since it is more secure (no username and password in
the connection string).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mr. Bean" <mk*****@gmail.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
I made a small windows C# application that has dB functionality. The dB
I'm using is SQL 2000. It worked very fine. The thing I need is to
enable the user to enter the sql server's username and password(many
users with different priviledges and functionality) at runtime b4
proceeding with the application execution using a configuration file or
using a simple form... Any Ideas? If anybodty has links or sample
please forward it to me.

Feb 6 '06 #2
Actually windows authentication totally slipped of my mind. I have all
the users in AD. However, when i setup a connection using Windows
authentication mode, the workstation id (name of pc) is appended to the
connection string. What i want is to enable any use to simply run the
appp without doing any code modification and compilation, should I
provide a form to enter the workstation id or could it be automated?..

Feb 6 '06 #3
Mr. Bean,

You don't have to add the workstation id to the connection string AFAIK.
Just leave it out.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mr. Bean" <mk*****@gmail.com> wrote in message
news:11*********************@g47g2000cwa.googlegro ups.com...
Actually windows authentication totally slipped of my mind. I have all
the users in AD. However, when i setup a connection using Windows
authentication mode, the workstation id (name of pc) is appended to the
connection string. What i want is to enable any use to simply run the
appp without doing any code modification and compilation, should I
provide a form to enter the workstation id or could it be automated?..

Feb 6 '06 #4
Solved that issue.. Thanks for help.. I used dynamic
properties(app.config) and it worked fine..

Feb 7 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Paul Mateer | last post by:
Hi, I have been running some queries against a table in a my database and have noted an odd (at least it seems odd to me) performance issue. The table has approximately 5 million rows and...
7
by: George Hester | last post by:
Please take a look at this google artcle: http://groups.google.com/groups?hl=en&lr=&frame=right&th=55d6f4b50f5f9382&seekm=411f370d%241%40olaf.komtel.net#link9 The op was having trouble with...
2
by: Anthony Cuttitta Jr. | last post by:
We have an application that outputs several different graphs from data downloaded from our AS400. The application has worked without (this) issue for several months now, but just recently, the...
0
by: Kevin Spencer | last post by:
Hi all, I am working on a service that uploads METAR weather information to the National Weather Service FTP site. The service I'm authoring is hosted on a Windows 200 server, and the NWS FTP...
2
by: Ben Rush | last post by:
Hello World, Okay, I have spent the day browsing the newsgroups and reading up on article after article concerning ViewState corruption and so forth, and I have a couple questions. We...
5
by: Robert | last post by:
I have a series of web applications (configured as separate applications) on a server. There is a main application at the root and then several virtual directories that are independant...
0
by: Charles Leonard | last post by:
I am having yet another issue with Windows Server 2003. This time, the web service (a file import web service) appears to run except for one odd message: "ActiveX component can't create object". ...
4
by: Paul | last post by:
Hi, I've been struggling with this today, I'm developing a DotNet2.0 website in C# that needs to call a long running data query. Obviously this is a good candidate for an Asynchronous call, so...
13
by: SAL | last post by:
Hello, I'm trying to include a popup in the ItemTemplate of a gridview row. The ItemTemplate for the field contains a textbox and when the user clicks in the textbox I want a popup panel to show...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...

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.