Click here to Skip to main content
15,911,531 members
Home / Discussions / Database
   

Database

 
QuestionUpdate DB from DataGridView Pin
anderslundsgard27-Sep-06 10:22
anderslundsgard27-Sep-06 10:22 
QuestionRestore "AdventureWorks" database Pin
VK-Cadec27-Sep-06 9:53
VK-Cadec27-Sep-06 9:53 
AnswerRe: Restore "AdventureWorks" database Pin
Chris Buckett28-Sep-06 23:35
Chris Buckett28-Sep-06 23:35 
QuestionExecuting a Stored Procedure thru VS2005 Pin
Brendan Vogt27-Sep-06 4:25
Brendan Vogt27-Sep-06 4:25 
AnswerRe: Executing a Stored Procedure thru VS2005 Pin
nguyenvhn27-Sep-06 16:09
nguyenvhn27-Sep-06 16:09 
QuestionError: Attempt to open a table failed - there were no columns to retrieve were specified. Pin
AbbyDabby27-Sep-06 4:19
AbbyDabby27-Sep-06 4:19 
AnswerRe: Error: Attempt to open a table failed - there were no columns to retrieve were specified. Pin
Kschuler27-Sep-06 8:34
Kschuler27-Sep-06 8:34 
QuestionComplex SQL View Pin
Dayekh27-Sep-06 1:45
Dayekh27-Sep-06 1:45 
Hi,

I currently have a DataGrid which retrieves the Surname of a user into one of the columns using an SQL View.

I would like to have the SQL View retrieve both Surname AND Forename.

Here's the current view:

SELECT tblProject.inProjectID, tblProject.vchProjectName, tblUser.vchSurname, tblProject.dtStartDate, tblProject.dtCompletionDate

FROM tblProject INNER JOIN
tblUser ON tblProject.inProjectManagerID = tblUser.inUserID


The view allows the display of the Surname. I would like to display "Surname, Forename" i.e. "Smith, John"

I used the following query for application on a DropDownList:

"SELECT tblUser.inUserID, tblUser.vchSurname + ', ' + tblUser.vchForename AS ForenameANDSurname FROM tblUser ORDER BY tblUser.vchSurname"

I just can't seem to fit it into the View Frown | :(

Any Ideas?

Thanks Smile | :)
AnswerRe: Complex SQL View Pin
albCode27-Sep-06 2:18
albCode27-Sep-06 2:18 
GeneralRe: Complex SQL View Pin
Dayekh27-Sep-06 3:06
Dayekh27-Sep-06 3:06 
GeneralRe: Complex SQL View Pin
albCode27-Sep-06 3:10
albCode27-Sep-06 3:10 
GeneralRe: Complex SQL View Pin
Dayekh27-Sep-06 3:15
Dayekh27-Sep-06 3:15 
GeneralRe: Complex SQL View Pin
albCode27-Sep-06 3:30
albCode27-Sep-06 3:30 
GeneralRe: Complex SQL View Pin
Dayekh27-Sep-06 3:48
Dayekh27-Sep-06 3:48 
GeneralRe: Complex SQL View Pin
albCode27-Sep-06 3:58
albCode27-Sep-06 3:58 
QuestionInsert Record in Tables Pin
shapper27-Sep-06 1:18
shapper27-Sep-06 1:18 
AnswerRe: Insert Record in Tables Pin
Mike Dimmick27-Sep-06 2:13
Mike Dimmick27-Sep-06 2:13 
QuestionHow to search a dataset Pin
Rip Kirby27-Sep-06 0:11
Rip Kirby27-Sep-06 0:11 
AnswerRe: How to search a dataset Pin
Kschuler27-Sep-06 8:41
Kschuler27-Sep-06 8:41 
GeneralRe: How to search a dataset Pin
Rip Kirby27-Sep-06 23:48
Rip Kirby27-Sep-06 23:48 
GeneralRe: How to search a dataset Pin
Kschuler28-Sep-06 3:05
Kschuler28-Sep-06 3:05 
GeneralRe: How to search a dataset Pin
Rip Kirby28-Sep-06 9:25
Rip Kirby28-Sep-06 9:25 
QuestionGetting Maximum number: Pin
Shahzad.Aslam26-Sep-06 23:55
Shahzad.Aslam26-Sep-06 23:55 
AnswerRe: Getting Maximum number: Pin
albCode27-Sep-06 1:02
albCode27-Sep-06 1:02 
AnswerRe: Getting Maximum number: Pin
Rob Graham27-Sep-06 2:27
Rob Graham27-Sep-06 2:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.