Viewing 15 posts - 10,156 through 10,170 (of 13,461 total)
the trick is to use a combination of dateadd and datediff, here's sme examples of some firsts and lasts; to apply the logic to a specific daye, like "what...
January 7, 2010 at 2:20 pm
there are a lot of options for linked server security; i've only used three ways, which i'll try to explain:

1: anyone accessing the linked server uses a specific logon from...
January 7, 2010 at 2:02 pm
i think you are looking for the LUHN mod 10 credit card validation, right? googling "TSQL LUHN mod 10"
got me this tsql code snippet"
http://www.novicksoftware.com/UDFofWeek/Vol2/T-SQL-UDF-Vol-2-Num-47-udf_Bank_IsLuhn.htm
January 7, 2010 at 1:50 pm
it looks like you have not added the PAYEE_ID yet:
ALTER TABLE #PAYEES
--add first item: column
ADD PAYEE_ID INT NOT NULL,
--add second item: constraint
CONSTRAINT PK_payeeID PRIMARY KEY CLUSTERED (PAYEE_ID) ...
January 6, 2010 at 5:20 pm
i copied and pasted the example, and it works fine; it might be the case-sensitive collation of your database...i noticed i spelled it "tally" in one spot, and "Tally" in...
January 6, 2010 at 4:24 pm
both of these syntaxes worked fine for me, against know tables for me; i don't get the syntax error you were using
ALTER TABLE [dbo].[MYTBL1] ADD DEFAULT (getdate()) FOR [APPLDT]
ALTER TABLE...
January 6, 2010 at 1:01 pm
i believe you are correct, you can use it to find non latin characters. I'd need to test it against more varied data; is it working for you as expected?...
January 6, 2010 at 11:46 am
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
Viewing 15 posts - 10,156 through 10,170 (of 13,461 total)