Viewing 15 posts - 2,581 through 2,595 (of 13,462 total)
djj (2/3/2014)
Lowell, thanks for the reply. I am actually looking to delete the "bad" numbers so yes it is an IN.
well going forward, you could add a check constraint...
February 3, 2014 at 12:02 pm
The only way to make it perform better is to make the search terms Sarg-able and index-able, as John referred to, otherwise you are stuck with a table scan.
you could...
February 3, 2014 at 11:34 am
Adam i think just doing UNION or UNION all would probably be better than the OR statements ; one of those simple fixes that should have a perfroamnce imact:
SELECT ..
LEFT...
February 3, 2014 at 9:19 am
you'll want to look into using the OUTPUT clause so you can capture the new identity values, along with your data, so tyou can isnert/update the second table.
here's just one...
February 3, 2014 at 8:45 am
read up at Gails blog on catch all queries: http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/
here's an example of a catch all query:
WHERE 1 = CASE
...
February 3, 2014 at 8:23 am
i've added Phil Factor's Regular Expressions CLRs[/url] to my servers for a while now ;
in several of my projects, the regular expressions, since they are inline table value functions, are...
February 3, 2014 at 7:16 am
nice job providing the sample data!
in this case, you need to get the "sets" organized first so they can be compared.
Someone else may have another method, but i thought using...
February 3, 2014 at 6:49 am
hayden_jones (1/31/2014)
January 31, 2014 at 9:59 am
here's one that i just got bitten with and added to my common checks:
i added a filtered index, and a stored proc that updated the table with the...
January 31, 2014 at 9:28 am
ok in that case, what you want is a certificate signed stored procedure.
then the credentials of the certificate are used, and that can satisfy the cross database/instance permissions issue, i...
January 31, 2014 at 9:06 am
you can never restore a higher version db to a lower version;
looks like your db is 2008 but you are installing/using SQL2005. check to see if you installed an isntance,...
January 31, 2014 at 8:58 am
evansrf (1/30/2014)
I'd like to have a stored proc that selects/updates a distributed partitioned view.
I really don't want to have to grant rights to...
January 31, 2014 at 8:52 am
I think you simply want SET @Day = cast( getdate() as date)
you have a DATENAME function that would reurn 'FRIDAY", which you tehn try to cast as a date, and...
January 31, 2014 at 8:10 am
ok i got a lot more data than the ten or so rows you displayed, but this seems to do it.
you might need to grab a vopy of DelimitedSplit8K
http://www.sqlservercentral.com/articles/Tally+Table/72993/
;WITH MyCTE([clndr_id],[clndr_data])
AS
(
SELECT...
January 31, 2014 at 6:57 am
interesting; so you need to find multiple substrings that are like 'd|[0-9][0-9][0-9][0-9][0-9]' ie '(d|41519)'
here's a cte of his post for the adventurous;
i'm trying a lazy DelimitedSplit8k cross apply...
January 31, 2014 at 6:47 am
Viewing 15 posts - 2,581 through 2,595 (of 13,462 total)