Viewing 15 posts - 8,791 through 8,805 (of 14,953 total)
saivko (8/7/2009)
Thanks! Works beautiful.Any advantages/disadvantages of using 'convert' vs. 'cast' ?
Maybe convert is slower but safer?
No performance advantage.
August 7, 2009 at 11:22 am
talltop (8/7/2009)
Uh oh! thread hijack...GSquared, stay on point dude. We are talking about corporate production databases, not automobiles... apples and oranges....
No, you were talking about people being ignorant of things...
August 7, 2009 at 11:19 am
PaulB (8/6/2009)
madhu (8/6/2009)
Is this possible?Yes. We have done a whole bunch of those.
Just pray developers have not used EE exclusive features and, please remember to script/apply logins, jobs, etc.
I don't...
August 7, 2009 at 11:03 am
Sounds like you've got a handle on it now. Cool biz.
August 7, 2009 at 11:01 am
I'm going to have to second the statement about UDFs. Inline query UDFs are fine, but multi-value and scalar are usually just a good way to kill server performance.
August 7, 2009 at 10:58 am
It's possible. It would be extraordinarily difficult to do without leaving traces, but it is possible.
August 7, 2009 at 10:51 am
There are better options for auditing. Take a look at these (shameless self-promotion, I know):
August 7, 2009 at 10:49 am
Just tested the speed. Scott's right.
Here's the test set-up:
USE [ProofOfConcept]
GO
/****** Object: Table [dbo].[UPR00900] Script Date: 08/07/2009 11:32:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING OFF
GO
CREATE TABLE...
August 7, 2009 at 9:59 am
Cast to Int, do the math, recast back to varchar and add the leading zeroes back on.
declare @String varchar(10), @Number int;
--
select @String = '000009', @Number = 1;
--
select right('0000000000' + cast(cast(@String...
August 7, 2009 at 9:11 am
Chad Crawford (8/7/2009)
If you actually want to play chess, we should definitely take it to a different forum, or play online.
If you don't have a place for this...
August 7, 2009 at 9:07 am
talltop (8/7/2009)
August 7, 2009 at 8:58 am
What's the definition for the primary key for the table? (Assuming there is one.)
August 7, 2009 at 7:31 am
The last two places I worked had unofficial policies that made it possible for me to take extra time off if I worked extra hours. Work the weekend, then...
August 7, 2009 at 7:30 am
Definitely odd.
Now I have to look at the copy of 2008 I have at home. You made me curious.
August 7, 2009 at 7:25 am
Personally, I find the Pivot and Unpivot syntax for SQL a bit cryptic. I also think the Pivot command is about as useless as a refrigerator in Antarctica. ...
August 7, 2009 at 7:20 am
Viewing 15 posts - 8,791 through 8,805 (of 14,953 total)