Click here to Skip to main content
15,916,030 members
Home / Discussions / Database
   

Database

 
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 
Pls help me,
i designed a database with ms sql and intend to access it using a mobile device.but at the moment am using the emulator in Visual studio 2008 professional to test the app but it cant access the database, which is running on my system.Am using vb.net for the coding given below, but sqlException keeps on coming out:

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=CHINEDUM\SQLEXPRESS;Initial Catalog=medihealth;Integrated Security=SSPI;User ID=CHINEDUM\CHINEDU;Password= ;")
cmd = New System.Data.SqlClient.SqlCommand(txtSelect.Text, 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.Message)
Finally


End Try

End Sub

Sub DisplayData()
Dim dt As System.Data.DataTable

' Clear the ComboBox control.
cmbTables.Items.Clear()

' Load the ComboBox with a list of available tables.
For Each dt In ds.Tables
cmbTables.Items.Add(dt.TableName.ToString)
Next

' Finally, trigger the displaying of the first table.
cmbTables.SelectedIndex = 0

End Sub

Note: I've tried to use my ip address as the data source, but cant still get through
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 
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 
GeneralRe: how do i acess ms sql database using pocket pc Pin
ChiSmile17-May-09 7:23
ChiSmile17-May-09 7:23 
GeneralRe: how do i acess ms sql database using pocket pc Pin
ChiSmile18-May-09 3:01
ChiSmile18-May-09 3:01 
GeneralRe: how do i acess ms sql database using pocket pc Pin
AlexeiXX318-May-09 5:56
AlexeiXX318-May-09 5:56 
GeneralRe: how do i acess ms sql database using pocket pc Pin
ChiSmile18-May-09 13:45
ChiSmile18-May-09 13:45 
GeneralRe: how do i acess ms sql database using pocket pc Pin
AlexeiXX318-May-09 16:41
AlexeiXX318-May-09 16:41 
GeneralRe: how do i acess ms sql database using pocket pc Pin
ChiSmile22-May-09 16:23
ChiSmile22-May-09 16:23 
GeneralRe: how do i acess ms sql database using pocket pc Pin
AlexeiXX322-May-09 17:40
AlexeiXX322-May-09 17:40 
GeneralRe: how do i acess ms sql database using pocket pc Pin
ChiSmile24-May-09 12:23
ChiSmile24-May-09 12:23 
AnswerRe: how do i acess ms sql database using pocket pc Pin
Luc Pattyn16-May-09 10:02
sitebuilderLuc Pattyn16-May-09 10:02 

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.