Defining a concatenated column size
From: Kirk (Kirk_at_discussions.microsoft.com)
Date: 06/18/04
- Previous message: Vishal Parkar: "Re: Conditional computing"
- Next in thread: Hugo Kornelis: "Re: Defining a concatenated column size"
- Reply: Hugo Kornelis: "Re: Defining a concatenated column size"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 18 Jun 2004 07:49:01 -0700
I have a column within a view that is a concatenation of several different columns of another table. It goes something like: tblA.columnA + '-' tblA.columnB + '-' tblA.columnC + '-' tblA.columnD As 'NewColumn'
Is it possible to define the size of the 'NewColumn' within the view? I have a stored procedure that is going to create a temp table based on this view, but when I execute the stored procedure I get the following error:
Line 1: Incorrect syntax near '*'.
In looking at the stored procedure code, the error is a result of when the create table occurs, it defines the NewColumn as nvarchar(*), which is causing the error.
Any help would be appreciated.
Thanks.
- Previous message: Vishal Parkar: "Re: Conditional computing"
- Next in thread: Hugo Kornelis: "Re: Defining a concatenated column size"
- Reply: Hugo Kornelis: "Re: Defining a concatenated column size"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|