Viewing 12 posts - 16 through 27 (of 27 total)
John Rowan (10/15/2009)
October 15, 2009 at 2:03 pm
John,
From the short description of the problem it seems like every time you change an association between a customer and an address, you have to find all the records...
October 15, 2009 at 1:55 pm
If I am understanding it correctly you have a many-to-many relationship between customers and addresses. If that is the case you may be better off if you create a third...
October 15, 2009 at 12:26 pm
You can use Datetime2 if you are running your database in SQL 2008. It has a 100 nanoseconds accuracy.
October 14, 2009 at 7:56 am
GilaMonster (10/8/2009)
Al-279884 (10/8/2009)
October 8, 2009 at 9:23 am
Bhuvnesh (10/8/2009)
if you see my first mail
it includes ::::::::::
SET @ParamDef = N'
@acct_id int,
@tblRules table (
idx int,
thank_you_page_rule_stub uniqueidentifier,
trigger_value_filter_id smallint,
trigger_all_true_flag smallint
),
@thank_you_page_stub ut_stub'
it contains "@tblRules...
October 8, 2009 at 9:11 am
You are passing a table variable to sp_executeSQL that does not exist at the time of the call. You will need to declare the table variable first:
DECLARE
@ParamDef NVARCHAR(MAX),
@redirectSQL NVARCHAR(4000),
@acct_id...
October 8, 2009 at 8:42 am
try using full path of the executable. So instead of
SET @sqlcmd = 'WinWSSList.exe'
use
SET @sqlcmd = 'C:\WinWSSList.exe'
@sqlcmd session may open a command prompt somewhere in the binn folder of the...
October 2, 2009 at 2:18 pm
The "ELSE" condition on your CASE statement sets the value to 0 (INT), which is probably forcing an implicit cast from varchar to int. Try changing to '0' and see...
July 14, 2009 at 9:02 am
You can remove the big CASE clause within the CTE and build the query dynamically. Something like below...
Create procedure dbo.Product_SEL_PD-- 'code','desc',10,1
@SortColumn nvarchar(255),
@SortDirection nvarchar(4) = 'asc' ,
@rowsPerPage int =...
June 19, 2009 at 8:25 am
maybe something like this...
UPDATE A
SET A.Ind = B.Ind
FROM
[yourTable] A inner join
[yourTable] B ON A.Id = B.Id
WHERE
B.Ind = 'Yes'
October 22, 2008 at 8:03 pm
Depending on how big your numbers would be you could convert to [money] and then to string. For instance:
declare @BigNumber bigint
set @BigNumber = 12304208483483
select replace(replace(convert(Varchar(50), cast(@BigNumber as Money), 1), ',',...
October 22, 2008 at 7:25 am
Viewing 12 posts - 16 through 27 (of 27 total)