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

Database

 
QuestionHow to store a standard selection? Pin
Jörgen Andersson10-Aug-12 9:57
professionalJörgen Andersson10-Aug-12 9:57 
AnswerRe: How to store a standard selection? Pin
R. Giskard Reventlov10-Aug-12 10:02
R. Giskard Reventlov10-Aug-12 10:02 
GeneralRe: How to store a standard selection? Pin
Jörgen Andersson10-Aug-12 10:09
professionalJörgen Andersson10-Aug-12 10:09 
GeneralRe: How to store a standard selection? Pin
R. Giskard Reventlov10-Aug-12 10:41
R. Giskard Reventlov10-Aug-12 10:41 
AnswerRe: How to store a standard selection? Pin
Eddy Vluggen10-Aug-12 10:11
professionalEddy Vluggen10-Aug-12 10:11 
GeneralRe: How to store a standard selection? Pin
Jörgen Andersson10-Aug-12 10:31
professionalJörgen Andersson10-Aug-12 10:31 
QuestionDatabase status check and report Pin
leketekoa10-Aug-12 4:12
leketekoa10-Aug-12 4:12 
AnswerRe: Database status check and report Pin
David Mujica10-Aug-12 5:10
David Mujica10-Aug-12 5:10 
You could begin by something as simple as:

1) Make a connection to the database New SqlConnection(GetConnString())
2) Open the connection SQLconn.Open()
3) Issue some sort of simple command SQLcmd = New SqlCommand("select count(*) from customers", SQLconn)
4) Get data from the DB r = SQLcmd.ExecuteScalar

5) Wrap all of this code in a Try-Catch block and if successful, then you can safely assume that your connection to the database is up and the database is running.

Good luck Thumbs Up | :thumbsup:
GeneralRe: Database status check and report Pin
leketekoa13-Aug-12 4:30
leketekoa13-Aug-12 4:30 
AnswerRe: Database status check and report Pin
jschell10-Aug-12 12:46
jschell10-Aug-12 12:46 
QuestionSymantec Q&A File Conversion Pin
snowman539-Aug-12 12:54
snowman539-Aug-12 12:54 
AnswerRe: Symantec Q&A File Conversion Pin
Eddy Vluggen9-Aug-12 22:21
professionalEddy Vluggen9-Aug-12 22:21 
GeneralRe: Symantec Q&A File Conversion Pin
snowman5310-Aug-12 11:51
snowman5310-Aug-12 11:51 
GeneralRe: Symantec Q&A File Conversion Pin
Eddy Vluggen10-Aug-12 22:13
professionalEddy Vluggen10-Aug-12 22:13 
AnswerRe: Symantec Q&A File Conversion Pin
Mycroft Holmes12-Aug-12 18:18
professionalMycroft Holmes12-Aug-12 18:18 
GeneralRe: Symantec Q&A File Conversion Pin
snowman5313-Aug-12 6:36
snowman5313-Aug-12 6:36 
QuestionUsername/password protected database Pin
Kujtim Hyseni7-Aug-12 10:10
Kujtim Hyseni7-Aug-12 10:10 
AnswerRe: Username/password protected database Pin
Mycroft Holmes7-Aug-12 12:49
professionalMycroft Holmes7-Aug-12 12:49 
AnswerRe: Username/password protected database Pin
Michael Aimakhede9-Aug-12 19:42
Michael Aimakhede9-Aug-12 19:42 
GeneralRe: Username/password protected database Pin
Eddy Vluggen10-Aug-12 6:03
professionalEddy Vluggen10-Aug-12 6:03 
QuestionGet records having different data in 2 rows Pin
Vipul Mehta5-Aug-12 19:14
Vipul Mehta5-Aug-12 19:14 
AnswerRe: Get records having different data in 2 rows Pin
Vipul Mehta5-Aug-12 21:03
Vipul Mehta5-Aug-12 21:03 
AnswerRe: Get records having different data in 2 rows Pin
JammoD876-Aug-12 0:40
JammoD876-Aug-12 0:40 
GeneralRe: Get records having different data in 2 rows Pin
Bernhard Hiller6-Aug-12 21:56
Bernhard Hiller6-Aug-12 21:56 
GeneralRe: Get records having different data in 2 rows Pin
JammoD876-Aug-12 22:18
JammoD876-Aug-12 22:18 

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.