Viewing 15 posts - 8,476 through 8,490 (of 15,381 total)
Hi and welcome to SSC.
The first I did was run through a formatter so I could read it.
SELECT client_name
,client_id
,web_id
,CASE
WHEN active_hierarchy.trending_id IS NULL
THEN 1 -- web_id expired
ELSE CASE
WHEN mapping_is_historical...
May 1, 2013 at 1:24 pm
Edward-445599 (5/1/2013)
Hi what’s the best to way to drop out of a cursor if a condition is meet?Many thanks
Are you sure you even need a cursor? Given that you want...
May 1, 2013 at 8:11 am
ChrisM@Work (5/1/2013)
Sean Lange (5/1/2013)
I would suggest you use the newer join constructs. With this query you don't even need a where clause.
Here is the...
May 1, 2013 at 8:08 am
So what exactly is the issue here?
I would suggest you use the newer join constructs. With this query you don't even need a where clause.
Here is the syntax:
from batt_State s
join...
May 1, 2013 at 7:46 am
As Rob said in his first post....NO. You can't restore a newer versions backup on an older version.
All of the subsequent posts explain in detail how you can get the...
May 1, 2013 at 7:23 am
vgregdo (4/30/2013)
I have an existing piece of code that navigates through a hierarchy and was trying to figure out if I could write a query that would return a result...
April 30, 2013 at 1:52 pm
After running this through a formatter so it was legible it becomes pretty clear.
DROP TABLE a
GO
CREATE TABLE a (i INT)
GO
CREATE TRIGGER a_insert ON a
FOR INSERT
AS
BEGIN
DECLARE @a AS VARCHAR(40)
SET @a =...
April 30, 2013 at 9:49 am
Basically what you need to do here is parse your string values. There are a couple ways you can do this pretty easily. If you have consistent data like your...
April 30, 2013 at 9:22 am
The error message is happening because when you do an insert there is an implicit transaction started. This is required for atomicity. Your trigger has now rolled back the transaction...
April 30, 2013 at 9:15 am
or this?
select charindex('sas',name), 'sas' from table
April 30, 2013 at 8:56 am
Like this?
select name, charindex('sas',name)from table
April 30, 2013 at 8:55 am
OnlyOneRJ (4/30/2013)
Regarding data.. just create a DB manually on 2000...
April 30, 2013 at 8:53 am
mw112009 (4/30/2013)
How can i check for the presence of an index in another database ?
Lets say I am in DATABASE A and i want to check for an object in...
April 30, 2013 at 8:50 am
No need to script it. Just use the Data Export Wizard.
April 30, 2013 at 8:47 am
Hugo Kornelis (4/30/2013)
<nitpicking>
Not NULL - Unknown. Quite different concepts! (NULL means the absence of any data; Unknown is a result in three-valued logic that is the result of attempting to...
April 30, 2013 at 8:39 am
Viewing 15 posts - 8,476 through 8,490 (of 15,381 total)