Viewing 15 posts - 6,286 through 6,300 (of 8,731 total)
Hi Rob,
The problem with your first query is that you missed to add the join condition for the CustomerID. In result, you're getting a cross join between all the rows...
June 11, 2014 at 12:31 pm
You might want to check the books section on this site. There are some that might help.
Troubleshooting SQL Server: A Guide for the Accidental DBA by Jonathan Kehayias and Ted...
June 11, 2014 at 11:25 am
Does this help?
http://blogs.msdn.com/b/ramoji/archive/2008/10/16/how-to-open-dts-packages-in-sql-server-2008.aspx
June 11, 2014 at 11:19 am
If you only need those 3 levels, just keep it simple. 😉
SELECT p.TeacherId AS userID,
s.UserID AS student
FROM #temp p
JOIN #temp s ON p.UserID = s.TeacherID
WHERE...
June 11, 2014 at 11:13 am
You can read on how to do it in the article linked in my signature. 😉
June 10, 2014 at 5:58 pm
Sean Lange (6/10/2014)
below86 (6/10/2014)
June 10, 2014 at 2:11 pm
Or you could use a single data type such as a (var)char.
SELECT CASE WHEN decimals = 0
THEN...
June 10, 2014 at 9:37 am
That's because 16 is the full length. From those 16 positions you need to substract 4 for decimal positions. That gives you 12 positions on the left and 4 positions...
June 10, 2014 at 8:55 am
A CASE statement can only return one type of data. All possible returned values should be the same. Imagine that you have something more extreme such as
select case when datatype='int'...
June 10, 2014 at 8:50 am
Hi welcome to the forums,
bcp only allows to export to a text file (regardless of format or extension). If you want to use it, you'll need to have the intermediate...
June 10, 2014 at 8:35 am
New Born DBA (6/10/2014)
I also don't have access to the DB yet. I am using the shared dataset which was provided to me.
That can be a problem and you might...
June 10, 2014 at 8:26 am
I would go with the format file. That way you have a little more control on what it's happening.
Jeff Moden made a great article for starters on this (it helped...
June 10, 2014 at 8:20 am
Why do you have so many columns?
It's normal that you get an error if you're using distinct and ordering by a column that's not returned in the select.
You should use...
June 9, 2014 at 3:04 pm
New Born DBA (6/9/2014)
Luis Cazares (6/9/2014)
How do you get the parameter list? Is it a query where you could you simply add a DISTINCT?This is what I did. (see attachment)
So...
June 9, 2014 at 2:20 pm
Viewing 15 posts - 6,286 through 6,300 (of 8,731 total)