Viewing 15 posts - 946 through 960 (of 962 total)
Yelena,
I also agree with you.
I know that the questions and free and I have still learn something from this, and that some questions are abigious on purpose (pick the...
May 23, 2006 at 2:23 am
I am with you Terry.
I doubled checked with BOL just to make sure my memory wasn't deceiving me - I noticed the caveat so re-read the question. It didn't seem...
May 22, 2006 at 8:10 am
Ritesh,
It's looks as though you have missed out a &
strSQL2 = "SELECT qryEatingDisorder.* FROM qryEatingDisorder WHERE PageID = '" & lngRecordNo & "'" & "and EatingID = '2'"
Should do the...
May 4, 2006 at 7:57 am
Yueming,
You need to write your case statement like this:
Case when...
May 4, 2006 at 7:21 am
Also don't forget that dates in SQL Server use single quotes not #. So '12/02/2005'
Also it's a general rule to put dates in the following format yyyymmdd, as to avoid...
May 2, 2006 at 4:36 am
Hi Bob,
If I understand you correctly, you want to insert data from a query into a table but not populate all the fields in the table, in which case something...
April 28, 2006 at 6:30 am
Hi Jeff,
I did think of using SUBSTRING, but I can't remember know why I used RIGHT... I think it may have been because the account numbers are variable length, so...
April 20, 2006 at 3:13 am
Syed,
Just realised I missed a closing bracket, one after the +1, should read:
select RIGHT(mytext, Len(mytext) - patindex('%[^0]%', mytext)+1) from mytable
Obviously I should have said replace "mytext" with you column name,...
April 19, 2006 at 9:24 am
Hi Syed,
I had a similar problem when bringing together account information from three different sources and combining them into one report, without leading zeros - don't you love it when...
April 19, 2006 at 2:08 am
noggin,
I found this MSDN article:
http://msdn2.microsoft.com/en-us/library/ms189566(SQL.90).aspx
UNSAFE gives assemblies unrestricted access to resources, both within and outside SQL Server. Code that is running from within an UNSAFE assembly can...
April 7, 2006 at 1:45 am
Hi Lester,
You don't neccessarily have post the whole sproc just the important bits..
But having said that and re-read you previous comments. It does sound as though one the input variables...
April 5, 2006 at 4:45 am
Hi Lester,
Yes I realise that it didn't solve your sproc problem but it's best practice, and when you start using cast with a varchar bigger than 30 characters it would...
April 5, 2006 at 4:15 am
Hi Lester,
While you are correct in saying that the size part of varchar is optional in teh Cast, you should really specify the size as it will default to 30...
April 5, 2006 at 3:26 am
Mick,
RETURN is what you are looking for.
BOL shows an exmaple in a stored procedure.
Cheers,
Rodney.
March 24, 2006 at 4:25 am
This might have something to do with Financial Year Starts. If July 1st is the start of the fiscal year then July would come before December, but January would come...
December 22, 2005 at 3:06 am
Viewing 15 posts - 946 through 960 (of 962 total)