Click here to Skip to main content
15,899,475 members
Home / Discussions / Database
   

Database

 
GeneralRe: Import Data From Other Database and Eliminate Duplicates Pin
Wendelius5-Jan-09 10:58
mentorWendelius5-Jan-09 10:58 
GeneralRe: Import Data From Other Database and Eliminate Duplicates Pin
polishprogrammer7-Jan-09 9:47
polishprogrammer7-Jan-09 9:47 
GeneralRe: Import Data From Other Database and Eliminate Duplicates Pin
Wendelius7-Jan-09 10:00
mentorWendelius7-Jan-09 10:00 
GeneralRe: Import Data From Other Database and Eliminate Duplicates Pin
polishprogrammer8-Jan-09 10:56
polishprogrammer8-Jan-09 10:56 
GeneralRe: Import Data From Other Database and Eliminate Duplicates Pin
Wendelius8-Jan-09 11:06
mentorWendelius8-Jan-09 11:06 
QuestionSQL Server- Upload CSV file via Bulk Insert with double Quotation Issue? Pin
Tarini Singh5-Jan-09 4:21
Tarini Singh5-Jan-09 4:21 
AnswerRe: SQL Server- Upload CSV file via Bulk Insert with double Quotation Issue? Pin
Wendelius5-Jan-09 9:18
mentorWendelius5-Jan-09 9:18 
QuestionProblem with large database fetching Pin
Member 40015965-Jan-09 2:40
Member 40015965-Jan-09 2:40 
hi everyone

i have create a web page where i place two DropDownList in First i bound Country List and in second one i am bounding places list according to selected country my problem is that when place list have less items it works fine but when list goes large Ex more than 5000 or more it take so much time some times it it show time out error (Sql Server). i also try with Ajax tool kit with Cascading Dropdownlist extender with web service method but problem not solve. here is my code



// for country selection

Public Shared Function getContry() As DataTable
Dim Ds As DataSet
Dim contry_list As String
contry_list = "SELECT Country_List.CountryNo,Country_List.CountryName From Country_List"
Ds = SqlHelper.ExecuteDataset(connection, CommandType.Text, contry_list) ' "Get_Country_List")

Return Ds.Tables(0)
End Function

/// for Place List

Public Shared Function getplace(ByVal CountryNo As Integer) As DataTable
Dim Ds As DataSet
Dim getplacelist As String
getplacelist = "SELECT Place_List.PlaceNo,Place_List.PlaceName From Place_List " & " WHERE Place_List.CountryNo = " & CountryNo
Ds = SqlHelper.ExecuteDataset(connection, CommandType.Text, getplacelist)
Return Ds.Tables(0)
End Function





and on .aspx page i am using

Private Sub fillCountry()
Dim dt As DataTable
dt = getContry()
ComboBox1.DataSource = dt
ComboBox1.DataValueField = dt.Columns("CountryNo").ToString
ComboBox1.DataTextField = dt.Columns("CountryName").ToString
ComboBox1.DataBind()

End Sub

Private Sub fillPlace(ByVal CountryNo As Integer)
Dim dt As DataTable
dt = getplace(CountryNo)

ListBox1.DataSource = dt
ListBox1.DataValueField = dt.Columns("PlaceNo").ToString
ListBox1.DataTextField = dt.Columns("PlaceName").ToString
ListBox1.DataBind()
ListBox1.Enabled = True
End Sub



where i am wrong plz help me
AnswerRe: Problem with large database fetching Pin
Ashfield5-Jan-09 2:54
Ashfield5-Jan-09 2:54 
AnswerRe: Problem with large database fetching Pin
Wendelius5-Jan-09 9:22
mentorWendelius5-Jan-09 9:22 
AnswerRe: Problem with large database fetching Pin
Aman Bhullar6-Jan-09 5:45
Aman Bhullar6-Jan-09 5:45 
GeneralRe: Problem with large database fetching Pin
Member 40015966-Jan-09 20:22
Member 40015966-Jan-09 20:22 
QuestionNeed SQl Query Pin
karthigachawla5-Jan-09 0:48
karthigachawla5-Jan-09 0:48 
AnswerRe: Need SQl Query Pin
SeMartens5-Jan-09 1:09
SeMartens5-Jan-09 1:09 
GeneralRe: Need SQl Query Pin
Ben Fair5-Jan-09 4:13
Ben Fair5-Jan-09 4:13 
GeneralRe: Need SQl Query Pin
SeMartens5-Jan-09 4:26
SeMartens5-Jan-09 4:26 
GeneralRe: Need SQl Query Pin
Ben Fair5-Jan-09 5:51
Ben Fair5-Jan-09 5:51 
QuestionConfused about instance name in SQL cluster Pin
George_George3-Jan-09 23:15
George_George3-Jan-09 23:15 
AnswerRe: Confused about instance name in SQL cluster Pin
Wendelius4-Jan-09 0:49
mentorWendelius4-Jan-09 0:49 
GeneralRe: Confused about instance name in SQL cluster Pin
George_George4-Jan-09 22:23
George_George4-Jan-09 22:23 
GeneralRe: Confused about instance name in SQL cluster Pin
Wendelius5-Jan-09 4:33
mentorWendelius5-Jan-09 4:33 
QuestionSql query Pin
sarah_chandran3-Jan-09 3:45
sarah_chandran3-Jan-09 3:45 
AnswerRe: Sql query Pin
Wendelius3-Jan-09 4:13
mentorWendelius3-Jan-09 4:13 
AnswerRe: Sql query Pin
Vimalsoft(Pty) Ltd4-Jan-09 20:09
professionalVimalsoft(Pty) Ltd4-Jan-09 20:09 
GeneralRe: Sql query Pin
ChandraRam4-Jan-09 22:10
ChandraRam4-Jan-09 22:10 

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.