Viewing 15 posts - 3,001 through 3,015 (of 8,416 total)
C# source code, for those that prefer to compile for themselves:
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data.SqlTypes;
using Microsoft.SqlServer.Server;
public partial class UserDefinedFunctions
{
[SqlFunction
...
July 14, 2010 at 6:32 am
Gianluca Sartori (7/12/2010)
I think this problem could be solved much better with a CLR aggregate, but it's a technique I don't master.
A CLR aggregate wouldn't be the right choice because...
July 14, 2010 at 6:29 am
In the meantime, in case you are just looking for something simple to get you started:
DECLARE @temp INTEGER;
BEGIN TRANSACTION;
-- Find a new random number that does not already...
July 14, 2010 at 3:06 am
Jeff Moden (7/14/2010)
Heh.... I've really got to learn to read the other posts before posting. :blush:
Where would be the fun in that? :laugh:
More seriously, it is a pet peeve of...
July 14, 2010 at 1:18 am
tasnim.siddiqi (7/14/2010)
July 14, 2010 at 1:16 am
tasnim.siddiqi (7/13/2010)
As stated previously, Identity column will solve the problem, but its not random and therefore the idea is not very robust.
Can you explain that a little more? I...
July 14, 2010 at 12:13 am
You need to add a UNIQUE index or constraint to the RepairCategoryMaster table. The index or constraint should be on the CategoryID column only.
You should also read up on...
July 14, 2010 at 12:09 am
Tom.Thomson (7/13/2010)
July 13, 2010 at 6:30 pm
CirquedeSQLeil (7/13/2010)
I have a problem with the word "NEVER."
Me too. My only rule of thumb is that there are no good rules of thumb.
And 'never' means 'try to avoid...'...
July 13, 2010 at 6:20 pm
Jeff Moden (7/13/2010)
Gianluca Sartori (7/12/2010)
I think yesterday it was Emperor Paulpatine's birthday.Happy birthday, Paul!
Heh... does it mean more Vuvuzelas?
It was indeed - well remembered, Gianluca, and thanks!
I am pleased to...
July 13, 2010 at 6:07 pm
An example (based on a test database of mine):
-- Just to make the point
USE master;
GO
IF EXISTS
(
...
July 13, 2010 at 10:11 am
virgilrucsandescu (7/13/2010)
Weird that it works fine for the other tables in Development DB .. It must be something undocumented ...
Possibly the object id returned by OBJECT_ID happens to match a...
July 13, 2010 at 10:07 am
Thanks, Eugene. I'm glad someone else appreciates the subtleties.
July 13, 2010 at 9:44 am
Chris Morris-439714 (7/13/2010)
Paul White NZ (7/13/2010)
Chris Morris-439714 (7/13/2010)
It's great ... but...the order of the output doesn't match the order specified by the OP 😛Yeah, but the OP got it wrong!
TWICE!...
July 13, 2010 at 9:42 am
Viewing 15 posts - 3,001 through 3,015 (of 8,416 total)