Viewing 15 posts - 31 through 45 (of 66 total)
Thanks Dwain...so should i use CASE Statement instead??..
September 27, 2013 at 1:40 am
Dwain,,,,
My sexID will never contain embedded quotes...because with this table
*Bio
bioIB
fname
mname
lname
sexID
statusID
*sex
sexID
sex(male or female only)
*status
statusID
status(single,married or divorced only)
sexID and statusID from bioID belongs to different table...
so my View table would be
*MyViewTable
(Contains...
September 27, 2013 at 1:21 am
dwain.c (9/26/2013)
1. [Issue #1] In the statement below, you're setting the right part of the...
September 27, 2013 at 1:03 am
dwain.c (9/26/2013)
enriquezreyjoseph (9/26/2013)
Hi everyone 😉why is this statement has error??.. 🙁 i can't figure it out..
SET @statusID = ' AND statusID = ' + convert(varchar(20), @statusID)
Most likely, the declaration...
September 26, 2013 at 8:20 pm
GilaMonster (9/26/2013)
SysAdmin.
I'm willing to learn sir gail...that is why i exist in this community because of you...
September 26, 2013 at 6:37 pm
GilaMonster (9/26/2013)
enriquezreyjoseph (9/25/2013)
Hi Sir Gail..Please see my Attachment..that is the result when i try to run your suggestion...
Look at what the error say and see what I almost did to...
September 26, 2013 at 4:11 am
AndrewSQLDBA (9/26/2013)
Anything that is Dynamic can be. Plus as everyone else has said, it is very poor practice. And poor performing.
I wish that it were illegal for a front-end programmer...
September 26, 2013 at 12:57 am
GilaMonster (9/25/2013)
enriquezreyjoseph (9/24/2013)
But some post say that..Dynamic Sql is a powerful tool...
Indeed, but you don't use a jackhammer to put a nail in the wall. Powerful tool != use all...
September 25, 2013 at 7:41 pm
Sean, What do you mean i don't have a parameter??....I guess i have parameters look at my first post above...
like this..
==================================
ALTER PROCEDURE [dbo].[SearchBiography]
@firstname varchar(50),
@middlename...
September 25, 2013 at 6:48 pm
Sean Lange (9/25/2013)
September 25, 2013 at 6:36 pm
PRR.DB (9/25/2013)
i am trying to post sp result to temp table then am getting this error, How can i resolve this issue?.
Msg 8164, Level 16, State 1, Procedure Rep_Accuracy_Achievement_Analysis_Report_PRR,...
September 25, 2013 at 3:39 am
GilaMonster (9/25/2013)
enriquezreyjoseph (9/24/2013)
But some post say that..Dynamic Sql is a powerful tool...
Indeed, but you don't use a jackhammer to put a nail in the wall. Powerful tool != use all...
September 25, 2013 at 1:52 am
AndrewSQLDBA (9/24/2013)
SELECT
<ColumnName>
, <ColumnName>
FROM
<TableName>
WHERE
Sex = 'M' OR SEX = 'F'
That will select all rows with either M or F in the...
September 24, 2013 at 8:10 pm
Sean Lange (9/24/2013)
It has been suggested to you at least a couple of other times in the various threads you have...
September 24, 2013 at 6:33 pm
Sean Lange (9/24/2013)
enriquezreyjoseph (9/23/2013)
Sean Lange (9/23/2013)
kapil_kk (9/23/2013)
Instead of this:SET @SqlQueryFirstName = '@SqlQuery ' + 'firstname = @firstname'
Write this:
SET @SqlQueryFirstName = @sqlquery + 'firstname ='+ @firstname
Instead of this, read...
September 24, 2013 at 6:28 pm
Viewing 15 posts - 31 through 45 (of 66 total)