Click here to Skip to main content
16,005,389 members
Home / Discussions / Database
   

Database

 
QuestionACCES 2003 > SQL 2005 EXPRESS Pin
ThePmanLives5-Apr-06 16:41
ThePmanLives5-Apr-06 16:41 
QuestionCreating form at runtime and uploading data from it to database Pin
Amit R5-Apr-06 16:32
Amit R5-Apr-06 16:32 
AnswerRe: Creating form at runtime and uploading data from it to database Pin
Colin Angus Mackay5-Apr-06 21:22
Colin Angus Mackay5-Apr-06 21:22 
AnswerRe: Creating form at runtime and uploading data from it to database Pin
sathish s5-Apr-06 22:09
sathish s5-Apr-06 22:09 
QuestionHow to audit a database? Pin
uglystone5-Apr-06 13:51
uglystone5-Apr-06 13:51 
AnswerRe: How to audit a database? Pin
Colin Angus Mackay5-Apr-06 21:15
Colin Angus Mackay5-Apr-06 21:15 
AnswerRe: How to audit a database? Pin
uglystone21-Apr-06 18:08
uglystone21-Apr-06 18:08 
QuestionDSN / SQL Connection String Pin
rahsi5-Apr-06 6:13
rahsi5-Apr-06 6:13 
Hi,
I am trying to connect SQL Server 2000 thru coding in VB.NET. Code is :-

Public objsqlcon As New SqlConnection
Public Function OpenConnection() As Boolean
Try
If objsqlcon.State = ConnectionState.Closed Then
objsqlcon = New SqlConnection("DATA SOURCE=A;Initial Catalog=Data1;USER ID=sa;PASSWORD=password;")
objsqlcon.Open()
End If
OpenConnection = True
Catch ex As Exception
Throw ex
End Try
End Function
where A means alias of Server, data1 is databasename.

Is it the right code, if yes, its not working and what can be the problem, If no, what is the right code.

Note :- This code is working at my office and not at my home. whats the difference in this case.

Thanks. Waiting for a prompt & right reply.


-- modified at 12:14 Wednesday 5th April, 2006
AnswerRe: DSN / SQL Connection String Pin
Colin Angus Mackay5-Apr-06 7:28
Colin Angus Mackay5-Apr-06 7:28 
GeneralRe: DSN / SQL Connection String Pin
rahsi6-Apr-06 8:30
rahsi6-Apr-06 8:30 
QuestionSQL/VB.Net Pin
MikeUPMC5-Apr-06 5:34
MikeUPMC5-Apr-06 5:34 
AnswerRe: SQL/VB.Net Pin
Colin Angus Mackay5-Apr-06 5:58
Colin Angus Mackay5-Apr-06 5:58 
GeneralRe: SQL/VB.Net Pin
MikeUPMC5-Apr-06 9:14
MikeUPMC5-Apr-06 9:14 
GeneralRe: SQL/VB.Net Pin
Colin Angus Mackay5-Apr-06 9:54
Colin Angus Mackay5-Apr-06 9:54 
QuestionUpdate 100 000 rows.... Pin
Pius__X5-Apr-06 4:53
Pius__X5-Apr-06 4:53 
AnswerRe: Update 100 000 rows.... Pin
Colin Angus Mackay5-Apr-06 5:29
Colin Angus Mackay5-Apr-06 5:29 
GeneralRe: Update 100 000 rows.... Pin
Pius__X5-Apr-06 11:09
Pius__X5-Apr-06 11:09 
GeneralRe: Update 100 000 rows.... Pin
Colin Angus Mackay5-Apr-06 11:15
Colin Angus Mackay5-Apr-06 11:15 
GeneralRe: Update 100 000 rows.... Pin
Colin Angus Mackay5-Apr-06 11:17
Colin Angus Mackay5-Apr-06 11:17 
GeneralRe: Update 100 000 rows.... Pin
Pius__X5-Apr-06 23:39
Pius__X5-Apr-06 23:39 
GeneralRe: Update 100 000 rows.... Pin
Colin Angus Mackay6-Apr-06 0:09
Colin Angus Mackay6-Apr-06 0:09 
QuestionExceptionally dumb SQL Server question Pin
BambooMoon5-Apr-06 4:52
BambooMoon5-Apr-06 4:52 
AnswerRe: Exceptionally dumb SQL Server question Pin
Colin Angus Mackay5-Apr-06 5:21
Colin Angus Mackay5-Apr-06 5:21 
QuestionRe: Exceptionally dumb SQL Server question Pin
BambooMoon5-Apr-06 8:24
BambooMoon5-Apr-06 8:24 
AnswerRe: Exceptionally dumb SQL Server question Pin
Colin Angus Mackay5-Apr-06 9:49
Colin Angus Mackay5-Apr-06 9:49 

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.