Click here to Skip to main content
15,915,163 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL Server connection sharing Pin
Rashid Thadha12-Dec-01 3:04
Rashid Thadha12-Dec-01 3:04 
GeneralRe: SQL Server connection sharing Pin
16-Dec-01 18:33
suss16-Dec-01 18:33 
GeneralGetting (OLE-DB) row handle Pin
Selahattin ERDEN10-Dec-01 12:06
Selahattin ERDEN10-Dec-01 12:06 
GeneralHelp!. Access & ODBC & Left Outer Joins Pin
Fred C V10-Dec-01 6:38
Fred C V10-Dec-01 6:38 
GeneralRe: Help!. Access & ODBC & Left Outer Joins Pin
AdamF4-Jan-02 5:24
AdamF4-Jan-02 5:24 
GeneralRe: Help!. Access & ODBC & Left Outer Joins Pin
Fred C V16-Jan-02 19:43
Fred C V16-Jan-02 19:43 
GeneralMySQL HELP! Pin
Bill Gates Antimatter Particle10-Dec-01 1:44
Bill Gates Antimatter Particle10-Dec-01 1:44 
GeneralRetrieval of data from mulit table from SQL server and load into datagrid Pin
blueei5-Dec-01 21:44
blueei5-Dec-01 21:44 
Cry | :((
hilo, i'm a newbie at VB.NET... and i've wrote in VB.NET
i've been trying examples from reference books and online reference... but it seems that i either got the syntax wrong or just could not get it right, i think that i have something somewhere wrong with the Join table part. as i have to use 3 different tables to get the result.
anyone, pls help out... thank you! veri veri much! Blush | :O

my syntax are as follows...
'''''''''''''''''''''''''''''''''''''''''''''''''''
Dim objDataSet As New DataSet("ValidReasonList")
Dim cnn As SqlConnection
Dim cmd As SqlDataAdapter
Dim sql As String
Dim tblValidReasons As New DataTable("ValidReasons")

cnn = New SqlConnection("server=(local); database=sas2000; Integrated Security=SSPI")

sql = "SELECT A.APPROVED, B.ADMNO, B.DATEFROM, B.DATETO, B.REASON_DESC, C.REASONTYPE_NAME"
sql = sql & "FROM ABSENCE A, ABS_REASON B, ABS_REASON_TYPE C"
sql = sql & "WHERE A.REASON_ID = B.REASON_ID AND B.REASONTYPE_ID = C.REASONTYPE_ID"
sql = sql & "ORDER BY B.ADMNO"

cmd = New SqlDataAdapter(sql, cnn)
cmd.Fill(objDataSet, "JoinTable")
dgValidReasons.DataSource = objDataSet.Tables("JoinTable").DefaultView
dgValidReasons.DataBind()
''''''''''''''''''''''''''''''''''''''''''''''''''''''Rose | [Rose]
GeneralAllow Zero Lenght and SqlAPI Pin
4-Dec-01 6:20
suss4-Dec-01 6:20 
Generalideas please Pin
Djibril3-Dec-01 18:50
professionalDjibril3-Dec-01 18:50 
GeneralSQL Server -> Access Pin
Michael Martin25-Nov-01 14:16
professionalMichael Martin25-Nov-01 14:16 
GeneralRe: SQL Server -> Access Pin
Matt Gullett25-Nov-01 14:40
Matt Gullett25-Nov-01 14:40 
GeneralRe: SQL Server -> Access Pin
Michael Martin25-Nov-01 19:19
professionalMichael Martin25-Nov-01 19:19 
GeneralRe: SQL Server -> Access Pin
Rashid Thadha26-Nov-01 2:43
Rashid Thadha26-Nov-01 2:43 
GeneralTwo difficult ADO questions Pin
ssteo23-Nov-01 23:21
ssteo23-Nov-01 23:21 
GeneralRe: Two difficult ADO questions Pin
Rashid Thadha26-Nov-01 2:45
Rashid Thadha26-Nov-01 2:45 
GeneralRe: Two difficult ADO questions Pin
Giles26-Nov-01 3:09
Giles26-Nov-01 3:09 
GeneralRe: Two difficult ADO questions Pin
Earl Allen20-Feb-02 12:13
Earl Allen20-Feb-02 12:13 
QuestionHow can I export database from SQL to Interbase? Pin
21-Nov-01 23:05
suss21-Nov-01 23:05 
AnswerRe: How can I export database from SQL to Interbase? Pin
Rashid Thadha22-Nov-01 1:15
Rashid Thadha22-Nov-01 1:15 
GeneralRe: How can I export database from SQL to Interbase? Pin
22-Nov-01 15:10
suss22-Nov-01 15:10 
GeneralRe: How can I export database from SQL to Interbase? Pin
Rashid Thadha22-Nov-01 22:27
Rashid Thadha22-Nov-01 22:27 
Generalresetting id while deleting records in runtime Pin
ginola21-Nov-01 14:10
ginola21-Nov-01 14:10 
GeneralRe: resetting id while deleting records in runtime Pin
Peter Zajac29-Nov-01 9:05
Peter Zajac29-Nov-01 9:05 
GeneralDynamic Recordset Pin
Laksh21-Nov-01 1:09
Laksh21-Nov-01 1:09 

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.