Viewing 15 posts - 31 through 45 (of 457 total)
I use the technique described in the Guru's Guide to Transact-SQL for this type of issue. You can find the solution reprinted here:
September 25, 2007 at 9:58 am
This may sound like a stupid question but are you executing the procedure or executing the code you listed there to alter the procedure?
September 21, 2007 at 10:34 am
You can use either the OR statement or use ISNULL() or COALESCE(). I like ISNULL for readability, personally. However my understanding is that it can cause stored procedure...
September 20, 2007 at 11:04 am
No because computed columns by default are not actually stored (this can be changed). Your better option then is to use a default value. You can reference a...
September 19, 2007 at 3:55 pm
Create the other column as a computed column. Look up computed columns in BoL.
September 19, 2007 at 3:44 pm
No problem. I was just totally confused by your terminology.
What you want to do is set the column to be an identity column first. You can do this...
September 19, 2007 at 11:22 am
To quote Inigo Montoya in The Princess Bride: You keep using that word. I do not think it means what you think it means.
I think you're talking about something other...
September 18, 2007 at 5:54 pm
The way I did something like this was this way:
SELECTCOUNT(CASE WHEN YEAR(myDate) = 2000 THEN 1 ELSE NULL END) AS Count2000
September 18, 2007 at 2:57 pm
That's actually going to be a machine within your network. You're better off doing an nslookup of that IP address to see the machine trying to make the connection.
September 14, 2007 at 3:31 pm
If I only needed to do it once, I'd probably extract it and use perl because it's much better at regular expressions. I was able to come up with...
September 14, 2007 at 10:22 am
My understanding is that IE passes windows authentication information in a way that Mozilla doesn't support at this time. So it will prompt you for your username/pw and then...
September 13, 2007 at 4:56 pm
Could be an execution plan compilation issue, but it still shouldn't take that long for a simple insert. In the database properties dialog box is the Auto Close option...
September 13, 2007 at 9:42 am
In SQL Server 2005 you can use the ranking functions (look em up in BOL) to do it.
September 12, 2007 at 4:41 pm
It's called dynamic SQL... basically it just means that you built your SQL string on the fly and executed it. It has it's up sides (flexibility) and it's...
September 11, 2007 at 6:25 pm
There's a lot of discussion on the best way to do this. My understanding is that if you're feeling lazy, do this:
CONVERT(DATETIME, CONVERT(VARCHAR, GETDATE(), 101))
However the better performing method...
September 11, 2007 at 4:17 pm
Viewing 15 posts - 31 through 45 (of 457 total)