Viewing 15 posts - 10,171 through 10,185 (of 13,469 total)
J-F if possilbe, can you get rid of the function and just add a persisted calculated column instead? persisted stores the value in the data pages, and would be much...
January 6, 2010 at 11:23 am
timscronin (1/6/2010)
DECLARE @drugName VARCHAR(20), @amp_position INT
SELECT @drugName = '100MGWaldorf'
SET @amp_position = CHARINDEX( 'MG', @drugName)...
January 6, 2010 at 10:22 am
I believe i've seen this condition when a users credentials has a default database other than the one being connected to.
What I mean is if i created a new user...
January 6, 2010 at 6:28 am
Jack Corbett (1/5/2010)
I'd create a role and give it those rights on each schema in the database. It's not quite db_owner so I'd avoid that.
Based on what Jack said,...
January 5, 2010 at 7:14 am
while you can do it from within SQL server with some TSQL commands, guess what....all the work goes out to xp_cmdshell to call programs like 7zip/winzip/pkzip, and then the MOVE...
January 2, 2010 at 11:50 am
nope;obfuscating table definition itself is not possible. I'm sure you feel proud of your design, and feel someone could possibly reverse engineer some of your business practices simply by looking...
January 1, 2010 at 6:18 am
why not have the app itself test for inactivity, and log people out after say, 20 minutes? then you could have a pop-up screen that said they were logged out....
December 30, 2009 at 5:55 pm
just so you know what the issue is:
in TSQL, a CASE statement is used to decide which data to return; it can only return one of the SQL datatypes. you...
December 30, 2009 at 12:01 pm
also use the search feature here on SSC for "Base64"; there are a number of forum posts and submitted scripts to encode/decode;
here's the first of many i found:
December 30, 2009 at 11:54 am
char 160 in a lot of fonts looks like a space; if you use it in an html document, multiple char(160)'s in a row get respected as valid chars to...
December 30, 2009 at 9:41 am
i think filenames/paths with spaces need to be wrapped in double quotes, right?
also, are you not CALLING the datapump? why is the DIR command in there?
exec master.dbo.xp_cmdshell '"C:\Program Files\Monarch Data...
December 30, 2009 at 9:12 am
i couldn't find a way to change it in the GUI, but when i looked in the registry, I found the spot to change it:
the key HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server\100\Tools\Shell has...
December 30, 2009 at 9:07 am
Rider i added a CASE in order by with two columns, and it seems to do exactly what you were after; am i missing anything?:
here's my results:
PART TYPE ...
December 29, 2009 at 12:30 pm
ouch that changes things a bit;
can you please do a SELECT DISTINCT ColumnName From yourtable, so we can have the list of columnnames to normalize this data into? so...
December 29, 2009 at 11:26 am
Justin James (12/29/2009)
One question I have about your SQL:
select ID/6 as REC, [ID]%...
December 29, 2009 at 10:43 am
Viewing 15 posts - 10,171 through 10,185 (of 13,469 total)