Viewing 15 posts - 331 through 345 (of 366 total)
Hector you can format your output from a select statement by using Convert and some of the date functions.
HTH
Mike
IF Object_ID('TempDB..#Test') > 0
DROP TABLE #Test
CREATE TABLE [#Test]
(
[PkNumber] int IDENTITY (1, 1)...
May 8, 2005 at 7:51 am
Jeff you can insert ASCII codes into the print statement if you need special characters or want to generate a multi line statement. Char(10) is the ASCII code for a...
May 8, 2005 at 6:05 am
Hi a question relating to your data. You have the Col name listed as AuditTimeStamp. Is this data of type TimeStamp or rowversion? If so the following from BOL maybe...
May 6, 2005 at 8:50 pm
Edit Added code to remove Lunch times from appointment times..Never Ever tell the boss he can not take a lunch break.
Set based approach.
HTH
Mike
/*
Create a table with all possible appointments...
May 6, 2005 at 5:29 am
(My 2 cents worth)
Michelle, major changes in technology are very often complex and expensive. In many cases the cost are...
May 3, 2005 at 8:17 pm
Perhaps the following will help others understand the complexity of your problem. Note these observations apply to US health care providers and may not be...
May 2, 2005 at 8:04 pm
You can write a stored procedure that accepts parameters. You could also use dynamic SQL and create your SQL statements on the fly. The are...
May 1, 2005 at 9:33 pm
Jeff, it depends on the type of trouble you want to shoot.
A table name such as "BrilliantUniqueLongLastingSuperHandyIndividualTable" could be confusing and transforming the table name...
May 1, 2005 at 12:08 pm
I think that Jeff is on the right track. Using Ray's suggetion makes everyone's life easy. The purpose of a naming convention is to make it code understandable to humans (computers...
May 1, 2005 at 5:37 am
Remi in honor of your help on this post and others.. why just 2 days (the month is almost over). Perhaps this month and...
April 28, 2005 at 8:18 pm
Meghana, How much of an inprovement did you see after making the changes?
Thanks
Mike
April 28, 2005 at 4:32 am
Additions to documentation from above post are marked in RED.
(Gee I just read my original post I have got to...
April 28, 2005 at 4:19 am
Hi this covers all cases including crossing a year boundry.
HTH
Mike
/*
Find all aniversity dates that will fall within the next 30 days
Condiitons
EE must have been employed with the company at least...
April 28, 2005 at 3:18 am
Slacker, It sounds like you problem relates to establishing business rules (which have been ok’d by your legal department) rather than a problem that can be...
April 26, 2005 at 6:14 pm
Thanks Rob
Select Replace(Replace(Convert(Char(6),@thedate,109),'**','0'),'*','')
Works great (FYI I cut and pasted from your original post )
Mike
April 26, 2005 at 3:36 am
Viewing 15 posts - 331 through 345 (of 366 total)