« first day (1384 days earlier)      last day (3564 days later) » 
00:00 - 22:0022:00 - 00:00

10:04 PM
oh god.... damn you autocorrect! it changed "bag" to "vag"
 
10:22 PM
@Pheonixblade9 Or, you know, you just missed the B key to the left.
 
@KendallFrey no it actually did auto correct it lol
 
guys, how can i check connection with mysql database using .net.
i know the if(connection.open()) return true; but this solution is not working for me
i mean it's working but it's not what i really need
 
What do you need?
 
@redaa What do you want to have happen?
 
i have a window with text boxes, the user is prompted for the database settings(username, serverIp, password)
when i enter only the serverIp value in a text box, the connection is ok
 
10:28 PM
Guys, I created an MVC application from the default template. I'm new to MVC and I've hosted my application on IIS. How do I point my application to a locally running instance of Microsoft SQL Server?
 
it perfectlly logic, but i want to verify the connection with the database
 
Is it just a matter of changing the connectionString in the Web.config?
 
What woudl be the reason for TFS to compile my website but don;t create _PublishedWebsites folder and content
 
it's a desktop application btw :)
 
@redaa You want to test the username and password to the database you mean?
 
10:30 PM
yes and the database name, but until now if i only enter the server ip, the connection is OK
 
@Alexandru change to Server=localhost and change the Security=Integrated to a Username and Password, like this: `Server=myServerAddress;Database=myDataBase;User Id=myUsername;
Password=myPassword;`
 
@redaa Have you checked this out? stackoverflow.com/questions/17853371/…
@redaa Basically, you need to take that username, password, database server IP or host name (IE 192.168.1.1 or the name of your server on your domain, so if I'm on my local area network my server might be whatever my server's machine name is, so like Computer4, whatever), and the database you want to connect it to, and then build a connection string from it, then open a connection using that connection string like in the link i sent you :)
 
@Alexandru will try thanks
 
@redaa No problem
@Pho
@Pheonixblade9 So repointing an MVC app is just a matter of changing the web.config?
@Pheonixblade9 i mean, if its just the standard mvc template app? :)
@redaa Basically you just need to do this:

using (SqlConnection connection = new SqlConnection("Data Source='" + textBox1.Text + "';Initial Catalog='" + textBox2.Text + "';User ID='" + textBox3.Text + "';Password='" + textBox4.Text + "'"))
            {
                connection.Open();
            }
connection.Open(); will throw exceptions...thats how you know it failed :P
 
correct
you really shouldn't be allowing user input for connection strings, btw
 
10:37 PM
it sounds like he's building out an app to test connection strings
 
Brain is dead. Need a column to specify if an ID is incoming or outgoing for a message.
Incoming (0,1|Y,N), Direction (In,out).. gah
 
@RyanTernier if you want it to be very clear, just have a FK to a table with "Incoming" and "Outgoing" as values and call the column Direction
or you could probably just use a constraint, FK might be overkill
 
@Pheonixblade9 Yea that's wha ti'm thinking
 
bytes are cheap. Make it readable
 
11:36 PM
guys, to check if mysql database connection is correctly established , i execute this sql query : "SELECT 1 FROM user;" . i wonder if this is a secure way to do this
 
00:00 - 22:0022:00 - 00:00

« first day (1384 days earlier)      last day (3564 days later) »