Viewing 15 posts - 2,536 through 2,550 (of 5,685 total)
VGish (9/26/2011)
IDDateP_IDP_UUID CM
24842011-07-27 00:00:00.00036926349348432436
24842011-08-08 00:00:00.00036926349348613149
24842011-08-10 00:00:00.00036926349348613151
27262011-07-29 00:00:00.0003406026373248395973
36292011-07-26 00:00:00.0004982026462548392343
36292011-08-01 00:00:00.00049926462548419374
36292011-08-04 00:00:00.0004982026462548535510
36292011-08-15 00:00:00.0004982026462548590566
And I want results...
September 26, 2011 at 4:46 pm
You're right Sean, apologies are above. That's also a much prettier method then the pivot I was thinking of.
September 26, 2011 at 4:32 pm
Evil Kraig F (9/26/2011)
mw112009 (9/26/2011)
It did not work.
Reason: My stored proc is very long. So when it outputs it puts only the code to a certain length. After that...
September 26, 2011 at 4:28 pm
You need a pivot.
If you'll setup the data and schema to be consumable, I'll actually plug away at the code when I get some time to get it to behave....
September 26, 2011 at 3:35 pm
mw112009 (9/26/2011)
It did not work.
Reason: My stored proc is very long. So when it outputs it puts only the code to a certain length. After that I don't see...
September 26, 2011 at 3:28 pm
kramaswamy (9/26/2011)
Just curious, any reason you're not using sys.procedures with OBJECT_DEFINITION instead Evil Craig F?
nVARCHAR(4000) vs. nVARCHAR(Max) in the view definitions. It's possible to cut off the create statement...
September 26, 2011 at 3:10 pm
sqlquest2575 (9/26/2011)
September 26, 2011 at 3:08 pm
I would approach this a little differently:
DECLARE @c INT,
@LastID INT
SET @c = 0
SELECT @LastID = MAX(ProductUID) FROM Product
WHILE @c <= @LastID
BEGIN
UPDATE Product
SETProductID = 'XY' + ProductID
WHERE
September 26, 2011 at 3:06 pm
mw112009 (9/26/2011)
Ahh but you are sayng to load that variable I will have to use some special sql that will output the...
September 26, 2011 at 2:00 pm
Depends, can you script and paste your schema here? It's gonna depend on your available keys and indexes.
September 26, 2011 at 1:54 pm
I spent the weekend as a 'lost weekend'. My hydration is still recovering. :doze:
September 26, 2011 at 1:53 pm
From this page:
http://support.microsoft.com/kb/913089
Important notes for using Microsoft Update
•When you use Microsoft Update to install SQL Server 2005 SP4, the installation is unattended unless components are clustered. If components are clustered,...
September 26, 2011 at 1:50 pm
There is another option. Use a package scoped string variable, and load that variable as the result from a T-SQL query that calls the definition from sysmodules.
Then, in the...
September 26, 2011 at 1:35 pm
rbuzzard1 (9/26/2011)
September 26, 2011 at 1:31 pm
You're going to need a delta mechanism, either an audit table with the pk and datetimestamp, or adding in a datetimestamp column on the main table. Or build out...
September 26, 2011 at 12:39 pm
Viewing 15 posts - 2,536 through 2,550 (of 5,685 total)