Viewing 15 posts - 11,011 through 11,025 (of 13,460 total)
add these columns to your SQL:
SUM(CASE WHEN A.destroyed = 0 AND A.Retrieved = 0 THEN 1 ELSE 0 END) AS INCOUNT,
SUM(CASE WHEN A.destroyed = 0 AND A.Retrieved = 1 THEN...
Lowell
June 9, 2009 at 11:08 am
you'll want to use the metadata to generate the scripts for you;
something like this:
SELECT
'UPDATE ' + SYSOBJECTS.NAME + ' SET ' + SYSCOLUMNS.NAME +...
Lowell
June 9, 2009 at 11:02 am
brennendeliebe05 (6/9/2009)
I am here again, I want to copy a table Time.dbo from my DB WorksBI to a DB BusinessIntelligence, both are int he same machine and server.
can help...
Lowell
June 9, 2009 at 10:50 am
i believe you might be looking for the behavior of a full text index.
With a full text index, you can do WHERE CONTAINS(columnname,'AB'), and it only does "whole word" matching,...
Lowell
June 9, 2009 at 7:53 am
there's a lot of ways to do this;
the most basic is simply 3 words: CREATE DATABASE [WHATEVER], where whatever is the database name. when you do that, a copy of...
Lowell
June 8, 2009 at 1:10 pm
thanks everyone; RBarryYoung made the light go on when he said "escape" the second minus sign.
Lynn's example works, as well as using a different rule, which in turn uses...
Lowell
June 8, 2009 at 12:31 pm
the exact error i got was this:
Msg 513, Level 16, State 0, Line 1
A column insert or update conflicts with a rule imposed by a previous CREATE RULE statement. The...
Lowell
June 8, 2009 at 10:18 am
ok, it looks like two wrongs make a right...NOT combined with [^0-9] ALMOST looks like it works:
CREATE RULE [dbo].[NumericCharsOnly]
AS
@value NOT LIKE '%[^0-9,-+]%'
but the - and + , when...
Lowell
June 8, 2009 at 9:41 am
you didn't give any details, so here's an example that may help you.
a case statement can evaluate more than one item:
SELECT
CASE
WHEN Column1 = 'Approved' AND...
Lowell
June 7, 2009 at 7:59 am
there's gotta be a better way, but this is all i could come up with...it works, but seems overly complicated..i need a nap or something:
select object_name(syscolumns.id) as TableName,syscolumns.name As ColumnName...
Lowell
June 6, 2009 at 7:44 pm
no no no...
i mean your procedure sp_AppendToFile. the procedure that calls sp_AppendToFile is not the issue.
sp_AppendTo is incomplete.
your sp_AppendTo is an exact copy of the function i posted, except it...
Lowell
June 4, 2009 at 6:33 am
you are using SQLExpress, which does not come with SS Integration Services.
SLQ Express with Advanced Services, just comes with the management GUI and reporting services.
SQL Server Developer , which is...
Lowell
June 3, 2009 at 11:08 pm
good point Wayne; we do the same...when we get multiple FK's in a table as well.
One of the things to point out is how standards like this can help you...
Lowell
June 3, 2009 at 8:39 pm
as I understand it, the LIKE '%pattern%' will always require a tablescan, since parts of the string are not indexed.
if the pattern is 'pattern%', so the value always starts...
Lowell
June 3, 2009 at 6:50 pm
duplicate post.
no need to ask the same question in multiple forums, as the Recent Posts>>Posts Added Today
shows everything.
follow the thread and the answers already posted here:http://www.sqlservercentral.com/Forums/Topic728604-146-1.aspx
Lowell
June 3, 2009 at 6:36 pm
Viewing 15 posts - 11,011 through 11,025 (of 13,460 total)