Viewing 15 posts - 4,921 through 4,935 (of 8,731 total)
rossa (5/18/2015)
I should have mentioned that it's a SQL 2000 database attached to a SQL 2005 instance. That is, it's running in SQL 2000 compatibility mode.
FYI, an SQL Server...
May 18, 2015 at 4:51 pm
Both solutions run fine. If you're getting an error, it would be because you changed something and we don't know what it is.
You need to review your code for any...
May 18, 2015 at 11:51 am
Have you tried a ForEach Loop in SSIS? Would you be interested?
May 18, 2015 at 11:36 am
Something like this?
SELECT *
INTO #Test
FROM (Values
(1, 'A'),
(1, 'B'),
(1, 'C'),
(1, 'D'),
(1, 'E'),
(2, 'A'),
(2, 'C'),
(2, 'D'),
(2, 'E'),
(3, 'A'),
(3, 'B'),
(3, 'C'),
(3, 'F'),
(4, 'A'),
(4, 'B'),
(4, 'D'),
(4, 'F'),
(4, 'G'))x(id, value);
SELECT id,
...
May 18, 2015 at 11:33 am
Vyper426 (5/18/2015)
Ed Wagner (5/15/2015)
May 18, 2015 at 11:18 am
This might at least help a bit, but it won't address the main problems of the query (user defined scalar function and function on columns in the where clause or...
May 18, 2015 at 10:48 am
You can use a subquery or CTE.
SELECT col1
FROM (
SELECT col1,
case when upper(col3) like '%HTEST%'...
May 18, 2015 at 10:05 am
Sean Lange (5/18/2015)
May 18, 2015 at 10:01 am
xsevensinzx (5/16/2015)
What's wrong with this picture?
It's incomplete.
May 16, 2015 at 10:58 am
Changes in the data between runs?
If you run a query over a static set of data, it will always return the same result (except for nondeterministic functions).
May 15, 2015 at 12:59 pm
Eric M Russell (5/15/2015)
Sean Lange (5/15/2015)
Luis Cazares (5/15/2015)
May 15, 2015 at 11:29 am
Grant Fritchey (5/15/2015)
Sean Lange (5/15/2015)
Luis Cazares (5/15/2015)
May 15, 2015 at 11:27 am
Or you could prevent all that casting by parametrizing your query.
SELECT @sql = 'SELECT *
FROM #Temp
WHERE DocDate BETWEEN @EndDate AND GetDate()'
EXEC sp_executesql @sql, N'@EndDate date', @EndDate
May 15, 2015 at 11:25 am
It's important for us that you'll be a good fit in our team, so the following question will define if you get the job or not.
Leading commas or trailing commas?
May 15, 2015 at 9:36 am
Alvin Ramard (5/15/2015)
Grant Fritchey (5/15/2015)
Alvin Ramard (5/15/2015)
Grant Fritchey (5/15/2015)
May 15, 2015 at 9:01 am
Viewing 15 posts - 4,921 through 4,935 (of 8,731 total)