Skip to content

Execute query using C# [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 8 years ago. Improve this question I am trying to execute some SQL code, connected directly to my database, but I don’t k…

SqlDependency onchange event infinite loop

I have a simple query, and the event fires at the correct time. However, once fired, the property, .HasChanges, of the SqlDependency object is always set as true. The first time OnChange is fired, the SqlNotificationEventArgs Info property is “Inserted”. The second time the event is fired it&#8217…

convert datetime (mm/dd/YYYY) to decimal(YYYYmmDD)

I am trying to get the following result in Sql: example: 23/05/2014 to 20142305 but get this: result:41780 anyone know how you can get the following format?? (if possible ??) regards and thanks Answer In many databases (including SQL Server), you can just do: Some databases don’t support these functions…

C# Console Application insert row in MySQL database

I have a console application (in Visual Studio 2013 Ultimate) where I want to insert data in my database. How do I need to connect and insert data in this application? The query for my database is: …

Select from row to last row

Is it possible for me with MySQL to select the from a specific row to the end of the table, without knowing how many rows there are left? My query at the moment is: But I want to be able to something like: Can this be done? Answer Just use a large value like 999999999 that is going to be