Viewing 15 posts - 1,066 through 1,080 (of 2,647 total)
Glad to help. I ALWAYS wrap my procedures in BEGIN and END for clarity as well as to avoid issues like this.
April 19, 2012 at 11:37 am
Try this:
ALTER PROC [ShowInfo].[usp_GetShowsFromDate]
(@InputDate AS date = '19000101')
AS
BEGIN
IF @InputDate = '19000101'
BEGIN
SET @InputDate = CAST(GETDATE() AS date)
END
BEGIN
SELECT * FROM dbo.fn_GetShowsFromDate(@InputDate)
ORDER BY StartingDate;
END
END
April 19, 2012 at 9:43 am
As Lynn stated, we need the DDL for the export table and the import table. Looking at the error, it is telling you that the date columns are not compatible...
April 19, 2012 at 9:36 am
;WITH cte (BchCode, ClusterOffdBchCode, ClusterTrip,
ClusterAns, ClusterLess60Secs, ClusterGreat5Min) AS
(
SELECT ClusterOffdBchCode AS BchCode,
COUNT(ClusterOffdBchCode) AS ClusterOffdBchCode,
SUM(ClusterTrip) AS ClusterTrip,
SUM(ClusterAns)...
April 19, 2012 at 9:17 am
Try this, it is the best I can do without sample data and expected results:
Code fixed below
April 19, 2012 at 9:10 am
mark.doyle (4/19/2012)
1st Select Statement
Select BchCode,
SUM(localOffd) As 'Local Offd Calls',
...
April 19, 2012 at 9:00 am
Lynn Pettis (4/19/2012)
April 19, 2012 at 8:53 am
S_Kumar_S (4/19/2012)
April 19, 2012 at 8:45 am
jonathanalvestad (4/19/2012)
The file itself is just named reservasjon.mdf, but whenever I attach it to SQL Server...
April 19, 2012 at 8:44 am
Geoff A (4/19/2012)
in option 1, if the alter fails, no harm no foul.
also, an...
April 19, 2012 at 8:31 am
Ya, just verified it. Change your row delimiter to , instead of {CR}{LF} and your done.
April 19, 2012 at 8:17 am
Welsh Corgi (4/18/2012)
It is AS400 Data. The system is hosted by someone...
April 19, 2012 at 8:11 am
In above senario both Read commited and Rean uncommited Isolations will behave in the same way.
No. Read committed will read the committed transactions, read uncommitted will read uncommitted and...
April 19, 2012 at 8:02 am
Don't use CDC. CDC is best for auditing, not for actually storing historical data. You could do a trigger that simply writes all information to a history table....
April 19, 2012 at 7:40 am
Viewing 15 posts - 1,066 through 1,080 (of 2,647 total)