Viewing 15 posts - 3,901 through 3,915 (of 9,643 total)
See the bottom 2 articles referenced in my signature for an explanation of how to do it. Here is some code that should work:
IF OBJECT_ID(N'temp_tests', N'U') IS NOT NULL...
November 9, 2009 at 4:02 pm
Here's code that does it dynamically so you don't have to change the code when you add attributes. The only thing I don't do is provide a set order...
November 9, 2009 at 3:50 pm
Not to nitpick, but what if there are milliseconds on the date? You are much safer using >= and < when dealing with dates.
November 9, 2009 at 3:00 pm
Yeah, definitely do not do the convert to varchar as that totally changes things, let SQL Server do a data compare. Also, be careful with BETWEEN. Check out...
November 9, 2009 at 2:50 pm
I'd recommend something like this:
DECLARE @temp TABLE (fullname VARCHAR(50))
INSERT INTO @temp (
fullname
)
SELECT
'Doe, Jon'
UNION ALL
SELECT
'Doe Jane'
UNION ALL
SELECT
'Smith Tom...
November 9, 2009 at 2:40 pm
Yeah, I know you were trying to be funny. I actually almost used unclebiguns here on SSC when I signed up, but decided I wanted to be more professional...
November 9, 2009 at 2:34 pm
You can see the DISABLE TRIGGER command using SQL Trace (Profiler). It comes through as TextData in the SQL:Batch* and SQL:Stmt* events, it does not have a specific event....
November 9, 2009 at 2:32 pm
Alvin,
You can refer to me as unclebiguns, I don't mind :-D. I would have provided more in the prior post, but I was on my iPod at the time...
November 9, 2009 at 2:15 pm
Alvin Ramard (11/9/2009)
Changing subject .....I was wondering if anyone is aware of anything worthwhile that resulted from the Chapter Leader's "get-together" at the PASS Summit.
nothing earth shattering and whatever was...
November 9, 2009 at 1:23 pm
Bob Hovious 24601 (11/9/2009)
Oh yeah that's right... Thursday is speedos.
Been hanging around Celko?
November 9, 2009 at 1:18 pm
Sure you can index on a varbinary column. I would guess, I have not tested, that it might be fastest to run the encryption on a parameter and do...
November 9, 2009 at 9:10 am
What VPN client are you using?
You might want to check to see if the one with the problem has SPN's setup correctly.
November 9, 2009 at 9:01 am
What does sp_lock return for the update SPID? Every question ALZDBA has asked is relevant.
November 9, 2009 at 8:59 am
It depends on exactly what you are trying to do with the data. You could do linked servers or use SSIS to copy data to a new database.
November 9, 2009 at 8:52 am
Viewing 15 posts - 3,901 through 3,915 (of 9,643 total)