Click here to Skip to main content
15,920,217 members
Home / Discussions / Database
   

Database

 
GeneralRe: Adapter Update function not working for me. Pin
Michael A. Barnhart8-Feb-04 9:17
Michael A. Barnhart8-Feb-04 9:17 
GeneralRe: Adapter Update function not working for me. Pin
Gigiwig13-Feb-04 23:52
Gigiwig13-Feb-04 23:52 
GeneralRe: Adapter Update function not working for me. Pin
Gigiwig14-Feb-04 0:02
Gigiwig14-Feb-04 0:02 
GeneralA quick question on table variables Pin
PrashantJ6-Feb-04 0:11
PrashantJ6-Feb-04 0:11 
GeneralRe: A quick question on table variables Pin
Mike Dimmick6-Feb-04 5:08
Mike Dimmick6-Feb-04 5:08 
GeneralProblem with VB6 and SQL Server 2000 Pin
gamerPotatoe5-Feb-04 22:40
gamerPotatoe5-Feb-04 22:40 
GeneralRe: Problem with VB6 and SQL Server 2000 Pin
Mazdak5-Feb-04 23:04
Mazdak5-Feb-04 23:04 
GeneralRe: Problem with VB6 and SQL Server 2000 Pin
Mike Dimmick5-Feb-04 23:06
Mike Dimmick5-Feb-04 23:06 
I think your server is configured in Windows Authentication mode. In this mode, SQL Server uses your Windows user account to work out who you are, ignoring any supplied user name and password.

I would recommend staying in this mode, and telling ADO to connect in this mode. To do this, change your connection string to
"Provider=SQLOLEDB.1;Data Source=(local);Initial Catalog=FC_AIRLINES;Integrated Security=SSPI"
and eliminate the username and password parameters to dbConnection.Open. SQL Server will need a login configured for every user that will run your program, or for a Windows group that contains all your users. Add logins using Enterprise Manager by expanding the server in the tree, then going to server > Security > Logins. Right-click a blank area and choose New Login. See Help for filling in this dialog.

If you want to connect by supplying a user name and password, rather than using Windows authentication, consider using SQL Server Authentication. You must configure your server for Mixed Mode authentication, which permits both kinds of authentication. To do this, go to Enterprise Manager, right-click your server and choose Properties. On the Security tab, select SQL Server and Windows under Authentication. Click OK to apply the change; you will need to restart the server for it to take effect.

SQL Server authentication is generally considered less secure than Windows authentication, and you should protect your connection string. You should (almost) never connect to your database as sa from an application. Set up a less privileged account (by adding a login, see above).
GeneralQuery Pin
girl_lash5-Feb-04 15:13
girl_lash5-Feb-04 15:13 
GeneralRe: Query Pin
Steve S10-Feb-04 6:21
Steve S10-Feb-04 6:21 
Generalsimple INSERT question Pin
hkl5-Feb-04 9:12
hkl5-Feb-04 9:12 
GeneralRe: simple INSERT question Pin
Edbert P5-Feb-04 19:07
Edbert P5-Feb-04 19:07 
GeneralConfigure SMTP Pin
DaKhucBuon4-Feb-04 23:08
DaKhucBuon4-Feb-04 23:08 
GeneralRe: Configure SMTP Pin
Vasudevan Deepak Kumar5-Feb-04 0:37
Vasudevan Deepak Kumar5-Feb-04 0:37 
GeneralRe: Configure SMTP Pin
DaKhucBuon5-Feb-04 14:40
DaKhucBuon5-Feb-04 14:40 
GeneralRe: Configure SMTP Pin
Vasudevan Deepak Kumar6-Feb-04 0:53
Vasudevan Deepak Kumar6-Feb-04 0:53 
GeneralAccess/ODBC: Item count fails Pin
mexicanchili4-Feb-04 21:51
mexicanchili4-Feb-04 21:51 
GeneralRe: Access/ODBC: Item count fails Pin
mexicanchili5-Feb-04 1:43
mexicanchili5-Feb-04 1:43 
Generaltrouble with IDataParameterCollection and ArrayList Pin
Nik Vogiatzis4-Feb-04 9:52
Nik Vogiatzis4-Feb-04 9:52 
GeneralRe: trouble with IDataParameterCollection and ArrayList Pin
Mike Dimmick5-Feb-04 0:43
Mike Dimmick5-Feb-04 0:43 
GeneralADO.NET Query Timeout Pin
afronaut4-Feb-04 6:28
afronaut4-Feb-04 6:28 
GeneralRe: ADO.NET Query Timeout Pin
Michael Potter4-Feb-04 10:16
Michael Potter4-Feb-04 10:16 
GeneralUsing TOP operator within a WHERE clause Pin
OBRon3-Feb-04 10:33
OBRon3-Feb-04 10:33 
GeneralRe: Using TOP operator within a WHERE clause Pin
David Llamas3-Feb-04 10:39
David Llamas3-Feb-04 10:39 
GeneralRe: Using TOP operator within a WHERE clause Pin
OBRon3-Feb-04 10:45
OBRon3-Feb-04 10:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.