Click here to Skip to main content
15,923,051 members
Home / Discussions / Database
   

Database

 
AnswerRe: recursive query and cte Pin
Blue_Boy24-Aug-08 9:50
Blue_Boy24-Aug-08 9:50 
QuestionTrying to find SSMS after install of SQL Server Pin
Member 391904923-Aug-08 16:58
Member 391904923-Aug-08 16:58 
AnswerRe: Trying to find SSMS after install of SQL Server Pin
Jerry Hammond23-Aug-08 17:29
Jerry Hammond23-Aug-08 17:29 
AnswerRe: Trying to find SSMS after install of SQL Server Pin
SimulationofSai24-Aug-08 20:30
SimulationofSai24-Aug-08 20:30 
QuestionPostgreSQL bootstrap installer VS2005 Pin
dybs23-Aug-08 10:17
dybs23-Aug-08 10:17 
QuestionException with Access Database on Windows Vista Pin
Eng Mohammed Osman23-Aug-08 6:22
Eng Mohammed Osman23-Aug-08 6:22 
AnswerRe: Exception with Access Database on Windows Vista Pin
Jerry Hammond23-Aug-08 7:40
Jerry Hammond23-Aug-08 7:40 
Questionsql count Pin
bapu288923-Aug-08 3:49
bapu288923-Aug-08 3:49 
hello

i am new in sql and i have create one small application with one table which has six columns

i want to check recores from sql database but it always shows nothing this is the code bellow in load event, all i want to do is if there is no data in sql database then it should shows "Empty Database" in Combo box
but it's not working

Private Sub LoadCboItems()

       dcIMS = GetDBConnection()
       cboDisp.Items.Clear()

       If Me.BindingContext(dsIMS, "IMS").Count = 0 Then   :confused:
           cboDisp.Text = "Empty Database"
           Exit Sub
       Else
           Dim MyReader As SqlDataReader = Nothing
           Try

               Dim MyData As New SqlCommand("SELECT * FROM IMS", dcIMS)
               MyReader = MyData.ExecuteReader
               Do While MyReader.Read
                   If rdoID.Checked Then

                       cboDisp.Items.Add(MyReader.Item("InkNumber").ToString)
                       cboDisp.SelectedIndex = 0

                   ElseIf rdoName.Checked Then

                       cboDisp.Items.Add(MyReader.Item("InkName").ToString)
                       cboDisp.SelectedIndex = 0

                   End If
               Loop
           Catch ex As Exception
               MsgBox(ex.Message)
           Finally
               MyReader.Close()
               dcIMS.Close()
               dcIMS.Dispose()
           End Try
       End If

   End Sub

AnswerRe: sql count Pin
Mycroft Holmes23-Aug-08 23:05
professionalMycroft Holmes23-Aug-08 23:05 
GeneralRe: sql count Pin
bapu288923-Aug-08 23:24
bapu288923-Aug-08 23:24 
GeneralRe: sql count Pin
Blue_Boy24-Aug-08 10:10
Blue_Boy24-Aug-08 10:10 
AnswerRe: sql count Pin
NeverHeardOfMe24-Aug-08 11:42
NeverHeardOfMe24-Aug-08 11:42 
AnswerRe: sql count Pin
bapu288924-Aug-08 21:57
bapu288924-Aug-08 21:57 
Questionneed help with SQL Pin
Sujay chakraborty22-Aug-08 21:46
Sujay chakraborty22-Aug-08 21:46 
AnswerRe: need help with SQL Pin
www.Developerof.NET22-Aug-08 22:17
www.Developerof.NET22-Aug-08 22:17 
QuestionRe: need help with SQL Pin
Sujay chakraborty23-Aug-08 21:19
Sujay chakraborty23-Aug-08 21:19 
AnswerRe: need help with SQL Pin
Paul Conrad23-Aug-08 7:29
professionalPaul Conrad23-Aug-08 7:29 
GeneralRe: need help with SQL Pin
Kanniah23-Aug-08 20:22
Kanniah23-Aug-08 20:22 
GeneralRe: need help with SQL Pin
Pete O'Hanlon24-Aug-08 11:11
mvePete O'Hanlon24-Aug-08 11:11 
QuestionSQL query to copy table from one database into another database Pin
ankswe22-Aug-08 19:24
ankswe22-Aug-08 19:24 
AnswerRe: SQL query to copy table from one database into another database Pin
Mycroft Holmes22-Aug-08 19:41
professionalMycroft Holmes22-Aug-08 19:41 
GeneralRe: SQL query to copy table from one database into another database Pin
Jerry Hammond23-Aug-08 7:37
Jerry Hammond23-Aug-08 7:37 
GeneralRe: SQL query to copy table from one database into another database Pin
Mycroft Holmes23-Aug-08 13:48
professionalMycroft Holmes23-Aug-08 13:48 
QuestionConnecting to custom database [modified] Pin
ASPnoob22-Aug-08 17:31
ASPnoob22-Aug-08 17:31 
AnswerRe: Connecting to custom database Pin
Mycroft Holmes22-Aug-08 19:47
professionalMycroft Holmes22-Aug-08 19:47 

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.