Viewing 15 posts - 11,026 through 11,040 (of 13,469 total)
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
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...
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
June 3, 2009 at 6:36 pm
everyone is different, and you should use what is best for you. but here's some of the rules in out shop:
1. the primary key of each table is TableName+"ID". (one...
June 3, 2009 at 6:22 pm
select convert(varchar(10),(dateadd(day, -1*day(dateadd(month, 0 ,getdate())),dateadd(month, 0 , getdate()))),101)
--results:
05/31/2009
it is finding the last day of the month prior to today. then of course it's find data in your table that is...
June 3, 2009 at 3:06 pm
here's how i would do it:
ignore the end date, and calculate it based on the clinicstartdate.
i assume that if you take the year() of today, plus the month/day, that is...
June 3, 2009 at 3:01 pm
master..xp_cmdshell 'bcp ..out -U -P '
i guess you need to read up on the syntax. If that is your real command, you are not specifying any of the...
June 3, 2009 at 2:37 pm
dumb question first...are you sure Table1 is identical on ServerA and ServerB? different data would of course produce different results.
second, there is a sub select with this code:
select b.Code...
June 3, 2009 at 10:46 am
ok i got it, and a solution too!
what you want to do is use the PIVOT operator;
with that, you can PIVOT a single column based on the values of the...
June 3, 2009 at 10:38 am
Viewing 15 posts - 11,026 through 11,040 (of 13,469 total)