Click here to Skip to main content
15,892,746 members
Home / Discussions / Database
   

Database

 
GeneralRe: use of datetime datatype Pin
pmarfleet26-Feb-08 9:20
pmarfleet26-Feb-08 9:20 
GeneralRe: use of datetime datatype Pin
vinodh.s26-Feb-08 9:25
vinodh.s26-Feb-08 9:25 
GeneralRe: use of datetime datatype Pin
pmarfleet26-Feb-08 9:43
pmarfleet26-Feb-08 9:43 
GeneralRe: use of datetime datatype Pin
vinodh.s26-Feb-08 9:48
vinodh.s26-Feb-08 9:48 
GeneralThey will not let me hit the database until the last minute. Help !!! [modified] Pin
crystal915426-Feb-08 5:52
crystal915426-Feb-08 5:52 
GeneralRe: They will not let me hit the database until the last minute. Help !!! Pin
SimulationofSai26-Feb-08 7:24
SimulationofSai26-Feb-08 7:24 
GeneralRe: They will not let me hit the database until the last minute. Help !!! Pin
crystal915426-Feb-08 8:13
crystal915426-Feb-08 8:13 
GeneralHelp! ADO . NET connecting to SQL Server 2005 Pin
D_Ana26-Feb-08 5:43
D_Ana26-Feb-08 5:43 
New to ADO .NET (& C#), please help..

I have multiple questions on connecting to SQLServer 2005. I'm doing the following in my code:
SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder();

builder["Server"] = cmboBoxServerName.Text;
builder["Data Source"] = cmboBoxServerName.Text;
builder["Initial Catalog"] = cmboBoxDBName.Text;
builder["integrated Security"] = true;
builder["Trusted_Connection"] = true;

strConnectStr = builder.ConnectionString;

IDbConnection connection = New SqlConnection();
connection.ConnectionString = strConnectStr;
connection.Open();

This is working fine if I have SQL Native Client installed on my machine.
When I deploy this on a machine witout SQLNativeClient I get the error:
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'my domain\ my username'.

My questions:
1. Is 'SQL Native Client' required to connect (through my C# App using ADO.NET) to a remote SQL Server ?
2. When is SQL Native client required and when is not? What is the purpose of having a SQL Client for ADO.NET Apps?
3. What is the difference between builder["Server"] and builder["Data Source"]?
4. What is the difference between builder["integrated Security"] and builder["Trusted_Connection"]?
5. What is the minimum number of SQL Client licenses per Server?
6. What is SQL Express and can I use it with ADO .NET? Can I use it as an alternative if don't have enough licenses? Again, should I install it on every machine as well even if I ought to connect to a centralized remote database?

Looks like I have multiple issues and I'm getting confused with my limited knowledge.. I just want to clear out one by one..

Please direct me to any tutorial that handles case by case set up scenarios..
from local server to remote server to cross platform..

Thanks a lot!
-ap
GeneralRe: Help! ADO . NET connecting to SQL Server 2005 Pin
Xmen Real 26-Feb-08 6:20
professional Xmen Real 26-Feb-08 6:20 
GeneralRe: Help! ADO . NET connecting to SQL Server 2005 Pin
D_Ana26-Feb-08 9:35
D_Ana26-Feb-08 9:35 
GeneralRe: Help! ADO . NET connecting to SQL Server 2005 Pin
SimulationofSai26-Feb-08 7:46
SimulationofSai26-Feb-08 7:46 
GeneralRe: Help! ADO . NET connecting to SQL Server 2005 Pin
D_Ana26-Feb-08 9:44
D_Ana26-Feb-08 9:44 
GeneralFrom keyword not found where expected Pin
Waqas Hasan26-Feb-08 1:06
Waqas Hasan26-Feb-08 1:06 
GeneralRe: From keyword not found where expected Pin
Kschuler26-Feb-08 7:42
Kschuler26-Feb-08 7:42 
Questionhow to count number of records in table Pin
chithra.r25-Feb-08 22:31
chithra.r25-Feb-08 22:31 
AnswerRe: how to count number of records in table Pin
Joe25-Feb-08 22:53
Joe25-Feb-08 22:53 
GeneralRe: how to count number of records in table Pin
Ashfield25-Feb-08 23:54
Ashfield25-Feb-08 23:54 
AnswerRe: how to count number of records in table Pin
Paddy Boyd26-Feb-08 1:05
Paddy Boyd26-Feb-08 1:05 
AnswerRe: how to count number of records in table Pin
GuyThiebaut26-Feb-08 4:37
professionalGuyThiebaut26-Feb-08 4:37 
AnswerRe: how to count number of records in table Pin
Chris Meech26-Feb-08 9:16
Chris Meech26-Feb-08 9:16 
QuestionHow to Calculate Percentile. Pin
Khawar Abbas125-Feb-08 20:23
Khawar Abbas125-Feb-08 20:23 
AnswerRe: How to Calculate Percentile. Pin
Joe25-Feb-08 22:55
Joe25-Feb-08 22:55 
AnswerRe: How to Calculate Percentile. Pin
Paul Conrad1-Mar-08 12:34
professionalPaul Conrad1-Mar-08 12:34 
GeneralDelete Record from Access DB Pin
tr_thorn25-Feb-08 19:48
tr_thorn25-Feb-08 19:48 
GeneralRe: Delete Record from Access DB Pin
Hesham Amin25-Feb-08 21:18
Hesham Amin25-Feb-08 21:18 

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.