Ask a Question related to Microsoft SQL / MS SQL Server, Design and Development.
-
lindawie #1
Re: Pad strings/concatenate columns to simulate data columns in ASP select box with SQL Server 2K
Dale,
Cast all the data to fixed character data type in your select> Is there a simple function PADR() or something like that that I
> can use in ASP/VB Script to pad a string with spaces?
>
> The data I'm using sits in a SQL Server database, so if there
> isn't an easy way to do this in ASP, is there a simple T-SQL
> solution?
statement.
For example:
select cast(au_id as char(12)) +
cast(au_fname as char(20)) +
cast(au_lname as char(20))
from pubs..authors
Linda
lindawie Guest
-
select all columns in a table, save for one
Say a table had 15 columns and I wanted to select 14 of them. Is there a way I could specificy the column I didn't wanted selected instead of... -
SELECT * / Order of Columns
Hey guys, is there a way to re-arrange the order of columns when using SELECT * - I don't normally use SELECT *, but am forced to in a current... -
Comparing 2 columns in my select
I have 3 columns, name - price1 - price2 I want to compare price1 against price2 during my select and only return the greatest value to my... -
Columns and Inherited Datagrid...Active Schema does not support columns
I have a class which has inherited from datagrid, to provide some custom functionality, row select, mouse overs etc All is working fine apart from... -
Selecting all columns, but in a different order in SELECT statement
Thanks, i thought that was the case... just wanted to confirm it before i started working on it. Alex "Vishal Parkar" <vgparkar@hotmail.com>...



Reply With Quote

