Viewing 4 posts - 1 through 4 (of 4 total)
OK I did there is a name in there name(sysname(nvarchar(128)),null)
I need to insert zero to every column except the first one which contains primary key.
thanks
August 14, 2014 at 4:35 pm
Ok I don't understand the first line of code select '[' + name + '] = 0,'
name I think is a column name?
August 14, 2014 at 12:40 pm
This is what I have , still no Zeros in the columns
select '[' + name + '] = 0'
from sys.columns
WHERE object_id = OBJECT_ID(N'[dbo].[ArCustomerBal]')
and name != ' @sx_customer_code'
August 14, 2014 at 12:26 pm
table design arcustomer
[Customer] [char](7) NOT NULL,
[Name] [char](30) NULL,
[ExemptFinChg] [char](1) NULL,
[Salesperson] [char](3) NULL,
[CustomerClass] [char](2) NULL,
[Salesperson,] [char](2) NULL,
[TermsCode] [char](2) NULL,
[Area] [char](2) NULL,
[Branch] [char](2) NULL
two...
August 11, 2014 at 3:28 pm
Viewing 4 posts - 1 through 4 (of 4 total)