combobox columns - combobox

How can I display data in combobox in columns? I am using VB.net 2010 with SQL SERVER 2008. Or in other way, is it possible do accomplish this by formatting the sql query like using the formatting functions?

Related

SSMS and Dynamic spreadsheet query update

I have a 2013 excel dynamic spread sheet. It is using a query that is linked to SQL Server Management Studio. There is a DateTime line in the sql query that I want to update with a specific date every time the dynamic spread sheet is opened/refreshed. It seems to me that there is a way to add a pop up window that will ask for a date which will then update the sql query. Thank you for any input.

C Insert image to ms sql database using odbc

Is there any way to put image into MS SQL database on c? The table field type is "Image", i have HBITMAP in my program, how can i put it into database?
I use SQLExecDirect() function to insert text into VARCHAR fields, but i also need to work with "Image" field. Is that even possible?
This should be possible using ODBC.
If you take a look at this article: Using ODBC with Microsoft SQL Server
and scroll down to the very bottom, there is a sample app code ("Putimage.c"), using SQLExecDirect() function.

Is it possible to autocomplete column names in a SSMS query?

I'm new to SQL Server and today I began writing an SQL query. While writing SQL queries in SSMS (SQL Server Management Studio) for insert statements, I noticed that only table names were getting auto completed, but there is no option to auto complete the column name. Is there any way to autocomplete column names in a query?
INSERT INTO table_name (column1,column2,column3,...)
/* Here table name is auto completed. When i type a,a related tables were generated, but for columns there is no autocomplete. */
VALUES (value1,value2,value3,...);
Assuming you are using SQL Server Management Studio (SSMS), which most use people use when working with SQL Server, there is a weaker built in Intellisense that will fill in certain parts of SQL queries for you. If you want something stronger, you can check out third party addins. The most popular are probably SQL Prompt by Red Gate and SQL Complete by dbForge.

How to store the multiline - data from WPF-text box into SQL server and retrieve it from SQL without changing the format?

I am just the beginner in VB.NET. I was trying to store the data from WPF-Text box into SQL server and retrieving the data from SQL using VB.NET. I am able to store the date into SQL. But when i am retrieving the data from SQL, the format of the text is getting changed (I have stored the data in multiple lines, but while retrieving, they are retrieved as single paragraph). I have already set the WPF textbox properties into multiline. But i cant find the solution to fix this issue.

What is an alternate to SQL Triggers in Sql Server Compact Edition?

I have moved my WPF application to sql server compact edition(3.5) from sql server express 2008.
Case :(With sql server express 2008)
I have used triggers to update column value.
My Column is comma separated string.
When i was inserting value in database table, another table's column value was being updated using trigger.
Eg.
Table 1:Group
Inserting group name=> "My Personal Group"
(Trigger executes) and then
Table 2:Contact
Column:GroupNames = My Personal Group
Now i want to implement same thing using sql server compact edition(3.5) but it does not support triggers.
I don't know about any alternatives as i am new with sql server compact edition(3.5)
Can any one help me?
Thanks in advance
An approach to working around the lack of triggers is in another stackoverflow answer here

Resources