local-database

c# use datatable in other form datagridview

怎甘沉沦 提交于 2019-12-11 10:38:20
问题 Hi Ive searched many topics, also here in stackoverflow, however none solved my problem This is my main form where I operate with my database and display items in datagridview public partial class Form1 : Form { DatabaseConnection objConnect; string conString; private static DataTable table; DataSet dataSet; public Form1() { InitializeComponent(); CreateConnection(); MakeDataTable(); } public DataTable table { get { return table; } } private void MakeDataTable() { table = new DataTable();

ASP.NET local SQL Server database C# gridview data binding Visual Studio 2013

£可爱£侵袭症+ 提交于 2019-12-11 07:41:29
问题 I need some help because I've been trying different things but nothing seems to work properly the question itself is the one below. How can I bind data to a grid-view in Visual Studio 2013 with a local SQL Server database using the code behind C# ? Here is the C# I'm trying: protected void Page_Load(object sender, EventArgs e) { SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\v11.0;AttachDbFilename=C:\Users\Guillermo\Desktop\HorsensHospital\App_Data\HospitalDB.mdf;Integrated

Windows Phone 7.5 - Local SQL Database

╄→гoц情女王★ 提交于 2019-12-10 12:12:45
问题 I am creating WP7 app. In that app i am using LINQ to SQL to create local database. I have created a class like this: [Table] public class User { [Column( IsPrimaryKey = true, IsDbGenerated = true, DbType = "INT NOT NULL Identity", CanBeNull = false)] public int Id { get; set; } [Column] public string FirstName { get; set; } [Column] public string LastName { get; set; } } and I have data context like below: public class UserDataContext : DataContext { public static string connString = "Data

DynamoDB client in local with UI like PHPMyAdmin

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 02:28:55
问题 I am creating web service in zend framework which uses DynamoDB. So I installed DynamoDB in local. But it's not easy to use. Even for inserting data and update any data for testing for purpose I have to write a script. Is there any DynamoDB client available for MAC ? In which we can insert/update/delete data from UI. EDIT Doubts 1) Do I have to run a SQL to see table data? I thought there would be GUI for this. 2) I am not able to use where clause in SQL. What if I want to see one or two

How to rename table using SSDT in Visual Studio

我怕爱的太早我们不能终老 提交于 2019-12-06 21:58:09
问题 I am using visual studio 2013 and trying to learn local database operations. I have created a database using VS and create tables. But I cannot rename table names. There is no such a option anywhere or I cannot see. I searched but find nothing. Could anyone show me how to rename table using 'VISUAL STUDIO 2013 SSDT' 回答1: Open the table, highlight the table name in the T-SQL portion of the window, click the SQL menu, then choose Refactor and Rename. You probably want to preview changes while

How to rename table using SSDT in Visual Studio

风流意气都作罢 提交于 2019-12-05 03:12:24
I am using visual studio 2013 and trying to learn local database operations. I have created a database using VS and create tables. But I cannot rename table names. There is no such a option anywhere or I cannot see. I searched but find nothing. Could anyone show me how to rename table using 'VISUAL STUDIO 2013 SSDT' Open the table, highlight the table name in the T-SQL portion of the window, click the SQL menu, then choose Refactor and Rename. You probably want to preview changes while you're at it to see what will be affected. 来源: https://stackoverflow.com/questions/22577669/how-to-rename

Windows 7 Federated Search - How to make it send search requests to my .net assembly

风格不统一 提交于 2019-12-04 13:43:37
问题 I am trying to display search results in the windows 7 explorer thru the federated search feature, from a local .net assembly. (not from a web service) I have found various tutorials, but all of them are for web services. Earlier I thought that it was not possible but then, I came across the StickyNotes federated search connector. The contents of the .OSDX file are: <?xml version="1.0" encoding="UTF-8"?> <searchConnectorDescription xmlns="http://schemas.microsoft.com/windows/2009

How to setup auto increment for Service-Based Database

纵饮孤独 提交于 2019-12-04 06:20:13
问题 I start build my first local database (Service-Based Database) here Write line to Service-Based Database with textbox, need your help with setup, so I want to set my auto increment in my Properties Identity Specification which is True now, or use some sorting method, thus if any row is removed, second one (next after deleted) must take index of deleted line, and of course same step back for all subsequent rows, and also important, if I have to use any sorting, to keep original order of lines

linq to sql (Local database for Windows Phone) better ? (OR) A sqlite-net version for mobile better ?? for windows phone 8 local database creation

孤街醉人 提交于 2019-12-03 20:31:39
Hi I am creating windows phone 8 app , i want to store huge amount data in my app , i have already completed my windows 8 tablet app using sqlite version for windows 8. my doubt is regarding creating a local datbase in windows phone 8 which is the most reliable one to go with ? option 1:- Working with SQLite in Windows Phone 8: a sqlite-net version for mobile option 2:- linq to sql (Local database for Windows Phone) if i use the option 1 i can easily re-use all my Data, DALC, BIZ layers as it is even in my phone versions (which i already built for windows 8 tablet app). if i use option 2 i

Windows 7 Federated Search - How to make it send search requests to my .net assembly

安稳与你 提交于 2019-12-03 08:25:52
I am trying to display search results in the windows 7 explorer thru the federated search feature, from a local .net assembly. (not from a web service) I have found various tutorials, but all of them are for web services. Earlier I thought that it was not possible but then, I came across the StickyNotes federated search connector. The contents of the .OSDX file are: <?xml version="1.0" encoding="UTF-8"?> <searchConnectorDescription xmlns="http://schemas.microsoft.com/windows/2009/searchConnector"> <description>Create short handwritten or text notes.</description> <isSearchOnlyItem>true<