Viewing 15 posts - 23,521 through 23,535 (of 26,490 total)
Check out the following code:
CREATE TABLE [dbo].[TableA](
[fileID] [int] NOT NULL,
[langId] [int] NOT NULL
) ON...
November 24, 2008 at 4:55 pm
Noticed one thing, make it a select distinct on the outer select.
November 24, 2008 at 3:35 pm
Hope the following test code helps you out:
create table #TestTab (
Col1 int,
Col2 int
);
insert into #TestTab
select 4352279, ...
November 24, 2008 at 3:16 pm
Chris Rogers (11/24/2008)
CREATE PROC Reports.MyExampleProc
@StartDate DateTime,
@EndDate DateTime
AS
IF(@EndDate...
November 24, 2008 at 2:59 pm
Could be that when the optional parameter is missing, the query in the stored procedure is using an inefficient query plan.
November 24, 2008 at 2:35 pm
Okay, got it now!!
create table #TestTab (
Col1 varchar(10) null,
Col2 varchar(10) null,
Col3 varchar(10) null
);
insert into #TestTab
select 'First', 'Second', 'Third'...
November 24, 2008 at 2:31 pm
Okay, with a minor change, this should work:
create table #TestTab (
Col1 varchar(10) null,
Col2 varchar(10) null,
Col3 varchar(10) null
);
insert into...
November 24, 2008 at 2:22 pm
Sorry, but the code I posted isn't quite right. If Col3 is null or Col2 and Col3 is null, you end up with a ',' at the end.
November 24, 2008 at 2:20 pm
Does this test code help you out?
create table #TestTab (
Col1 varchar(10) null,
Col2 varchar(10) null,
Col3 varchar(10) null
);
insert into #TestTab
select...
November 24, 2008 at 2:17 pm
Jack Corbett (11/24/2008)
rbarryyoung (11/24/2008)
Jack Corbett (11/24/2008)
Lynn Pettis (11/24/2008)
Jack Corbett (11/24/2008)
rbarryyoung (11/24/2008)
November 24, 2008 at 2:07 pm
am (11/24/2008)
I have to generate monthly payment schedule from the below information
NoofPaymentsTotalAmtContractNumstartdayofmonth
4454214
Based on the above information the schedule should be generated starting 4th day of next month, payment amount rounded...
November 24, 2008 at 2:03 pm
Try the following in a test environment:
--TableA (Source)
--
--ID AgencyCD AgencyCostCD EffDate ...
November 24, 2008 at 1:45 pm
Try this in a test database (sandbox if you will).
CREATE TABLE dbo.Table_1
(
MyColumn1 int NOT NULL,
MyColumn2 int NOT NULL,
MyData1 varchar(50) NULL
) ON [PRIMARY]
GO
ALTER TABLE dbo.Table_1 ADD CONSTRAINT
PK_Table_1 PRIMARY KEY CLUSTERED...
November 24, 2008 at 1:27 pm
george sibbald (11/24/2008)
what EXACT version of SQL are you on? I would be surprised if you had come across a new bug after all this time....
November 24, 2008 at 1:21 pm
am (11/24/2008)
I have two tables one destination and the other source, I am trying to import the data from the source but I am unable to build
the SQL to...
November 24, 2008 at 1:12 pm
Viewing 15 posts - 23,521 through 23,535 (of 26,490 total)