Hello, stack overflow !
I'm working on an application that manipulates SQL tables in a windows form application. Up until now, I've only been using the pre-generated Fill queries, and self-made update and delete queries (which return nothing).
I am interested in storing the value of a single value from a single column (an 'nchar(15)' name), and though I have easily written the SQL code to return that value to the application, I have no idea what it will be returned as.
SELECT [Contact First Name] FROM ContactSkillSet
WHERE [Contact ID] = @CurrentID
Can the result be stored directly as a string? Do I need to cast it? Invoke a toString method?
Thanks!
Edit: Interestingly enough, the following works:
String firstName = this.contactSkillSetTableAdapter.GrabFirstName(userKey);
The joys of the Visual Studio data wizard, I suppose.