Viewing 15 posts - 1,966 through 1,980 (of 3,738 total)
Clecko,
I read your post and it makes me want to go out and buy all of your books.
What a great way to start the New Year.:hehe:
December 30, 2011 at 4:18 pm
How can I modify the function so that you can pass a data type and it returns the result in the specified format and avoid using the Convert Function
as...
December 30, 2011 at 7:34 am
No hints?:crazy:
December 30, 2011 at 5:59 am
What I'm trying to do is Repeat header rows on each page.
I have not be able to find anything that works.
It should as simple as setting a property at...
December 29, 2011 at 2:05 pm
PaulB-TheOneAndOnly (12/29/2011)
Didn't use a third party tool but a set of three stored procedures: sp_hexadecimal, sp_help_revlogin and a sligthly hacked version...
December 29, 2011 at 1:39 pm
Brandie Tarvin (12/29/2011)
December 29, 2011 at 1:35 pm
tfifield (12/29/2011)
December 29, 2011 at 12:11 pm
Reposted to the following thread:
http://www.sqlservercentral.com/Forums/Post.aspx?SessionID=tn4hztje0kd2zlfndsa2noie
Please do not respond to this thread.
December 29, 2011 at 11:41 am
Don't forget to make sure that the Account that is stored in the connections column of mysysobjects matches up with the Account used by the DSN.
Also make sure that the...
December 29, 2011 at 11:30 am
dkatanski (12/29/2011)
I'm logging onto the server as the sysadmin, so I should have access to everything. But I am unsure how to confirm that.
If you log on with an...
December 29, 2011 at 11:27 am
Very clever. I appreciate all of the feedback from everyone.
Thanks.
December 29, 2011 at 10:09 am
drew.allen (12/29/2011)
You realize that this is a presentation issue and is best handled in the presentation layer.Drew
I guess that it depends because you may not always have a presentation layer...
December 29, 2011 at 10:04 am
CREATEFUNCTION[dbo].[fncConvertAS400Date]
(@AS400Datevarchar(9))
RETURNSdatetime
-------------------------------------------------------------------------------------------
AS
-------------------------------------------------------------------------------------------
BEGIN--Beginning of Function
-------------------------------------------------------------------------------------------
DECLARE@numDateint
DECLARE@varDatevarchar(10)
DECLARE@rtnDatedatetime
-----------------------------------------------------------------------------------
IfIsNumeric(@AS400Date) = 1
BEGIN
SET@numDate =CAST(@AS400DateASint)
SET@numDate =@numDate + 19000000
SET@varDate =CAST(@numDateASvarchar(8))
SET@varDate =Substring(@varDate, 5, 2) + '/' +--Month
Right(@varDate, 2) + '/' +--Day
LEFT(@varDate, 4)--Year
END
ELSE
BEGIN
SET@varDate =NULL
END
-----------------------------------------------------------------------------------
IfIsDate(@varDate) = 1
SET@rtnDate =CAST(@varDateASdatetime)
ELSE
SET@rtnDate =NULL
-----------------------------------------------------------------------------------
RETURN@rtnDate
-------------------------------------------------------------------------------------------
END--End of Function
-------------------------------------------------------------------------------------------
December 29, 2011 at 9:21 am
DECLARE @sales DECIMAL (18,2)
DECLARE @Commission DECIMAL (18,2)
DECLARE @CommissionRate VARCHAR(200)
SET @sales = '1800'
SET @Commission =...
December 29, 2011 at 7:35 am
Viewing 15 posts - 1,966 through 1,980 (of 3,738 total)