MC++ && MS SQL
- From: "hangaround" <hangaround@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 12 Jun 2005 03:15:01 -0700
I have read some codes like following:
///////////////////////////////////////////
SqlConnection* conn =
new SqlConnection(S"Server=localhost;"
S"Database=Northwind;"
S"Integrated Security=true;");
adapter = new SqlDataAdapter(S"SELECT * FROM Employees", conn);
eventHandler = new SqlEventHandler(adapter, this);
commandBuilder = new SqlCommandBuilder(adapter);
conn->Open();
///////////////////////////////////////////
I wondered can we link to the database without username and password?
.
- Follow-Ups:
- Re: MC++ && MS SQL
- From: Tim
- Re: MC++ && MS SQL
- Prev by Date: Re: Whats the Deal with Visual C++.Net?
- Next by Date: Re: Creating forms, toolbars etc using Visual C++ 6.0
- Previous by thread: Creating forms, toolbars etc using Visual C++ 6.0
- Next by thread: Re: MC++ && MS SQL
- Index(es):
Relevant Pages
|