Viewing 15 posts - 136 through 150 (of 206 total)
Check out this link
http://msdn.microsoft.com/en-us/library/aa933230(SQL.80).aspx
August 10, 2009 at 1:23 pm
Does this work? I am not sure about your expected results.
SELECT * FROM #REF
WHERE (Code1 = 'SS18' OR Code2 = 'SS18' OR Code3 = 'SS18')
August 10, 2009 at 12:44 pm
I think you need to change the syntax of the raiserror line.
Here it is from BOL:
RAISERROR ( { msg_id | msg_str | @local_variable }
{ ,severity ,state...
August 10, 2009 at 9:59 am
This is doing 2 table scans so I know it isn't the most efficient code. You could probably put this into a CTE and get better performance but I...
August 10, 2009 at 8:17 am
I actually just started trying to organize all my stuff. I have a local database engine running and just created a table on a new database there. SSMS...
August 7, 2009 at 8:26 am
Thats nice. I never even thought to do a mod on the rank() function.
August 7, 2009 at 7:34 am
The ntile(2) function will get you close but you still have to worry about the fire center that is in both columns. This tests for that and updates the...
August 7, 2009 at 6:54 am
I did run into one problem with the trigger scripts. Since the quotename function is used the argument is of type sysname which is nvarchar(128). If you have...
August 6, 2009 at 11:20 am
I am not sure this is what you are looking for but here it is: Let me know if you need this in a different format.
//EDIT Also, are you...
August 6, 2009 at 8:45 am
//EDIT -- Nevermind, apparently if you actually pay attention to the steps everything works just find. Sorry about that.
I can't figure out what I have done wrong...
August 6, 2009 at 7:13 am
Am I missing something?
Won't this work?
update tableName set columnName = newid()
August 5, 2009 at 2:41 pm
I am sure this is not optimal and I have no clue what performance this would have with a large data set but here is what I did:
declare @trading table...
August 5, 2009 at 12:59 pm
I can't test this yet but I should be able to soon. It appears that @myLocationRef is required to be passed. If it isn't you can use the...
August 5, 2009 at 6:17 am
You could do something like this to make it look "cleaner":
CREATE TABLE #tblResults (participant_id INT, endTime TIME)
INSERT INTO #tblResults VALUES (1,'11:25')
INSERT INTO #tblResults VALUES (3,'11:26')
INSERT INTO #tblResults VALUES (2,'11:27')
INSERT INTO...
August 3, 2009 at 11:08 am
Viewing 15 posts - 136 through 150 (of 206 total)