Viewing 15 posts - 5,956 through 5,970 (of 26,490 total)
rrdavis07 (9/2/2014)
Consider the following Table:

How would I...
September 2, 2014 at 1:25 pm
Am I missing something? Doesn't this error mean that the table or view doesn't exist, not that there is a problem with the WHERE clause?
OLE DB provider "MSDASQL" for...
September 2, 2014 at 1:18 pm
Welsh Corgi (9/2/2014)
Lynn Pettis (9/2/2014)
Welsh Corgi (9/2/2014)
Ed Wagner (9/2/2014)
TO_DATE(''2014-09-02'',''YYYY.MM.DD'')
The date string doesn't match...
September 2, 2014 at 1:15 pm
Welsh Corgi (9/2/2014)
Ed Wagner (9/2/2014)
Good. Now all you have to do is look at the format mask of your TO_DATE function.TO_DATE(''2014-09-02'',''YYYY.MM.DD'')
The date string doesn't match the format string.
Thanks.
I need...
September 2, 2014 at 12:02 pm
Good question and interesting function.
Only complaint I have with the function right now is the inconsistency in the coding. As is the function won't compile on a system using...
September 2, 2014 at 11:54 am
You are welcome. Dynamic SQL can be a pain to write, I should know as I have written my share of it.
September 2, 2014 at 11:43 am
Last I checked MOSS required SQL Server Standard Edition or better.
A SQL Server Sandbox is a usually a database on a SQL Server Test or Development box where developers and/or...
September 2, 2014 at 11:40 am
Try this:
IF EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[cusUDSPatientRaceEthnicityCPS12_2014]'))
DROP VIEW [dbo].[cusUDSPatientRaceEthnicityCPS12_2014]
GO
IF EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[cusUDSPatientRaceEthnicityCPS1_2014]'))
DROP VIEW [dbo].[cusUDSPatientRaceEthnicityCPS1_2014]
GO
IF EXISTS (SELECT 1 FROM sys.objects WHERE...
September 2, 2014 at 11:32 am
Welsh Corgi (9/2/2014)
Sorry I missed your post. I have everything but the date.
This is the exact code that I have.
Thank you.
DECLARE @SQLQuery NVARCHAR(255)
...
September 2, 2014 at 11:09 am
This perhaps?
IF dbo.cusGetCPSVersion()='Apples'
BEGIN
exec ('CREATE VIEW APPLES AS SELECT * FROM APPLES_FRUIT')
END
ELSE
BEGIN
exec ('CREATE VIEW ORANGES AS SELECT * FROM ORANGES_FRUIT')
END
September 2, 2014 at 11:00 am
Curious how the code that our silver spooner posted even worked. After declaring all the variables I still have a bunch of red squiggly lines.
September 2, 2014 at 10:56 am
Lynn Pettis (9/2/2014)
declare
@SQLCmd nvarchar(max),
@MyDate DATE;
set @MyDate = '20140808';
select @SQLCmd = N'
SELECT
CAST(CAE_RDB_ENTRY_DATE as Date),
...
September 2, 2014 at 10:46 am
And once again the SSC Silver Spoons are out and available, even mine.
September 2, 2014 at 10:42 am
EDIT: The following is wrong!
I did it this way:
declare
@SQLCmd nvarchar(max),
@MyDate DATE;
set @MyDate = '20140808';
select @SQLCmd = N'
SELECT
CAST(CAE_RDB_ENTRY_DATE as...
September 2, 2014 at 10:35 am
Dwain,
Actually, I just wanted to understand the pieces. I really need to learn the extensions to the windowing functions in 2012.
September 1, 2014 at 7:34 pm
Viewing 15 posts - 5,956 through 5,970 (of 26,490 total)