Click here to Skip to main content
15,887,746 members
Home / Discussions / Database
   

Database

 
QuestionWork with two dataBase with different username and password. Pin
goliii12-Nov-05 1:45
goliii12-Nov-05 1:45 
AnswerRe: Work with two dataBase with different username and password. Pin
Colin Angus Mackay12-Nov-05 3:15
Colin Angus Mackay12-Nov-05 3:15 
AnswerRe: Work with two dataBase with different username and password. Pin
Colin Angus Mackay12-Nov-05 3:19
Colin Angus Mackay12-Nov-05 3:19 
QuestionSQL int question (Probably an easy answer too) Pin
Tad McClellan11-Nov-05 15:03
professionalTad McClellan11-Nov-05 15:03 
AnswerRe: SQL int question (Probably an easy answer too) Pin
Colin Angus Mackay11-Nov-05 23:40
Colin Angus Mackay11-Nov-05 23:40 
GeneralRe: SQL int question (Probably an easy answer too) Pin
Tad McClellan12-Nov-05 4:41
professionalTad McClellan12-Nov-05 4:41 
Questionremove a datatable from a dataset Pin
webx1011-Nov-05 10:34
webx1011-Nov-05 10:34 
Questionconnection problem Pin
ashee200011-Nov-05 9:04
ashee200011-Nov-05 9:04 
i am using vs2002 and want to enter data in a sql server 2000 database through vb interface. i am able to enter data if the vb application and sql server both are on same node but i want to enter data to database on other node running sql server. computers are networked under same workgroup and there is no domain controller.

i used the following code for connection.

Dim constudent As SqlConnection
Dim cmdadd As SqlCommand
Dim conn As String
conn = "server=.; UID=sa;PWD=secret;database=student"
constudent = New SqlConnection(conn)
cmdadd = New SqlCommand("insert into student values(@name,@roll,@stream)", constudent)
cmdadd.Parameters.Add("@name", TextBox1.Text)
cmdadd.Parameters.Add("@roll", Val(TextBox2.Text))
cmdadd.Parameters.Add("@stream", TextBox3.Text)
Try
constudent.Open()
cmdadd.ExecuteNonQuery()
constudent.Close()
MessageBox.Show("Data Added", "added", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button2, MessageBoxOptions.DefaultDesktopOnly)
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
Catch ex As Exception
MessageBox.Show("error", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button2, MessageBoxOptions.DefaultDesktopOnly)
End Try

may any one hlp plz to modify the connection string or tell me how to establish such connection

AnswerRe: connection problem Pin
Colin Angus Mackay11-Nov-05 12:01
Colin Angus Mackay11-Nov-05 12:01 
GeneralRe: connection problem Pin
ashee200014-Nov-05 7:16
ashee200014-Nov-05 7:16 
AnswerRe: connection problem Pin
ricardojb14-Nov-05 17:25
ricardojb14-Nov-05 17:25 
QuestionPassing parameter to Oracle Pin
softty11-Nov-05 8:42
softty11-Nov-05 8:42 
AnswerRe: Passing parameter to Oracle Pin
anandss11-Nov-05 9:18
anandss11-Nov-05 9:18 
QuestionSQL SPLIT INSERT AND JOIN.... Pin
ModuleKev11-Nov-05 2:13
ModuleKev11-Nov-05 2:13 
QuestionHow to get RelationShip Between SQL Functions? Pin
pubududilena11-Nov-05 1:56
pubududilena11-Nov-05 1:56 
AnswerRe: How to get RelationShip Between SQL Functions? Pin
Colin Angus Mackay11-Nov-05 4:37
Colin Angus Mackay11-Nov-05 4:37 
Questionupdate in the same table Pin
Goodway10-Nov-05 20:18
Goodway10-Nov-05 20:18 
AnswerRe: update in the same table Pin
softty11-Nov-05 8:54
softty11-Nov-05 8:54 
GeneralRe: update in the same table Pin
anandss11-Nov-05 12:55
anandss11-Nov-05 12:55 
GeneralRe: update in the same table Pin
Goodway14-Nov-05 20:48
Goodway14-Nov-05 20:48 
QuestionInvalidated ADO Connection Object Pin
alex120510-Nov-05 19:31
alex120510-Nov-05 19:31 
AnswerRe: Invalidated ADO Connection Object Pin
S Douglas13-Nov-05 22:02
professionalS Douglas13-Nov-05 22:02 
GeneralRe: Invalidated ADO Connection Object Pin
alex120514-Nov-05 0:18
alex120514-Nov-05 0:18 
GeneralRe: Invalidated ADO Connection Object Pin
S Douglas14-Nov-05 0:46
professionalS Douglas14-Nov-05 0:46 
Questionsql problem Pin
ppp00110-Nov-05 18:33
ppp00110-Nov-05 18:33 

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.