I know that these do not exist in SQL 7 and do exist in SQL 2000.
I am writing an application using Microsoft Access ADP frontend, and need to know if the equivalent functionality can be easily done in SQL 7 using stored procedures.
For example, how would I write a generic stored procedure to concatenate a SurName and FirstName where say if the firstname were Null, the comma separater would be suppressed; eg.
FirstName: John
Surname: Smith
would yield "Smith, John"
but
FirstName: Null
Surname: Smith
would simply yield: "Smith" not "Smith,"
I'd like to be able to do this as if I was using a custom developed function (in SQL 7); eg:
Select FullName(Surname, FirstName) ....
Where FullName is my 'joining procedure'. Whats the best way to do this against SQL 7?
Thanks in anticipation,
Steve Lewy
Solutions Developer
steve@lewycomputing.com.au
(dont cut corners or you'll go round in circles)
I am writing an application using Microsoft Access ADP frontend, and need to know if the equivalent functionality can be easily done in SQL 7 using stored procedures.
For example, how would I write a generic stored procedure to concatenate a SurName and FirstName where say if the firstname were Null, the comma separater would be suppressed; eg.
FirstName: John
Surname: Smith
would yield "Smith, John"
but
FirstName: Null
Surname: Smith
would simply yield: "Smith" not "Smith,"
I'd like to be able to do this as if I was using a custom developed function (in SQL 7); eg:
Select FullName(Surname, FirstName) ....
Where FullName is my 'joining procedure'. Whats the best way to do this against SQL 7?
Thanks in anticipation,
Steve Lewy
Solutions Developer
steve@lewycomputing.com.au
(dont cut corners or you'll go round in circles)