Viewing 15 posts - 346 through 360 (of 423 total)
If you think you know, then you have become ignorant; you have stopped your own evolution. I agree with most of the above posts: collaboration is number one.
Recently people...
September 24, 2013 at 11:42 am
Interesting article although it dwells more on C# than SQL. I too find Agile and Extreme Programming books fascinating but never found a way to make them useful in...
September 12, 2013 at 12:38 pm
You're not gaining anything because you need to do a full backup immediately after doing your changes. There used to be a command to "dump tran with no_log" but...
September 3, 2013 at 12:58 pm
I still strongly disagree. UDFs are much, much easier to incrementally add customization rather than throw away a CTE because it can no longer be used because of additional...
August 22, 2013 at 7:31 am
I'm completely sick of anti-rbar preachers. They're just getting their ego kicks through trying to one-up everybody. Here is what is happening: code is being run on a...
August 22, 2013 at 4:05 am
Only use nvarchar if you really need unicode otherwise use varchars. I make my varchars as small as possible because reports are generally formatted to handle the largest data...
August 21, 2013 at 8:57 am
This function will return an int from the beginning of a string.
SELECT dbo.LeadingNumbers('4568 Lancaster Avenue');
SELECT *
FROM Addresses
WHERE AddressLine like '%Lancaster%'
AND dbo.LeadingNumbers(AddressLine) >= 4000
AND dbo.LeadingNumbers(AddressLine) < 5000
;
IF EXISTS (SELECT *...
August 20, 2013 at 2:15 pm
A "good" way to perform your query would be to design the table with address parts instead of address lines.
primary_number: ...
August 20, 2013 at 1:25 pm
Here is an attempt. I would write a procedural function to add tons of checking before moving this to production.
declare @temp table (MyValues varchar(50));
insert into @temp values ('3/24/12 Saturday
')
insert...
August 16, 2013 at 2:03 pm
-- You can put this in your templates for easy reuse
declare @list table (name varchar(128) not null);
-- fill the list with your custom subset
insert into @list
select name from sys.databases where...
August 14, 2013 at 1:07 pm
declare @TableName varchar(128);
set @TableName = 'sysdiagrams';
if exists
(
select i.rowcnt
from sys.tables t
join sys.sysindexes i on t.object_id = i.id
where indid in (1,0)
and t.name = @TableName
)
print 'yes'
;
August 13, 2013 at 1:58 pm
The whole mess of programming "between" different apps and data requires scripting or macro languages which are usually syntactically very ugly and kludgy. I generally end up doing a...
July 10, 2013 at 6:27 am
Check the column or parameter definitions for char instead of varchar. Conversions between those are very tricky.
June 18, 2013 at 10:57 am
Here are an additional 2600 nicknames in my attachment to add to the attachment in the post above.
My recommendation is to separate male from female names. Also use a...
June 18, 2013 at 9:10 am
I've used the rule in the past of logs get mirrored and data gets RAID 5. It seems to be a losing battle against the network guys who like...
June 10, 2013 at 12:40 pm
Viewing 15 posts - 346 through 360 (of 423 total)