Viewing 15 posts - 9,751 through 9,765 (of 18,926 total)
As I said earlier, I have never worked in such an environement, such I was asking lots of questions to be ready for when it happens. I got good instincts...
June 23, 2007 at 6:52 pm
What I do when that happens is that I cut the line then repaste it in place (quick ctrl-X, ctrl-v). This works everytime, but I must admit it's very annoying.
Anoter...
June 22, 2007 at 1:20 pm
I was just doing my Devil's advocate here. My instinct was varchar + encryption, looks like I was pretty much dead on!
June 22, 2007 at 8:04 am
I think this works ![]()
SELECT CONVERT(BIGINT, 1234567890123456) AS CCNumber
June 22, 2007 at 4:44 am
All interesting points for the initial validation. I'm wondering, once the credit card has been validated once, Do you still have to do lots of manipulation with those numbers, or...
June 21, 2007 at 6:46 pm
Ya I'm kind of sick of that don't use dynamic sql discussion. If they want to hang themselves, I let 'em. I'm not here to save the world anymore. But...
June 21, 2007 at 3:50 pm
Should be able to... can you post the code?
If worse comes to worse, you can always do the distinct query in a derived table, then apply the dynamic sort.
June 21, 2007 at 3:46 pm
The table is created in the exec statement. It is automatically destroyed when that connection is dropped (before the execution goes back to the procedure).
You'll have to create that table...
June 21, 2007 at 2:25 pm
Is there any way to get the rowcount in profiler (directly, without re-rerunning the query)? I'm guessing no, but hopping for a yes on this one!
June 21, 2007 at 2:03 pm
Here's where I show my in-experience. Bigint assumes that the card number will NEVER have a leading 0. Now I have never seen that on a card but I would make sure...
June 21, 2007 at 2:02 pm
Varchar would be my guess (without any experience in that domain).
June 21, 2007 at 12:40 pm
Still need to have a dynamic sort... or 1 query / sp / function per variation to have the optimal query plan...
June 21, 2007 at 10:11 am
To complete this, I strongly suggest you validate the input order variable :
if @SortOrder IN ('jobid', 'empName', 'empid')
begin
end
else
begin
raiserror ('Invalid sort order', 13, 1) --this avoids any possible sql injection
end
June 21, 2007 at 8:17 am
Viewing 15 posts - 9,751 through 9,765 (of 18,926 total)