connecting C# app to a .mdf file in SQL management studio
Hi guys I've been trying to connect my c# file to my database file(in .mdf format created in SQL Server Management Studio 2008). So basically I used visual studio 2008 for my C# file and SQL Server Management Studio 2008 for my database file. Now I'm sure that the naming conventions that I used in C# are the same as the naming conventions with my .mdf database file.
Unfortunately I wasn't able to make it run properly, I mean whenever I type data in my c# app it doesn't appear on the tables that I executed in my .mdf file in management studio... I will upload the files both the C# app and the database file so you can test it, and I hope the link that I have included in this post will be a bit helpful. Please inform me guys how you did it if ever you were able to connect and run them properly. All helps will be very appreciated. Thanks in advance!
You only need the correct connection string to access to database.
And if SSMS (with database) is located on different pc, then you have to open a 1433 port (potr that is used to access to sql server by defalut) in the firewall.
The database file is already attached to the instance of SQLEXPRESS. This may be causing some undesireable results.
I'm not going to download and look through all of your code. If you post some code (ie. where you created the SqlConnection class, and how you're using it) I'll take a look, but atleast try my above suggestion first.
Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...