Viewing 15 posts - 11,011 through 11,025 (of 13,462 total)
as i understand it, when a linked server is created between two 2005/08 servers, the linked server will always use the native client SQLNCLI provider instead of SQLOLEDB; if you...
June 9, 2009 at 11:17 am
sorry bumble-read your post...my dyslexia kicked in and i thought i only saw CASE WHEN A.destroyed = 0 as the first case condition.
June 9, 2009 at 11:12 am
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...
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 +...
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...
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,...
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...
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...
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...
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...
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...
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...
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...
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...
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...
June 3, 2009 at 8:39 pm
Viewing 15 posts - 11,011 through 11,025 (of 13,462 total)