Viewing 15 posts - 91 through 105 (of 113 total)
At the end, the mind should not be locked. And if in specific cases something is valuable, all options should be opened. And I am opened to all ideas...
February 4, 2005 at 4:05 pm
How many rules of normalization? 12. How many we are using? 3-5
And you are not saying that doctor Codd was developing useless 7 rules. The same point in article.
To show...
February 3, 2005 at 4:22 pm
0 was there because I was thinking about 2 digit hours. Something like '01:36PM'.
January 11, 2005 at 4:55 pm
Oops, need change getdate to @datevar
IF (@dateformat = 7)
begin
set @converteddt =
RIGHT('0' + right( convert(varchar, @datevar,100 ) ,7), 7)
set @formatexists = 1
end
IF (@dateformat = 8)
begin
set @converteddt =...
January 10, 2005 at 6:00 am
Formats you need based on your posted message:
IF (@dateformat = 7)
begin
set @converteddt =
RIGHT('0' + right( convert(varchar, getdate(),100 ) ,7), 7)
set @formatexists = 1
end
IF (@dateformat = 8)
begin
set...
January 10, 2005 at 5:56 am
In reality, I have about 15 different formats. The one you asking looks:
IF (@dateformat = 8)
begin
set @converteddt =
RIGHT('0' + CAST(DATEPART ( hh , @datevar ) AS VARCHAR(2)), 2) + ...
January 7, 2005 at 5:21 pm
Thanks for email. In all my articles I am trying to show some ideas and provide with the example of the code (not necessary the best one but working). And...
December 22, 2004 at 7:50 am
#1. This function has a bug (or issue)
select dbo.fn_FormatDate (getdate(), 'xx:ss') will result 'xx:17'
It is not a date format. Function required format verification code.
#2. If every programmer will start...
December 22, 2004 at 5:54 am
You may be right, but unfortunately, we using extended properties for the applications. So, we already have 20-25 properties on each table (4-5 per column). To create some more (especially...
October 14, 2004 at 3:48 pm
Sorry, previous post is mine as well
It is good if you have simple select. But with extended properties:
1. Change is more complicated
2. Flexebility is limited
If more complicated stored procedure...
October 14, 2004 at 12:39 pm
As I pointed, it will be more than 999 number of records in a table.
Column data must be assigned automatically by the database. No one wants to rebuid the applications....
September 29, 2004 at 4:39 pm
With binary conversion chances for the wrong result are smaller for the tables with 4+ columns. I was trying your method before I get proposed the other one. And actually,...
September 22, 2004 at 7:15 pm
You may be right. I will try it. But the article was not written to show the best code, but to show the idea of how to use user defined function...
September 14, 2004 at 6:03 am
I didn't wrote the header. Sorry. You are right that there is no user defined function in SQL Server 7.
September 14, 2004 at 6:01 am
Viewing 15 posts - 91 through 105 (of 113 total)