Click here to Skip to main content
15,920,896 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
Questionrelative of IIS Pin
ferronrsmith22-Jan-09 10:37
ferronrsmith22-Jan-09 10:37 
AnswerRe: relative of IIS Pin
Not Active22-Jan-09 11:31
mentorNot Active22-Jan-09 11:31 
GeneralRe: relative of IIS Pin
ferronrsmith22-Jan-09 11:41
ferronrsmith22-Jan-09 11:41 
GeneralRe: relative of IIS Pin
malk0lm23-Jan-09 12:36
malk0lm23-Jan-09 12:36 
QuestionHow do I get a grid control to see MyDataView's column definitions? Pin
ThomasBates22-Jan-09 10:09
ThomasBates22-Jan-09 10:09 
Questioncheck this Pin
kulandaivel_mca200721-Jan-09 22:57
kulandaivel_mca200721-Jan-09 22:57 
AnswerRe: check this Pin
Abhijit Jana21-Jan-09 23:41
professionalAbhijit Jana21-Jan-09 23:41 
AnswerConnectionStrings (original topic wasn't descriptive enough.. Not that this one is, but perhaps it shows some more detail) Pin
Eddy Vluggen22-Jan-09 0:53
professionalEddy Vluggen22-Jan-09 0:53 
I don't know if you can treat an arbitrary text as a database. A CSV-text, no problems. It kinda depends on the format of your textfile. Can you show us a small excerpt (5 lines), including escape-characters?

Anyway, if you want to verify that your connection-string works and can connect to the datastore, invoke the function described below;
/// Used to determine whether we can connect to a db-instance as provided
/// By a connectionstring.
internal bool TryConnectToSqlInstance(string connectionString)
{
    using (SqlConnection con = new SqlConnection(connectionString))
        try
        {
            con.Open();
        }
        catch (SqlException ex)
        {
            MessageBox.Show(String.Format("{0}\n\nConnection string: '{1}'", Message, connectionString} 
                Application.ProductName,
                MessageBoxButtons.OK, 
                MessageBoxIcon.Error);
        }
        finally
        {
            while (con.State == ConnectionState.Connecting)
                Application.DoEvents();
            if (con.State == ConnectionState.Open)
                MessageBox.Show("Connection Succeeded!", 
                    Application.ProductName, 
                    MessageBoxButtons.OK,
                    MessageBoxIcon.Information);
        }
}

You might also be interested in this[^] link, where you can find various connectionstrings for almost every database.

I are troll Smile | :)

AnswerRe: check this [modified] Pin
Wendelius22-Jan-09 1:34
mentorWendelius22-Jan-09 1:34 
GeneralRe: check this Pin
kulandaivel_mca200722-Jan-09 2:01
kulandaivel_mca200722-Jan-09 2:01 
GeneralRe: check this Pin
Wendelius22-Jan-09 2:06
mentorWendelius22-Jan-09 2:06 
GeneralRe: check this Pin
kulandaivel_mca200722-Jan-09 2:28
kulandaivel_mca200722-Jan-09 2:28 
GeneralRe: check this Pin
Wendelius22-Jan-09 2:36
mentorWendelius22-Jan-09 2:36 
GeneralRe: check this Pin
kulandaivel_mca200722-Jan-09 2:47
kulandaivel_mca200722-Jan-09 2:47 
GeneralRe: check this Pin
Wendelius22-Jan-09 2:54
mentorWendelius22-Jan-09 2:54 
GeneralRe: check this Pin
kulandaivel_mca200722-Jan-09 3:17
kulandaivel_mca200722-Jan-09 3:17 
GeneralRe: check this Pin
Wendelius22-Jan-09 3:20
mentorWendelius22-Jan-09 3:20 
GeneralRe: check this Pin
kulandaivel_mca200722-Jan-09 3:24
kulandaivel_mca200722-Jan-09 3:24 
GeneralRe: check this Pin
kulandaivel_mca200722-Jan-09 3:31
kulandaivel_mca200722-Jan-09 3:31 
Questionrefresh command on datagridview Pin
jetgrageda21-Jan-09 21:45
jetgrageda21-Jan-09 21:45 
AnswerRe: refresh command on datagridview Pin
Wendelius22-Jan-09 1:37
mentorWendelius22-Jan-09 1:37 
GeneralRe: refresh command on datagridview Pin
jetgrageda22-Jan-09 5:36
jetgrageda22-Jan-09 5:36 
GeneralRe: refresh command on datagridview Pin
Wendelius22-Jan-09 5:47
mentorWendelius22-Jan-09 5:47 
GeneralRe: refresh command on datagridview Pin
jetgrageda22-Jan-09 5:55
jetgrageda22-Jan-09 5:55 
GeneralRe: refresh command on datagridview Pin
Wendelius22-Jan-09 6:10
mentorWendelius22-Jan-09 6: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.