Viewing 15 posts - 7,636 through 7,650 (of 8,731 total)
This could cause you some serious problems. Until you become able to change anything, here are two possible solutions, but try to convince someone to authorize the change.
SELECT *
FROM Table1...
October 4, 2013 at 9:34 am
eobiki10 (10/4/2013)
What I need to be able to do is change the above to use the IN() statement on the variables @membercode and @Source. Any help will be appreciated.EO
Why would...
October 4, 2013 at 9:00 am
Just another way to do it. The Tally is just to generate the sample data and has nothing to do with the solution.
WITH Tally AS(
SELECT TOP 60 ROW_NUMBER() OVER(ORDER BY...
October 4, 2013 at 8:19 am
Are you just using integers with values from 0 to 99? Or Are you going to have values like '01', '12', '123', '57246' ? because you might want to add...
October 3, 2013 at 7:12 pm
You need a variable that has scope for the whole package. Assign the filename to the variable look for the Property "Expressions" in the connection properties. In there you can...
October 3, 2013 at 1:59 pm
You need to add an ELSE to your CASE statement. I'm sure you don't need separate conditions even if it becomes more readable.
SELECT name,
address,
...
October 3, 2013 at 10:01 am
Check the following article. It explains the method you might need.
http://www.sqlservercentral.com/articles/comma+separated+list/71700/
October 2, 2013 at 3:28 pm
You should better use TRY...CATCH which is available since 2005
October 2, 2013 at 12:59 pm
What's your problem? I don't understand what you need.
October 2, 2013 at 12:41 pm
Installing the Oracle Client and adding the service to TNSNAMES.ORA was all that I needed to connect to an Oracle db. Other problems involved network/firewall permissions.
October 2, 2013 at 12:04 pm
Please post DDL, sample data and expected results so we can give you better responses by working on something that will actually look like your real data.
For guidance, please read...
October 1, 2013 at 8:13 am
I'm giving a shot in the dark here, based on many assumptions. Please post DDL and sample data as explained on the article linked in my signature for better help.
WITH...
September 30, 2013 at 7:16 pm
Does this example helps you?
WITH Time_Windows(StartTime, EndTime) AS(
SELECT DATEADD( HH, 20, DATEADD(DD, DATEDIFF(dd, 0, GETDATE()) - 7, 0)),
DATEADD( HH, 11, DATEADD(DD, DATEDIFF(dd, 0, GETDATE()) - 6, 0))
UNION ALL
SELECT DATEADD( HH,...
September 30, 2013 at 5:24 pm
Here you go
September 30, 2013 at 1:18 pm
Viewing 15 posts - 7,636 through 7,650 (of 8,731 total)