Viewing 15 posts - 9,811 through 9,825 (of 13,460 total)
i'd want to see the proc, i's quite possible whatever you are doing does not have to be done with dynamic sql.
it's possible to create a view that has...
Lowell
March 23, 2010 at 11:15 am
glad i could help!
Lowell
March 23, 2010 at 10:28 am
yes you can; the correct syntax is below;
note i added a suggestion to make it cleaner and easier to read:
select
CASE
WHEN SCE_AYRC = '05/06' AND C.MAV_BEGW IN('36','37','38','39','40','41','42','43','44','45','46','47','48','49','50','51','52')
THEN '06/07'...
Lowell
March 23, 2010 at 10:19 am
i think this will do what you are after; this leaves 0-9,A-Z,a-z and strips out everything else...commas,punctuation, hi ascii, etc.
select dbo.StripNonAlphaNumeric(address1) from #addr
--results
53240thaveneapt104
1000sectorwaystapt111ac
3333summerpointplace
pobox22000a330042
5566firststettnlot204aapt2c
select ascii('a'),ascii('z'),ascii('A'),ascii('Z')
GO
CREATE FUNCTION StripNonAlphaNumeric(@OriginalText VARCHAR(8000))
RETURNS VARCHAR(8000)
BEGIN...
Lowell
March 23, 2010 at 10:03 am
this is a common security issue. The problem is that when you access any resource OUTSIDE of SQL server, like network shares, local hard drives,sp_OA type functions etc, it doesn't...
Lowell
March 23, 2010 at 9:45 am
mikelordi2 (3/23/2010)
Lowell
March 23, 2010 at 9:36 am
for me,trolling through the forums here on SSC, i literally copy and paste every example that interests me into a SSMS window and run it.
that's why everyone encourages(demands?) that...
Lowell
March 23, 2010 at 8:05 am
srinath.chai (3/17/2010)
Hi Guys,I got the similar requirement but I am struggling to complete it
if you have found the solutions can you please share with me
Thanks in advance
Regards,
~Sri
the devil is in...
Lowell
March 23, 2010 at 7:46 am
andrew in my sql 2008 db, if i create a diagram, then a single row is created in the table dbo.sysdiagrams.
select * from dbo.sysdiagrams
name ...
Lowell
March 23, 2010 at 7:05 am
you can do it with a tally table as well;
for example the function I'm pasting below will strip out everything except chars in my specific range of ascii characters:
--ascii...
Lowell
March 23, 2010 at 6:33 am
Thank you for the salute Jason and Thanks for identifying the fix, Chris;
Something that might escape some folks is did you know that C2 auditing is just another version...
Lowell
March 23, 2010 at 6:11 am
i think you want something like this, but the key is which column has the "status", and it's data type:
i assummed a string field, but you'll get the idea once...
Lowell
March 22, 2010 at 12:17 pm
duplicate post.
continue reading here:
http://www.sqlservercentral.com/Forums/Topic887248-391-1.aspx#bm887384
Lowell
March 22, 2010 at 10:54 am
duplicate post.
continue reading here:
http://www.sqlservercentral.com/Forums/Topic887248-391-1.aspx#bm887384
Lowell
March 22, 2010 at 10:52 am
with stored procs, it's a best practice to add SET NOCOUNT ON as the first line of the proc;
this prevents other applications from thinking subsets or commands like (x...
Lowell
March 22, 2010 at 9:51 am
Viewing 15 posts - 9,811 through 9,825 (of 13,460 total)