Click here to Skip to main content
15,905,967 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Looking to show off your skills ?? Pin
CPallini13-Mar-07 12:36
mveCPallini13-Mar-07 12:36 
AnswerRe: Looking to show off your skills ?? Pin
Dave Kreskowiak13-Mar-07 14:22
mveDave Kreskowiak13-Mar-07 14:22 
QuestionVB 6 to VB.NET question Do While Not EOF equivalent Pin
aro198113-Mar-07 11:09
aro198113-Mar-07 11:09 
AnswerRe: VB 6 to VB.NET question Do While Not EOF equivalent Pin
TwoFaced13-Mar-07 11:59
TwoFaced13-Mar-07 11:59 
QuestionNoughts and Crosses Pin
Anybloodyid13-Mar-07 9:30
Anybloodyid13-Mar-07 9:30 
AnswerRe: Noughts and Crosses Pin
Marcus J. Smith13-Mar-07 10:33
professionalMarcus J. Smith13-Mar-07 10:33 
GeneralRe: Noughts and Crosses Pin
Anybloodyid13-Mar-07 12:17
Anybloodyid13-Mar-07 12:17 
QuestionHow I can connect VB.net to SQL Server 2005 Express? Pin
ATC13-Mar-07 8:55
ATC13-Mar-07 8:55 
I am very new for VB.net (Visual Studio 2005) and also very new for SQL Server 2005 Express

I do have a Trial1.mdf install in Server Local c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\Trial1.mdf

I tried to connect/open/close as the following codes:
<br />
Imports System.Data.SqlClient<br />
<br />
Public Class Form1<br />
<br />
    Dim sqlConnection As New SqlConnection("server=localhost;uid=NULL;pwd=NULL;database= c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\Trial1.mdf")<br />
<br />
    sqlConnection.Open()<br />
    sqlConnection.Close()   <br />
End Class<br />


But it fail to run (even re-build no-error), can someone tell me what should I do to use my Trial1.mdf correctly?

Thanks for any help
AnswerRe: How I can connect VB.net to SQL Server 2005 Express? Pin
Harini N K13-Mar-07 19:54
Harini N K13-Mar-07 19:54 
GeneralRe: How I can connect VB.net to SQL Server 2005 Express? Pin
ATC14-Mar-07 9:14
ATC14-Mar-07 9:14 
QuestionScreenSaver's child process dies a-borning Pin
jim_taylor13-Mar-07 8:50
jim_taylor13-Mar-07 8:50 
AnswerRe: ScreenSaver's child process dies a-borning Pin
Marcus J. Smith13-Mar-07 9:05
professionalMarcus J. Smith13-Mar-07 9:05 
AnswerRe: ScreenSaver's child process dies a-borning Pin
jim_taylor13-Mar-07 12:16
jim_taylor13-Mar-07 12:16 
GeneralRe: ScreenSaver's child process dies a-borning Pin
Marcus J. Smith14-Mar-07 3:05
professionalMarcus J. Smith14-Mar-07 3:05 
GeneralRe: ScreenSaver's child process dies a-borning Pin
jim_taylor14-Mar-07 4:02
jim_taylor14-Mar-07 4:02 
GeneralRe: ScreenSaver's child process dies a-borning Pin
Marcus J. Smith14-Mar-07 9:45
professionalMarcus J. Smith14-Mar-07 9:45 
Questionadding to access database Pin
peteyshrew13-Mar-07 6:54
peteyshrew13-Mar-07 6:54 
AnswerRe: adding to access database Pin
DaveRRR13-Mar-07 9:18
DaveRRR13-Mar-07 9:18 
QuestionHow can I call properties a run time created button? Pin
JUNEYT13-Mar-07 6:20
JUNEYT13-Mar-07 6:20 
AnswerRe: How can I call properties a run time created button? Pin
Guffa13-Mar-07 7:37
Guffa13-Mar-07 7:37 
AnswerRe: How can I call properties a run time created button? Pin
testy_proconsul13-Mar-07 7:40
testy_proconsul13-Mar-07 7:40 
GeneralRe: How can I call properties a run time created button? Pin
JUNEYT13-Mar-07 7:53
JUNEYT13-Mar-07 7:53 
AnswerRe: How can I call properties a run time created button? Pin
Guffa13-Mar-07 10:08
Guffa13-Mar-07 10:08 
GeneralRe: How can I call properties a run time created button? Pin
testy_proconsul13-Mar-07 13:00
testy_proconsul13-Mar-07 13:00 
QuestionPrinting a form's text fields Pin
Central_IT13-Mar-07 5:50
Central_IT13-Mar-07 5:50 

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.