About 9,910,000 results
Open links in new tab
  1. How to execute sql statements from a C program?

    Nov 13, 2016 · The alternative mechanism is called Embedded SQL - exemplified by products such as IBM Informix ESQL/C (a part of IBM Informix ClientSDK). In these systems, there is a precompiler that accepts statements such as: EXEC SQL CREATE TABLE x (y INTEGER NOT NULL); and arranges for the correct interface calls.

  2. mysql - How to connect to SQL through C? - Stack Overflow

    Mar 21, 2011 · Once you have it working and you have decided on which server you want to use (MySQL, MS SQL Server, Oracle, etc.) you can then read the documentation on creating a connection specific to that database server.

  3. How to make an SQL query from a C/C++ application?

    Nov 13, 2016 · Possible Duplicate: How to execute sql statements from a C program? I'm creating a C application, and i need some data from my SQL server. Does anyone know how can I make an SQL query from my C

  4. .net - C# Equivalent of SQL Server DataTypes - Stack Overflow

    There are updated versions of the table for SQL Server 2008, SQL Server 2008 R2, SQL Server 2012 and SQL Server 2014. SQL Server Data Types and Their .NET Framework Equivalents The following table lists Microsoft SQL Server data types, their equivalents in the common language runtime (CLR) for SQL Server in the System.Data.SqlTypes namespace ...

  5. c# - Select query to get data from SQL Server - Stack Overflow

    Jul 15, 2015 · SqlCommand.ExecuteNonQuery Method. You can use the ExecuteNonQuery to perform catalog operations (for example, querying the structure of a database or creating database objects such as tables), or to change the data in a database without using a DataSet by executing UPDATE, INSERT, or DELETE statements.

  6. c# - Capturing count from an SQL query - Stack Overflow

    In this case, there will always be a return value of type int. In the more general case, you might get a return value of DBNull, e.g. "select ssn from table1 where company_id = '112233'". Since you can't cast the DBNull to your return datatype, you have test and change it, either in the SQL or in your app. –

  7. c# - Changing SqlConnection timeout - Stack Overflow

    Apr 11, 2012 · The property is read-only after connection. See other responses for discussion. ConnectionTimeout impacts timeout when attempting to connect. it's often useful to increase this for Azure SQL DB. CommandTimeout impacts timeout when running a query. –

  8. How to directly execute SQL query in C#? - Stack Overflow

    Jan 18, 2019 · IMPORTANT NOTE: You should not concatenate SQL queries unless you trust the user completely. Query concatenation involves risk of SQL Injection being used to take over the world, ...khem, your database. If you don't want to go into details how to execute query using SqlCommand then you could call the same command line like this:

  9. sql server - How to use SqlTransaction in C# - Stack Overflow

    I am using the following code to execute two commands at once. I used SqlTransaction to assure either all command get executed or rolled back. When I run my program without "transaction",...

  10. How can I map the results of a sql query onto objects?

    Unlike regular ORMs, that provide an SDL you must use, MicroORMs allow you to use your own SQL queries and only provide the mapping from SQL result sets to C# objects and from C# objects to SQL parameters. My favorite is PetaPoco, which also provides a query builder that uses your own SQL but does some neat manipulation of parameter numbers.

Refresh