Viewing 15 posts - 18,691 through 18,705 (of 18,926 total)
I'm assuming that my answer will work because the commas will actually make 4 records instead of 1... hence that might very well be the cause of the too many...
January 12, 2005 at 1:38 pm
BTW this is only the tip of the iceberg. Once you understand how powerful and dangerous sql injection can be, you go out of your way to avoid it...
January 12, 2005 at 1:36 pm
Sorry carpal tunnel... I'll try to find an harder solution next time .
BTW Antares had already pointed in the direction of the ms proc......
January 12, 2005 at 1:32 pm
That will do it... won't be fast but it won't cost you any data :
Use Master
GO
CREATE TABLE dbo.TABLE1
(
PkTest char(10) NULL
) ON [PRIMARY]
GO
Select name, XType, Status from dbo.SysObjects where...
January 12, 2005 at 1:14 pm
well one way that almost looks like what you are wanting to do is to debug the SP. In QA select your stored proc in the object browser and...
January 12, 2005 at 12:43 pm
I've never heard of a user creating a system table. How did he do that?
Also I don't think it's possible to do this (because you could also remove other...
January 12, 2005 at 12:40 pm
This is a shot in the dark.. but have you tried this :
CHAR(13) + 'Comment 1' + ': ' + rtrim(so.comments_1) + CHAR(13) + 'Comment 2' + ': '...
January 12, 2005 at 12:36 pm
Please try to avoid using dynamic sql. It's a bad coding habit and it exposes you to sql injection (hacker could take control of your whoole domain (not just...
January 12, 2005 at 10:01 am
Just using bummed in it's real context...
January 12, 2005 at 6:40 am
I don't think it can be done... But maybe you could check for the rows that don't fit in the table and delete those (or send them to another...
January 11, 2005 at 9:45 pm
I got 2 ideas.
1 - you can make another field that keeps lets say the 8 last numbers of the card and do a search on those number.. however you...
January 11, 2005 at 9:43 pm
Neat trick AJ. It works faster than my version and is much easier to understand.
One less thing to learn today
January 11, 2005 at 1:34 pm
Yes we can all see that... hopefully you'll make it work in a set based operation someday.
Good luck.
January 11, 2005 at 1:04 pm
This isn't bullduzer but I'm not sure it's the fastest approach, but that works so :
Select cast(dtName.Name as varchar(100)) as Name from
(Select distinct(cast(name as varbinary)) as Name from dbo.ObjSQL...
January 11, 2005 at 11:36 am
You can't do that
Where HorseID = @LstHrse
end
means
Where HorseID = 'what ever you typed here but in varchar format'.
January 11, 2005 at 11:27 am
Viewing 15 posts - 18,691 through 18,705 (of 18,926 total)