Viewing 15 posts - 9,721 through 9,735 (of 18,923 total)
And this is the code that works in 2000 :
SELECT RAND(CAST(NEWID() AS VARBINARY)) * 10000000000000 AS Test FROM master.dbo.SysColumns
July 2, 2007 at 7:36 am
Why do you think he used THIS CODE???
RND(CAST(NEWID() AS VARBINARY)) * 10000000000000
July 2, 2007 at 7:31 am
Did you actually run the statement before saying that?? The data will be unique for each row.
July 2, 2007 at 7:08 am
Why even use a cursor for this, you can reinitialize the the rand() for each row and do a single update which would most likely take only a few seconds...
June 29, 2007 at 5:11 pm
SELECT RIGHT(REPLICATE(`0`, 11) + CONVERT(VARCHAR(11), YourNumberColumn), 11) AS FormattedColumn FROM dbo.YourTable WHERE ...
June 29, 2007 at 8:05 am
I was reffering to the create / disable version. If you're going to write that logic, you might as well DROP IT. That way there can't be any confusion later...
June 28, 2007 at 4:06 pm
I just have one question.
Do you disable tables and columns you don't use in an application or do you drop them, or even better, don't install them at all in...
June 28, 2007 at 11:29 am
Crate temp table that matches the output of sp_spaceused
insert into #temp (col, list) exec sp_spaceused ...
June 27, 2007 at 2:39 pm
Not the prettiest thing I have ever seen, but how about creating the trigger, then checking if you have to keep it depending on the client and dropping it again...
June 27, 2007 at 1:48 pm
Who owns the jobs that start the packages?
Check to see if there's a difference in the context (different user) between each runs. That would be my first guess.
June 27, 2007 at 12:27 pm
You might as well finish to post your homework or exam, you'll get the answers faster that way!
June 27, 2007 at 9:13 am
I didn't answer because it most likely was a homeowrk question... but I guess we will never know know
.
June 26, 2007 at 3:34 pm
Check out the Microsoft site for more info, I don't have a link available (maybe someone else will).
The simple fact is that if it worked with 2000, it'll work with...
June 26, 2007 at 2:52 pm
Check out the functions UPPER, LOWER, LEFT, RIGHT, and Substring to solve this problem.
June 26, 2007 at 2:36 pm
You lose the chance to use the new 2005 features. That's about it.
I'm sure there are a few more gotchas than this, but I would not expect a lot (this...
June 26, 2007 at 2:34 pm
Viewing 15 posts - 9,721 through 9,735 (of 18,923 total)