Viewing 15 posts - 166 through 180 (of 240 total)
I assume that "birthday" means just month and day, so my first thought is to add a computed column that just extracts the month and day in 'mmdd' format, then...
July 29, 2010 at 11:02 am
Great question! That's the kind of issue that would cause the loss of much hair if I'd have to figure it out in a production environment.
July 28, 2010 at 1:14 pm
Pretty basic stuff. Here's a basic answer...
CREATE PROCEDURE MyProc
(@DId int,
@PID varchar(20) )
AS
SELECT RM.RName, RM.Logo, MST.PUrl, RM.HPUrl
FROM ...
July 22, 2010 at 2:16 pm
Yes, there is a 'RunningValue' aggregate function that can be used for this.
July 19, 2010 at 5:48 pm
You have 4 records for ClientID 102 in TableA, and 6 records for 102 in TableB. An inner join will match up each record in TableA with a corresponding record...
July 8, 2010 at 9:50 am
You can look for rows where there may be invalid dates by using the IsDate function in TSQL.
Select * from MyTable where IsDate(MyColumn) = 0
Note, however, that there are...
July 7, 2010 at 5:26 pm
...
IF @vchtstsaddt IS NULL
BEGIN
SET @vchtstsaddt = NULL
END
Else
SET @vchtstsaddt = CONVERT(datetime, @vchtstsaddt)
...
This makes little or no sense. If the variable already is null, why set it to null?
On the other...
July 6, 2010 at 4:50 pm
Not an answer, but a place to look...
Have you noticed if the Query Execution plan changes between the two cases -- the one where performance is good, and the one...
June 30, 2010 at 2:14 pm
If that's what you need, you'll need to use dynamic SQL. You can create a dynamic PIVOT statement along the lines of what is in this article:
http://www.simple-talk.com/community/blogs/andras/archive/2007/09/14/37265.aspx
You can do something...
June 24, 2010 at 3:42 pm
Lowell (6/24/2010)
this passes the syntax check:
select cust_num,slsman,
SUM(CASE WHEN [site] = '11199'...
June 24, 2010 at 3:06 pm
You can use the following to check for existence of the table:
if OBJECT_ID('tempDB..#temp','U') is not null
DROP TABLE #temp
June 9, 2010 at 2:27 pm
Temp tables (created with #) are actually stored in the tempdb database, not in whatever database you're currently working in. I believe the sys.objects and sys.tables system views only look...
June 9, 2010 at 2:16 pm
Looks like you have some info from the CodeProject site on using Regular Expressions or straight parsing algorithms to extract the text you're looking for. My recommendation would be to...
June 7, 2010 at 3:50 pm
Nikhil,
What text exactly do you want to 'extract' from this? The entire database column? If that is the case, you could simply read the column data as text and write...
June 7, 2010 at 11:36 am
The C# console app is compiled into an .exe, isn't it? There is a job step type of "Operating System (CmdExec)" that will let you execute an .exe file within...
June 3, 2010 at 11:57 am
Viewing 15 posts - 166 through 180 (of 240 total)