Click here to Skip to main content
15,900,973 members
Home / Discussions / Database
   

Database

 
Questionnvarchar to datetime conversion plz!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
Learner52017-May-09 4:33
Learner52017-May-09 4:33 
AnswerRe: nvarchar to datetime conversion plz!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
Manas Bhardwaj17-May-09 7:18
professionalManas Bhardwaj17-May-09 7:18 
AnswerRe: nvarchar to datetime conversion plz!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
Blue_Boy17-May-09 10:49
Blue_Boy17-May-09 10:49 
AnswerRe: nvarchar to datetime conversion plz!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
Mycroft Holmes17-May-09 12:59
professionalMycroft Holmes17-May-09 12:59 
GeneralRe: nvarchar to datetime conversion plz!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
Learner52017-May-09 21:24
Learner52017-May-09 21:24 
GeneralRe: nvarchar to datetime conversion plz!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
Mycroft Holmes17-May-09 21:40
professionalMycroft Holmes17-May-09 21:40 
QuestionQuestion on ConnectionString Pin
NetQuestions16-May-09 19:17
NetQuestions16-May-09 19:17 
AnswerRe: Question on ConnectionString Pin
Mycroft Holmes16-May-09 20:58
professionalMycroft Holmes16-May-09 20:58 
QuestionProblem - Stored Procedure not found Pin
NetQuestions16-May-09 9:18
NetQuestions16-May-09 9:18 
AnswerRe: Problem - Stored Procedure not found Pin
AlexeiXX316-May-09 9:59
AlexeiXX316-May-09 9:59 
GeneralRe: Problem - Stored Procedure not found [modified] Pin
NetQuestions16-May-09 19:16
NetQuestions16-May-09 19:16 
QuestionTry catch in MYSQL Stored procedures Pin
PeriyasamyRamachandran16-May-09 5:03
PeriyasamyRamachandran16-May-09 5:03 
AnswerRe: Try catch in MYSQL Stored procedures Pin
N a v a n e e t h16-May-09 6:49
N a v a n e e t h16-May-09 6:49 
GeneralRe: Try catch in MYSQL Stored procedures Pin
PeriyasamyRamachandran16-May-09 7:06
PeriyasamyRamachandran16-May-09 7:06 
Questionupdating database Pin
piticcotoc15-May-09 22:38
piticcotoc15-May-09 22:38 
AnswerRe: updating database Pin
AlexeiXX316-May-09 13:09
AlexeiXX316-May-09 13:09 
Questionhow do i acess ms sql database using pocket pc Pin
ChiSmile15-May-09 19:41
ChiSmile15-May-09 19:41 
AnswerRe: how do i acess ms sql database using pocket pc Pin
AlexeiXX315-May-09 21:40
AlexeiXX315-May-09 21:40 
GeneralRe: how do i acess ms sql database using pocket pc Pin
ChiSmile16-May-09 7:35
ChiSmile16-May-09 7:35 
GeneralRe: how do i acess ms sql database using pocket pc Pin
AlexeiXX316-May-09 9:40
AlexeiXX316-May-09 9:40 
AnswerRe: how do i acess ms sql database using pocket pc Pin
AlexeiXX316-May-09 9:44
AlexeiXX316-May-09 9:44 
GeneralRe: how do i acess ms sql database using pocket pc Pin
ChiSmile16-May-09 15:48
ChiSmile16-May-09 15:48 
Forgive my inexperience, Alexie. the Exception error looks something like this

system.Data.sqlClient.sqlException:sqlException
at
system.Data.sqlClient.sqlConnection.OnError()
at
system.Data.sqlClient.sqlInternalConnection.OnError()
at
system.Data.sqlClient.TdsParser.ThrowExceptionAndWarning()
at
system.Data.sqlClient.TdsParser.Connect()
at
system.Data.sqlClient.sqlInternalConnection.OpenAndLogin()


I now modified the parameters as u suggested:

Private Sub mnuLoadSqlServer_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuLoadSqlServer.Click
Dim cn As System.Data.SqlClient.SqlConnection
Dim cmd As System.Data.SqlClient.SqlCommand
Dim da As System.Data.SqlClient.SqlDataAdapter

Try
' Establish a connection to the SQL Server database.
cn = New System.Data.SqlClient.SqlConnection("Data Source=192.168.1.130,1212;Initial Catalog=medihealth;User ID=CHINEDUM\CHINEDU;Password= administrator;")
cmd = New System.Data.SqlClient.SqlCommand("SELECT * from LAB where Patient_ID=100054201", cn)
da = New System.Data.SqlClient.SqlDataAdapter(cmd)

' Is this table being added to the DataSet? If not destroy and
' recreate the DataSet.
If Not chkAddToDataSet.Checked Then
ds = Nothing
ds = New System.Data.DataSet
End If
' Add the new table.
Dim dt As DataTable = New System.Data.DataTable(txtTableName.Text)
da.Fill(dt)
ds.Tables.Add(dt)
' Display the DataSet.
DisplayData()

Catch ex As Exception
MessageBox.Show(ex.ToString())
Finally


End Try

End Sub
End Class

Any other thing i should try?
Thanks a lot!!!
RantRe: how do i acess ms sql database using pocket pc Pin
AlexeiXX316-May-09 16:39
AlexeiXX316-May-09 16:39 
GeneralRe: how do i acess ms sql database using pocket pc Pin
ChiSmile16-May-09 20:53
ChiSmile16-May-09 20:53 
GeneralRe: how do i acess ms sql database using pocket pc Pin
AlexeiXX316-May-09 21:14
AlexeiXX316-May-09 21:14 

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.