Viewing 15 posts - 10,066 through 10,080 (of 14,953 total)
One of the worst assumptions I run into all the time is "The rules belong in the business logic layer, not the database", which is always followed with, "why do...
April 8, 2009 at 6:48 am
Paul White (4/7/2009)
GSquared (4/7/2009)
It was, in my opinion, a very strange interview process.
G2, the first guy sounds quite cool, but from the second experience, I would guess you had a...
April 7, 2009 at 3:04 pm
Try changing the query to something like this:
SELECT
Campus.CampusName,
Student.StudentID,
ISNULL(home.zip, company.zip) AS Zip
FROM
Campus
...
April 7, 2009 at 2:52 pm
I don't understand what you're trying to do with the "INTO" command. It's not a command all by itself, but that's how it appears in your proc.
Also, I think...
April 7, 2009 at 2:44 pm
As predicted, I'm going to suggest doing this kind of pivot operation in the application, not in the database. It's faster, easier, more flexible, and more secure.
If you absolutely...
April 7, 2009 at 2:37 pm
If I'm not mistaken, SSIS can directly call C# DLLs. If I am mistaken, take a look at CLR procs and see if one of those will do what...
April 7, 2009 at 2:30 pm
Charles Kincaid (4/7/2009)
April 7, 2009 at 2:27 pm
Stephen crocker (4/7/2009)
April 7, 2009 at 2:15 pm
I don't think patindex can do that one for you.
You could throw a multi-character wildcard in there, after the first number and before the "mm", but that might get you...
April 7, 2009 at 2:10 pm
I suspect "parameter sniffing" is your likely culprit. There are good articles on that if you look up that phrase in Google/Live/Yahoo/Dogpile/whatever.
April 7, 2009 at 1:58 pm
This should do what you're asking for. It's very similar to what was already suggested, but has a From clause missed in the prior post that might make a...
April 7, 2009 at 1:56 pm
There are various User_Name functions in SQL Server.
user_name()
system_user
Are two of them. Try those, see which one gives you what you want.
April 7, 2009 at 1:46 pm
Can you change those to Float data type? Or expand the range for the Numeric?
April 7, 2009 at 1:43 pm
Another thing you can do is import into a separate table, then insert from there into the final table. That'll get rid of your duplicates and your gaps. ...
April 7, 2009 at 1:40 pm
Viewing 15 posts - 10,066 through 10,080 (of 14,953 total)