Click here to Skip to main content
16,013,082 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL Server Internal Commands Pin
Giorgi Dalakishvili18-May-07 7:33
mentorGiorgi Dalakishvili18-May-07 7:33 
GeneralRe: SQL Server Internal Commands Pin
Werries19-May-07 19:40
Werries19-May-07 19:40 
Questiondatabase connection through proxy server Pin
sridhar vattam18-May-07 2:33
sridhar vattam18-May-07 2:33 
AnswerRe: database connection through proxy server Pin
dhbaer18-May-07 7:14
dhbaer18-May-07 7:14 
QuestionDataGridView databound DataTable wont update? [modified] Pin
MrRhino18-May-07 1:43
MrRhino18-May-07 1:43 
AnswerRe: DataGridView databound DataTable wont update? Pin
MrRhino20-May-07 0:35
MrRhino20-May-07 0:35 
QuestionNull Reference Exception in Grid View? Pin
chand1017-May-07 23:54
chand1017-May-07 23:54 
AnswerRe: Null Reference Exception in Grid View? Pin
kubben18-May-07 2:27
kubben18-May-07 2:27 
If you step through the above code with the debugger, you will find one of the objects is null. I am guessing that it is the connection string. Normally when you access the connection string. If it exists in your config file under connectionStrings you just need to enter the name of the key so your code would be ConfigurationManager.ConnectionStrings["keynamehere"];
You are actually giving the full connectionstring name. So your code should be:
dsource.ConnectionString = "Provider=SQLOLEDB.1;User ID=saassword=sa;Initial Catalog=ESS;Data Source=ESS134";

By the way it is a really bad idea to have the sa password be sa.

Hope that helps.
Ben
QuestionThis Procedure Does not Add a new record in the Table Help Pin
Vimalsoft(Pty) Ltd17-May-07 23:46
professionalVimalsoft(Pty) Ltd17-May-07 23:46 
AnswerRe: This Procedure Does not Add a new record in the Table Help Pin
Pete O'Hanlon17-May-07 23:54
mvePete O'Hanlon17-May-07 23:54 
GeneralRe: This Procedure Does not Add a new record in the Table Help Pin
Vimalsoft(Pty) Ltd18-May-07 0:32
professionalVimalsoft(Pty) Ltd18-May-07 0:32 
GeneralRe: This Procedure Does not Add a new record in the Table Help Pin
Pete O'Hanlon18-May-07 1:13
mvePete O'Hanlon18-May-07 1:13 
GeneralRe: This Procedure Does not Add a new record in the Table Help Pin
Vimalsoft(Pty) Ltd18-May-07 1:28
professionalVimalsoft(Pty) Ltd18-May-07 1:28 
GeneralRe: This Procedure Does not Add a new record in the Table Help Pin
Pete O'Hanlon18-May-07 2:02
mvePete O'Hanlon18-May-07 2:02 
GeneralRe: This Procedure Does not Add a new record in the Table Help Pin
Vimalsoft(Pty) Ltd18-May-07 3:05
professionalVimalsoft(Pty) Ltd18-May-07 3:05 
QuestionWindows Authentication in SQL Server 2005 Pin
ragavan17-May-07 23:16
ragavan17-May-07 23:16 
AnswerRe: Windows Authentication in SQL Server 2005 Pin
Mike Dimmick18-May-07 4:28
Mike Dimmick18-May-07 4:28 
QuestionImport and Export Pin
.NET- India 17-May-07 22:34
.NET- India 17-May-07 22:34 
AnswerRe: Import and Export Pin
gauthee17-May-07 23:39
gauthee17-May-07 23:39 
QuestionSQL Analysis Pin
samerh17-May-07 20:54
samerh17-May-07 20:54 
AnswerRe: SQL Analysis Pin
Pete O'Hanlon17-May-07 23:59
mvePete O'Hanlon17-May-07 23:59 
QuestionConvert Access Database to SQL Database Pin
Werries17-May-07 20:35
Werries17-May-07 20:35 
QuestionSmart Host Pin
Rahul Babu17-May-07 20:27
Rahul Babu17-May-07 20:27 
Questionhow can i access a transaction object after con close Pin
koolprasad200317-May-07 19:57
professionalkoolprasad200317-May-07 19:57 
AnswerRe: how can i access a transaction object after con close Pin
gauthee17-May-07 20:09
gauthee17-May-07 20:09 

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.